m.start -> m.run (#25)
This commit is contained in:
parent
f51227acd5
commit
44bf8745a1
@ -74,5 +74,5 @@ def hook(state):
|
||||
m.terminate() # tell Manticore to stop
|
||||
|
||||
m.add_hook(hook_pc, hook)
|
||||
m.start()
|
||||
m.run()
|
||||
```
|
||||
|
||||
@ -24,6 +24,6 @@ if __name__ == '__main__':
|
||||
|
||||
m.add_hook(None, explore)
|
||||
|
||||
m.start()
|
||||
m.run()
|
||||
|
||||
print "Executed ", m.context['count'], " instructions."
|
||||
|
||||
@ -29,4 +29,4 @@ if __name__ == '__main__':
|
||||
|
||||
# Start path exploration. start() returns when Manticore
|
||||
# finishes
|
||||
m.start()
|
||||
m.run()
|
||||
|
||||
@ -26,5 +26,5 @@ if __name__ == '__main__':
|
||||
|
||||
m.add_hook(0x109f0, myhook)
|
||||
|
||||
m.start()
|
||||
m.run()
|
||||
print 'done'
|
||||
|
||||
@ -27,7 +27,7 @@ if __name__ == '__main__':
|
||||
|
||||
# Start path exploration. start() returns when Manticore
|
||||
# finishes
|
||||
m.start()
|
||||
m.run()
|
||||
|
||||
# Print high level statistics
|
||||
m.dump_stats()
|
||||
|
||||
@ -34,5 +34,5 @@ if __name__ == '__main__':
|
||||
|
||||
# Start path exploration. start() returns when Manticore
|
||||
# finishes
|
||||
m.start()
|
||||
m.run()
|
||||
|
||||
|
||||
@ -12,7 +12,7 @@ if __name__ == '__main__':
|
||||
m = Manticore(None, path)
|
||||
# Start path exploration. start() returns when Manticore
|
||||
# finishes
|
||||
m.start()
|
||||
m.run()
|
||||
# Print high level statistics
|
||||
m.dump_stats()
|
||||
|
||||
|
||||
@ -19,4 +19,4 @@ if __name__ == '__main__':
|
||||
print "Adding hook to: ", hex(to_abandon)
|
||||
m.add_hook(to_abandon, explore)
|
||||
|
||||
m.start()
|
||||
m.run()
|
||||
|
||||
@ -45,7 +45,7 @@ if __name__ == '__main__':
|
||||
m.add_pc_hook(target[0], entered_func)
|
||||
|
||||
# Start path exploration. start() returns when Manticore finishes
|
||||
m.start()
|
||||
m.run()
|
||||
|
||||
# Print high level statistics
|
||||
#m.dump_stats()
|
||||
|
||||
@ -145,7 +145,7 @@ def main():
|
||||
|
||||
logger.info('[+] Loading challenge %s', args.programs)
|
||||
|
||||
m.start()
|
||||
m.run()
|
||||
|
||||
m.dump_stats()
|
||||
|
||||
|
||||
@ -525,7 +525,7 @@ class Manticore(object):
|
||||
self._assertions[pc] = ' '.join(line.split(' ')[1:])
|
||||
|
||||
|
||||
def start(self):
|
||||
def run(self):
|
||||
'''
|
||||
Start Manticore, creating all necessary support classes.
|
||||
'''
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user