We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a56bdbf commit 2e93148Copy full SHA for 2e93148
dlinject.py
100644
100755
@@ -1,3 +1,5 @@
1
+#!/usr/bin/env python3
2
+
3
import argparse
4
from pwn import *
5
context.arch = "amd64"
@@ -118,10 +120,10 @@
118
120
fxsave moar_regs[rip]
119
121
122
// Open /proc/self/mem
- mov rax, 2 # SYS_OPEN
123
+ mov rax, 2 # SYS_OPEN
124
lea rdi, proc_self_mem[rip] # path
- mov rsi, 2 # flags (O_RDWR)
- xor rdx, rdx # mode
125
+ mov rsi, 2 # flags (O_RDWR)
126
+ xor rdx, rdx # mode
127
syscall
128
mov r15, rax # save the fd for later
129
0 commit comments