Skip to content

Instantly share code, notes, and snippets.

@cdmo
Created February 3, 2016 14:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cdmo/3295061206f0fb8698b3 to your computer and use it in GitHub Desktop.
Save cdmo/3295061206f0fb8698b3 to your computer and use it in GitHub Desktop.
# stolen from http://sourceforge.net/p/cosign/mailman/cosign-discuss/thread/4E302E4A.7050602@psulias.psu.edu/
# 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