Comments (6)
Well, Qiling is built on top of Unicorn, so this is really a Unicorn question. That said, I don't see how one can parallel a program emulation of a program that was not necessarily designed to be multi-threaded. Normal program have well-defined deterministic flow. How can you emulate a piece of program that relies on initialization or calculations done on another part..?
from qiling.
My program is special, because it has a shell in the exe, I want to analyze its text section, then it will definitely jump to the corresponding shell section. I simulate the result by calling the call of the shell section. Setting up the right environment is enough.
For example, I've identified 5000 functions that are encrypted. Jumping to the encrypted shell, I want to divide the 5000 functions into 10 groups and calculate the results simultaneously. I need to use 10 threads to do this. Here's what I'm thinking.
from qiling.
But it's not very effective. It took two hours before, now it takes an hour and a half.
from qiling.
Most parts running slow is the usermode emulation by Qiling, which is hindered by python GIL so you need multiprocess to make it really faster.
Note unicorn itself drops GIL when doing emulation.
from qiling.
Start by removing the hook_code
for live disassembled output. It will dramatically improve the run time.
from qiling.
Thank you very much, I used mutiprocessing for my purpose.
from qiling.
Related Issues (20)
- 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
- 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)
- Linker fails to link dynamic link libraries correctly
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.