Created
May 31, 2018 08:48
-
-
Save tiernano/049c4730cd367aba2a4bb81b69c0ce2b to your computer and use it in GitHub Desktop.
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
#!/bin/sh | |
USER=<serverusername> | |
PASS=<serverpassword> | |
HOST=<serverip> | |
COOKIE=`curl -k --data "WEBVAR_USERNAME=$USER&WEBVAR_PASSWORD=$PASS" https://$HOST/rpc/WEBSES/create.asp 2> /dev/null | grep SESSION_COOKIE | cut -d\' -f 4` | |
curl -k --cookie Cookie=SessionCookie=$COOKIE https://$HOST/Java/jviewer.jnlp -o $HOST.jviewer.jnlp | |
javaws $HOST.jviewer.jnlp |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment