Open ghost opened 7 years ago
Same error here, Ubuntu 17.04 (anaconda python installation)
Same here, centos 7
Ok I found out why, you need to download capstone from git, then compile it, and then run make inside sifter directory. This will compile the injector and then all works well.
@sokoow : I've installed capstone-git but I can't run make because I encounter #2 .
$> make
cc -c injector.c -o injector.o -Wall
injector.c:321:93: warning: excess elements in array initializer
00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00}, .len =0},
^~~~
injector.c:321:93: note: (near initialization for ‘total_range.start.bytes’)
injector.c:322:91: warning: excess elements in array initializer
ff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff}, .len =0},
^~~~
injector.c:322:91: note: (near initialization for ‘total_range.end.bytes’)
cc injector.o -O3 -Wall -l:libcapstone.a -o injector -pthread
/usr/bin/ld: cannot find -l:libcapstone.a
collect2: error: ld returned 1 exit status
make: *** [Makefile:35: injector] Error 1
it compiled fine for me under centos7 :/
On Ubuntu, the necessary libraries are packaged:
sudo apt install python-capstone libcapstone-dev
make
sudo ./sifter.py --unk --dis --len --sync --tick -- -P1 -t
Hi,
I'm trying to test sandsifter on Arch. After manually specifying python2, I get:
Please let me know if you need any more info or testing.