Clean and document some example/linux (#176)

* Clean arguments.c

* Increase query timeout from 30 to 120 seconds

* Example documentation updated

* Add ibranch comments

* crackme.py, ibranch, sindex and typos

* indexhell

* visitad typo

* typo

* strncmp example

* Typos
This commit is contained in:
feliam
2017-05-02 18:04:07 -03:00
committed by Dan Guido
parent f4e5bcf53e
commit b19a158b6f
13 changed files with 406 additions and 218 deletions
+32 -7
View File
@@ -1,11 +1,36 @@
/* Minimal toy example with input/output using libc
* Symbolic values are read from stdin using standard libc calls.
*
/**
* Symbolic values are read from stdin using standard libc calls.
* Program checks if a binary packed integer at the input is 0x41 or less.
*
* Compile with :
* $ gcc toy002-libc.c -o toy002-libc
*
* Analize it with:
* $ python system.py --sym stdin examples/toy002-libc
* $ gcc -static -Os basic.c -o basic
*
* Analyze it with:
* $ manticore basic
*
* - By default manticore will consider all input of stdin symbolic
*
* Expected output:
* $ manticore basic
* 2017-04-22 10:35:52,789: [9309] MAIN:INFO: Loading program: ['basic']
* 2017-04-22 10:35:52,792: [9309] MAIN:INFO: Workspace: ./mcore_IJ2sPb
* 2017-04-22 10:36:24,386: [9359][3] EXECUTOR:INFO: Generating testcase No. 1 for state No.3 - Program finished correctly
* 2017-04-22 10:36:28,452: [9359][5] EXECUTOR:INFO: Generating testcase No. 2 for state No.5 - Program finished correctly
*
* Look at ./mcore_IJ2sPb for results, you will find something like this:
* $ hexdump -C test_00000001.stdin
* 00000000 00 80 00 20 |... |
*
* $ hexdump -C test_00000002.stdin
* 00000000 41 00 00 00 |A...|
*
* You can try out the values like this:
*
* $ printf "\x00\x80\x00\x20" | ./basic
* Message: It is greater than 0x41
*
* $ printf "\x41\x00\x00\x00" | ../basic
* Message: It is smaller or equal than 0x41
*/
#include <stdio.h>