Files
Eric Kilmer 6ff1e8774e Ek testing dev expressions (#2388)
* Black formatting

* Native tests pass

* Passes checked in (non-generated) wasm tests

* Some ethereum test fixes

* Reenable wasm tests

* Fix mypy error

* Use pytest timeout

* mypy checked untyped defs in manticore.core.smtlib
2021-01-19 12:27:29 -03:00
..
2017-02-13 12:04:15 -05:00
2021-01-19 12:27:29 -03:00
2021-01-15 16:42:09 -03:00
2021-01-15 16:42:09 -03:00
2020-01-03 11:55:22 -08:00

Manticore Examples

Quickstart

Install and try Manticore in a few shell commands:

# (Recommended) Create a virtual environment for Manticore
virtualenv -p `which python3` mcenv
source mcenv/bin/activate

# Install Manticore and its dependencies
pip install manticore[native]

# Download the examples
git clone https://github.com/trailofbits/manticore.git && cd manticore/examples/linux

# Build the examples
make

# Use the Manticore CLI
manticore basic
cat mcore_*/*0.stdin | ./basic
cat mcore_*/*1.stdin | ./basic

# Use the Manticore API
cd ../script
python count_instructions.py ../linux/helloworld

You can also use Docker to quickly install and try Manticore:

# Run container with a shared examples/ directory
# Note that `--rm` will make the container be deleted if you exit it
# (if you want to persist data from the container, use docker volumes)
# (we need to increase maximum stack size, so we use ulimit for that)
$ docker run --rm -it --ulimit stack=100000000:100000000 trailofbits/manticore bash

# Change to examples directory
manticore@8d456f662d0f:~$ cd manticore/examples/linux/

# Build the examples
manticore@8d456f662d0f:~/manticore/examples/linux$ make

# Use the Manticore CLI
manticore@8d456f662d0f:~/manticore/examples/linux$ manticore basic


manticore@8d456f662d0f:~/manticore/examples/linux$ cat mcore_*/*0.stdin | ./basic
manticore@8d456f662d0f:~/manticore/examples/linux$ cat mcore_*/*1.stdin | ./basic

# Use the Manticore API
manticore@8d456f662d0f:~/manticore/examples/linux$ cd ../script
manticore@8d456f662d0f:~/manticore/examples/script$ python3 count_instructions.py ../linux/helloworld