Skip to content

Aslr

options = {'on': 'off', 'off': 'on'} module-attribute

parser = argparse.ArgumentParser(formatter_class=argparse.RawTextHelpFormatter, description='\nCheck the current ASLR status, or turn it on/off.\n\nDoes not take effect until the program is restarted.\n') module-attribute

aslr(state=None)

check_aslr()

Detects the ASLR status. Returns True, False or None.

None is returned when we can't detect ASLR.