Comments (13)
Workaround until upstream fix.
cp /usr/local/lib/python3.6/dist-packages/usr/lib/python3/dist-packages/keystone/libkeystone.so /usr/local/lib/python3.6/dist-packages/keystone/
from qiling.
I guess running a ldconfig should fix the issue as mention in keystone installation guide.
i will add a note into qiling installation guide too.
from qiling.
ldconfig does not solve this. mainly since it's not a ld path issue, rather it's a keystone library placed into wrong location issue:
sudo ldconfig
[sudo] password for user:
(qiling) ✔ ~/work/opt/qiling [master|✔]
14:23 $ ./qltool
Traceback (most recent call last):
File "./qltool", line 15, in <module>
from keystone import *
File "/home/user/.virtualenvs/qiling/lib/python3.6/site-packages/keystone/__init__.py", line 4, in <module>
from .keystone import Ks, ks_version, ks_arch_supported, version_bind, debug, KsError, __version__
File "/home/user/.virtualenvs/qiling/lib/python3.6/site-packages/keystone/keystone.py", line 75, in <module>
raise ImportError("ERROR: fail to load the dynamic library.")
ImportError: ERROR: fail to load the dynamic library.
from qiling.
Please send a pull req to Keystone for this issue.
from qiling.
It appears the python library for keystone is over 3 years old. The source may be correct in the git tree, but it's never been pushed to pypi.
from qiling.
Ah, this is pypi issue. not the original install from source issue
from qiling.
from qiling.
if you are able to fix it, please sent in a pull request to keystone
from qiling.
from qiling.
@chfl4gs can you please check ? or update the the documents
from qiling.
Having issue with Keystone installation (keystone-engine>=0.9.1.post3) on macOS Catalina, due to macOS won't support 32bit executable furthermore. Same issue has been reported here
Temporary workaround:
Remove keystone-engine>=0.9.1.post3
in requirements.txt
and install keystone-engine python binding from source.
from qiling.
I have the same problem."cp /usr/local/lib/python3.6/dist-packages/usr/lib/python3/dist-packages/keystone/libkeystone.so /usr/lib/ " .I sovled the problem
from qiling.
you just need to check kestone.py
if (_found == False) and (system() == 'Darwin'):
_lib_path = '/usr/local/lib/'
for _lib in _all_libs:
try:
_lib_file = join(_lib_path, _lib)
#print(">> 3: Trying to load %s" %_lib_file);
_ks = cdll.LoadLibrary(_lib_file)
_found = True
break
except OSError:
pass
if _found == False:
raise ImportError("ERROR: fail to load the dynamic library.")
from qiling.
Related Issues (20)
- hook_HeapAlloc does not respect HEAP_ZERO_MEMORY HOT 1
- DLL not automaticly loaded. HOT 1
- Qiling fails to run Alpine Linux binaries HOT 1
- Regression on POSIX ql_syscall_open HOT 8
- POSIX ql_syscall_readv returns incorrect value.
- Problem syscall_mmap_impl
- add_fs_mapper for directories on host HOT 2
- Understanding Qiling fuzzing HOT 3
- System-Wide Emulation for Windows
- execve EPERM with system syscall HOT 2
- Can I use threads to improve the efficiency of qiling? Is the effect significant? HOT 6
- Python 3.12 distutils deprecated package HOT 1
- Ghidra headless analyzer not finding qiling HOT 2
- Default syscalls not implemented in Posix OS
- Make symbolic link for Android HOT 1
- Missing Android dynamic linker file
- How do you implement blocking system calls with gevent? HOT 2
- Hardware & peripherals API
- POSIX: unlink() returns EPERM (-1) on failure.
- When I add ql.os.set_api('strcasecmp', pre_strcasecmp, QL_INTERCEPT.ENTER), it reports Syscall ERROR: ql_syscall_brk DEBUG: Invalid memory mapping (UC_ERR_MAP)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from qiling.