Created
February 3, 2016 14:18
-
-
Save cdmo/3295061206f0fb8698b3 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
# stolen from http://sourceforge.net/p/cosign/mailman/cosign-discuss/thread/[email protected]/ | |
# get your cookies | |
curl -L -b /tmp/cookies.txt -c /tmp/cookies.txt https://yourcosignlogin.com | |
# attempt to login | |
curl -L -b /tmp/cookies.txt -c /tmp/cookies.txt https://yourcosignlogin.com/cosign.cgi \ | |
--data "login=username&password=password" | |
# now access your protected site | |
curl -L -b /tmp/cookies.txt -c /tmp/cookies.txt https://someothersite.com/pathtoresource |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment