Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --user=user
- --password=password
- Specify the username user and password password for both FTP and
- HTTP file retrieval.
- origin='https://progtest.fit.cvut.cz/'
- # Get the PHPSESSID cookie
- wget --save-cookies phpsid.cki --keep-session-cookies "$origin"
- # Get the _idp_authn_lc_key cookie
- wget --load-cookies phpsid.cki --save-cookies sso.cki --keep-session-cookies --header="Referer: $origin" 'https://progtest.fit.cvut.cz/shibboleth-fit.php'
- # Send your credentials
- wget --load-cookies sso.cki --save-cookies auth.cki --keep-session-cookies --post-data='j_username=usr&j_password=pwd' 'https://idp2.civ.cvut.cz/idp/Authn/UserPassword'
- sudo apt-get install phantomjs
- phantomjs script.js
- phantomjs --ssl-protocol=any script.js
- sudo apt-get install python-pip #On a Debian based system
- sudo pip install Ghost.py
- curl --data "j_username=value1&j_password=value2" https://idp2.civ.cvut.cz/idp/Authn/UserPassword
Add Comment
Please, Sign In to add comment