Skip to content

Commit 2e93148

Browse files
Add python hashbang
1 parent a56bdbf commit 2e93148

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

dlinject.py

100644100755
Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#!/usr/bin/env python3
2+
13
import argparse
24
from pwn import *
35
context.arch = "amd64"
@@ -118,10 +120,10 @@
118120
fxsave moar_regs[rip]
119121
120122
// Open /proc/self/mem
121-
mov rax, 2 # SYS_OPEN
123+
mov rax, 2 # SYS_OPEN
122124
lea rdi, proc_self_mem[rip] # path
123-
mov rsi, 2 # flags (O_RDWR)
124-
xor rdx, rdx # mode
125+
mov rsi, 2 # flags (O_RDWR)
126+
xor rdx, rdx # mode
125127
syscall
126128
mov r15, rax # save the fd for later
127129

0 commit comments

Comments
 (0)