-
目前python的插桩中的os.open重写有什么用?作者的理念是什么呢 |
Beta Was this translation helpful? Give feedback.
Answered by
jinghao1
Sep 23, 2021
Replies: 1 comment 6 replies
-
重写os.open,增加hook方法,捕捉入参出参,应用中调用open方法的时候,就能拿到参数,进而构造调用链;理念谈不上,这是最基础的原则,在用户调用危险方法之前,重写需要调用的危险方法,捕捉参数 |
Beta Was this translation helpful? Give feedback.
6 replies
Answer selected
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
重写os.open,增加hook方法,捕捉入参出参,应用中调用open方法的时候,就能拿到参数,进而构造调用链;理念谈不上,这是最基础的原则,在用户调用危险方法之前,重写需要调用的危险方法,捕捉参数