Guest User

Untitled

a guest
Dec 14th, 2017
150
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.92 KB | None | 0 0
  1. --user=user
  2. --password=password
  3. Specify the username user and password password for both FTP and
  4. HTTP file retrieval.
  5.  
  6. origin='https://progtest.fit.cvut.cz/'
  7.  
  8. # Get the PHPSESSID cookie
  9. wget --save-cookies phpsid.cki --keep-session-cookies "$origin"
  10.  
  11. # Get the _idp_authn_lc_key cookie
  12. wget --load-cookies phpsid.cki --save-cookies sso.cki --keep-session-cookies --header="Referer: $origin" 'https://progtest.fit.cvut.cz/shibboleth-fit.php'
  13.  
  14. # Send your credentials
  15. 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'
  16.  
  17. sudo apt-get install phantomjs
  18.  
  19. phantomjs script.js
  20.  
  21. phantomjs --ssl-protocol=any script.js
  22.  
  23. sudo apt-get install python-pip #On a Debian based system
  24. sudo pip install Ghost.py
  25.  
  26. curl --data "j_username=value1&j_password=value2" https://idp2.civ.cvut.cz/idp/Authn/UserPassword
Add Comment
Please, Sign In to add comment