def main():
global logger
parser = create_argument_parser()
opts = parser.parse_args()
log_level = logging.DEBUG if opts.debug else logging.INFO
logging.basicConfig(
level=log_level, format='%(asctime)s - %(levelname)s - %(message)s')
logger = logging.getLogger(__name__)
if opts.no_aslr:
libc = ctypes.CDLL(None)
ADDR_NO_RANDOMIZE = 0x0040000
assert 0 == libc['personality'](ADDR_NO_RANDOMIZE)
data = minimize(opts)
if opts.dryrun:
return
print repr(data)
with file(opts.output, 'wb') as f:
f.write(data)
评论列表
文章目录