Last active
July 13, 2017 21:51
-
-
Save nazywam/e33909c3a2525bcdf13c96a4818ca581 to your computer and use it in GitHub Desktop.
Woops
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
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