Skip to content

Instantly share code, notes, and snippets.

@spnow
Created March 16, 2017 21:03
Show Gist options
  • Save spnow/ba2adb4f5d6b659482c9b27adf713b4f to your computer and use it in GitHub Desktop.
Save spnow/ba2adb4f5d6b659482c9b27adf713b4f to your computer and use it in GitHub Desktop.
ctf trick for persist stdio in pwn
(python -c 'print "payload"'; cat -) | nc pwnable.url
(echo payload; cat) | ./pwnable
cat payload - | ./pwnable
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment