Closed dobin closed 6 years ago
I checked the error raised by keystone. Here are some issues related to the topic (it's about capstone, but seems like the reason for the error is the same): #117, #413, #5. Seems like pip3 installed keystone's library to a wrong place. I suggest you reinstalling keystone manually using this documentation. Or you can just move the library to /usr/local/lib/python3.6/dist-packages/keystone/
Yeah, it appears to be a common problem. Copying the other shared libraries to the mentioned directories did not help.
In other news, i managed to compile keystone from source. But now trying to install shellen results in:
root@shellcoding:~/shellen# python3 setup.py install
...
[100%] Built target keystone
error: Setup script exited with error: SandboxViolation: mkdir('/usr/lib/python3/dist-packages/keystone', 511) {}
The package setup script has attempted to modify files on your system
that are not within the EasyInstall build area, and has been aborted.
This package cannot be safely installed by EasyInstall, and may not
support alternate installation locations even if you run its setup
script by hand. Please inform the package's author and the EasyInstall
maintainers to find out if a fix or workaround is available.
So it tries to install keystone again, but this fails. Is there a way around this?
Ah sorry, i only moved the keystone files, not capstone. This fixes it for the pip3 install on Ubuntu 17.10:
root@shellcoding2:~# cp /usr/local/lib/python3.6/dist-packages/usr/lib/python3/dist-packages/capstone/* /usr/local/lib/python3.6/dist-packages/capstone/
root@shellcoding2:~# cp /usr/local/lib/python3.6/dist-packages/usr/lib/python3/dist-packages/keystone/* /usr/local/lib/python3.6/dist-packages/keystone/
root@shellcoding2:~# ldconfig
root@shellcoding2:~# shellen
[*] You can type help to see the list of available commands.
[*] Also, to close this session you should enter q or quit
L:asm:x86_32 >
Tried to install it in an Ubuntu 17.10 lxd container, got the following error when starting:
Host is Ubuntu 16.04.