Python
addr = 0

for line in open('/proc/self/maps','r').read().split('\n'):

        if 'rwx' in line:

                addr = int('0x' + line.split('-')[0], 0x10