We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fdf2614 commit 64a3030Copy full SHA for 64a3030
1 file changed
content/posts/tuxedos.md
@@ -269,7 +269,7 @@ pub fn main() !void { // main function
269
4. Detach when done.
270
5. Wait for `ptrace` to actually attach to the process.
271
6. Get the memory registers with `ptrace` and `PTRACE_GETREGS`. This is needed for finding where to inject the shell code.
272
-7. copy them (probably don't need to but is good in case of wanting to revert them back).
+7. set the address with an offset of 2 to immediately execute the code.
273
8. Now time to inject the shell code!
274
9. Prepare the shell code for being sent into the target process and calculate the chunk size.
275
10. Inject the shell code in 8 byte chunks.
0 commit comments