Skip to content

Commit 64a3030

Browse files
committed
typo fix
1 parent fdf2614 commit 64a3030

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

content/posts/tuxedos.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ pub fn main() !void { // main function
269269
4. Detach when done.
270270
5. Wait for `ptrace` to actually attach to the process.
271271
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).
272+
7. set the address with an offset of 2 to immediately execute the code.
273273
8. Now time to inject the shell code!
274274
9. Prepare the shell code for being sent into the target process and calculate the chunk size.
275275
10. Inject the shell code in 8 byte chunks.

0 commit comments

Comments
 (0)