14 lines
234 B
Python
Executable File
14 lines
234 B
Python
Executable File
#!/usr/bin/env -S python3
|
|
from pwn import *
|
|
from struct import pack
|
|
|
|
print(sys.argv)
|
|
|
|
if len(sys.argv) < 2:
|
|
print("no args for serial device")
|
|
exit()
|
|
|
|
tube = serialtube(sys.argv[1], convert_newlines=False)
|
|
|
|
tube.interactive()
|