23 Commits

Author SHA1 Message Date
Mark Mossberg
b591f2a83a Add unicorn to required deps (#31)
* Add unicorn to python deps

* Update readme

* Add deps to setup.py

* test letting pip install install deps in travis
2017-03-01 11:22:04 -05:00
JP Smith
d052d3b2d7 Fix the --stats flag (#26)
* start re-integrating profiling functionality

* profiling works

* rename X class

* make profile a private attribute

* nomenclature fixes

* profiling -> profile

* remove _dump stats

* always initialize self._profile

* remove extra setting of profiling
2017-02-27 14:45:12 -06:00
Mark Mossberg
d6393cc8a6 Add hook decorator (#28)
* Add m.add_hook test

* Add @m.hook test

* Add `hook` decorator for convenience

* Update readme and examples

* Update run_callback

* Improve `add_hook` docstring

expound on callback structure

* Rm debug print

* Improve docstring
2017-02-27 15:44:33 -05:00
JP Smith
98567efeaa Force pc argument to add_hook to be an int or None (#30)
* force pc to be an int or None

* follow pep8 more closely

* change debug message to an error

* use format and isinstance
2017-02-27 14:25:18 -06:00
Yan
bbc36a2b2e Use issymbolic() throughout Manticore (#22)
* Use issymbolic() throughout Manticore

* Add a missed import

* absolute -> relative import

* Import issymbolic from helpers

* Missing import
2017-02-24 15:56:46 -05:00
Mark Mossberg
103d32c0a7 Make m.verbosity=2 work (#24)
* Make each model get "MODEL" logger instead of unique name

This makes implementing `manticore.verbosity` actually work for level
2

* Replace model names with 'MODEL'
2017-02-24 15:21:37 -05:00
Mark Mossberg
9d3dfec08b Rm helloworld in make clean (#27) 2017-02-24 15:21:28 -05:00
Mark Mossberg
44bf8745a1 m.start -> m.run (#25) 2017-02-22 10:08:35 -05:00
Mark Mossberg
f51227acd5 Control memory logging with verbosity (#23) 2017-02-21 11:41:15 -05:00
Mark Mossberg
065266ba7f Refactor symbolic syscall handling to be arch indep (#19) 2017-02-16 16:41:24 -05:00
Yan
5a432b8957 Update README snippet (#17) 2017-02-15 17:25:56 -05:00
Yan
724db78907 Assign context object to Manticore itself (#13)
* Make Manticore behave like a dict; slim callback
* Update all sample scripts to not take a context
* Add a sample script (count_instructions.py)
* We no longer need to close over Manticore state; add callback directly
* Move Manticore's context to a public attribute
2017-02-15 14:48:55 -05:00
Yan
da81e355b8 Fix symbolic argv (#12)
* Proxy ArrayStore's 'name' property to the underlying Array
* Make setup_stack() repeatable
* Re-initialize the stack if any of the environment was symbolicated
* Encorporate name proxy test to ArrayStore
* Use issymbolic()
2017-02-15 13:35:40 -05:00
Mark Mossberg
b86808777e Replace travis opt in with travis opt out (#11)
* Use `wip` branch prefix to opt out of travis, instead of dev- to opt in

* Add dash
2017-02-15 13:06:49 -05:00
Mark Mossberg
6577df9f0d Fix travis cache (#14)
Travis seems to have updated their python version
2017-02-15 13:00:33 -05:00
Mark Mossberg
05f5fcf045 Port to real python package structure (#6)
* Initial moving

* Initial package __init__.py

* Use relative imports

* Correct imports for tests

* Rename main.py -> __main__.py

* Use relative imports in main

* Refactor cli to be used with setuptools

* Add basic setup.py

* Fix test_memory import

* Fix test_cpu_manual imports

* Correct iterpickle import

* Use manticore console_script installed by setuptools

* Make travis install our package for integration cli tests

* Refactor model hooks dynamic import for being in pkg

* Correct import

* Rm empty line

* Fix coverage test paths
2017-02-15 12:32:08 -05:00
Mark Mossberg
8f51362734 Port @japesinator's dynamic FLAGS refactor from old repo (#10) 2017-02-14 16:42:09 -05:00
Yan
e539ae4139 Bring in tests to symbolicate PR (#3) 2017-02-14 16:06:10 -05:00
Yan
dde79a0bab Remove ManticoreControl object [#180] (#4)
* Remove ManticoreControl object
* Some changes were brought in from dev-symbolicate-api
* Add Manticore.terminate()
* Add State.abandon()
* Update sample scripts
* Remove ctl from README
* Fix tests
* Bring in changes from dev-symbolicate-api
* Lower-case wildcard
* string -> cstring
* abandon() docstring
* Rename "name" to "label"
* Remove obsolete comment
* Make NUL a possible value for the last byte of a cstring
* Fix AbandonState and add example binary&script
* name -> label in tests, manticore.py
* Ignore .DS_Store
* Update symbolicate_buffer docstring
2017-02-14 14:54:52 -05:00
Yan
406918a9fc Add LICENSE file (#5)
* Add LICENSE [ASL2]

* Bump year
2017-02-13 18:30:25 -05:00
Mark Mossberg
77c4905cbc Update README.md (#2)
* Update README.md

* Remove deps list
2017-02-13 16:57:55 -05:00
Mark Mossberg
38141ee006 Remove embedded elftools, use proper dependency (#1)
* Import elftools properly

* Add pyelftools as dep

* Use elftools dep

* Rm embedded elftools

* Make travis use requirements.txt

* Workaround capstone install bug

https://github.com/aquynh/capstone/issues/445
2017-02-13 14:51:05 -05:00
yan
badf1ab28e Initial import 2017-02-13 12:04:15 -05:00