manticore/examples/script/run_simple.py
JP Smith 053cc5ff8d Fix run_simple.py (#102)
`Manticore(None, path)` throws an error
2017-03-23 09:52:39 -05:00

19 lines
491 B
Python
Executable File

import sys
from manticore import Manticore
# This example demonstrates loading a simple binary in Manticore,
# running it to completion without any callbacks or instrumentation
# and producing basic information about the paths explored
if __name__ == '__main__':
path = sys.argv[1]
# Create a new Manticore object
m = Manticore(path)
# Start path exploration. start() returns when Manticore
# finishes
m.run()
# Print high level statistics
m.dump_stats()