Code Monkey home page Code Monkey logo

Comments (2)

hnes avatar hnes commented on May 29, 2024

helper 往 tracee 内存里写的 shellcode 实际上对应的是一个循环 syscall,我理解这里 syscall 的实际参数会被 tracer 替换掉,所以实际上 shellcode 里面填的 syscall no 只是一个占位的作用。

是的,正是如此。

那么为什么要用 exit_group 来做占位符呢?

严格来说这里随便选一个值或者根本不管它就可以了,不过如果选用 exit_group 的话,在某些异常情况下能够使 tracee 自动退出,以便于及时发现、定位问题。异常情况可能包括:tracer 程序没有按照预期正确地执行相关逻辑,或者 ptrace syscall 出现 bug,等等。所以,这可以看成是一种保护,尽管我还没有遇到过触发的情况。

from tiexec.

choleraehyq avatar choleraehyq commented on May 29, 2024

了解了,感谢

from tiexec.

Related Issues (1)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.