ptrace-redirect
Example code for changing syscall arguments using ptrace
Example code for changing syscall arguments using ptrace
License: BSD Zero Clause License
Example code for changing syscall arguments using ptrace
I just want to leave a note that the example with cat TWO.txt
does not work on a recent Debian sid.
The reason is, that cat
now uses the openat()
syscall instead of open()
.
Anyway, great code project! Thanks @alfonsosanchezbeato!
Hello, your work is quite nice. It is very helpful to me.
I want to identify the absolute path of the file to redirect to the file that I expect to open, but now I meet a problem, how to get the absolute path of the file when intercepting the open system call. I tried to use PEEKUSER to get the file name parameter of the open system call, but what I got was a relative path. If you have any thoughts, I will be grateful for you to tell me.
Thanks.
It would be nice to add a license to this example, so people can copy & paste it with assurance. Maybe add an Apache2 or MIT license header?
thanks!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.