Comments (2)
helper 往 tracee 内存里写的 shellcode 实际上对应的是一个循环 syscall,我理解这里 syscall 的实际参数会被 tracer 替换掉,所以实际上 shellcode 里面填的 syscall no 只是一个占位的作用。
是的,正是如此。
那么为什么要用 exit_group 来做占位符呢?
严格来说这里随便选一个值或者根本不管它就可以了,不过如果选用 exit_group
的话,在某些异常情况下能够使 tracee 自动退出,以便于及时发现、定位问题。异常情况可能包括:tracer 程序没有按照预期正确地执行相关逻辑,或者 ptrace syscall 出现 bug,等等。所以,这可以看成是一种保护,尽管我还没有遇到过触发的情况。
from tiexec.
了解了,感谢
from tiexec.
Related Issues (1)
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 tiexec.