Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to run under Arch #1

Open
ghost opened this issue Jul 28, 2017 · 6 comments
Open

Unable to run under Arch #1

ghost opened this issue Jul 28, 2017 · 6 comments

Comments

@ghost
Copy link

ghost commented Jul 28, 2017

Hi,

I'm trying to test sandsifter on Arch. After manually specifying python2, I get:

$> sudo ./sifter.py --unk --dis --len --sync --tick -- -P1 -t
Traceback (most recent call last):
  File "./sifter.py", line 842, in <module>
    main()
  File "./sifter.py", line 817, in main
    arch = re.search(r".*(..)-bit.*", injector_bitness).group(1)
AttributeError: 'NoneType' object has no attribute 'group'

Please let me know if you need any more info or testing.

@esquire900
Copy link

Same error here, Ubuntu 17.04 (anaconda python installation)

@sokoow
Copy link

sokoow commented Jul 28, 2017

Same here, centos 7

@sokoow
Copy link

sokoow commented Jul 28, 2017

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.

@ghost
Copy link
Author

ghost commented Jul 28, 2017

@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

@sokoow
Copy link

sokoow commented Jul 28, 2017

it compiled fine for me under centos7 :/

@FauxFaux
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants