Skip to content

Instantly share code, notes, and snippets.

@tiernano
Created May 31, 2018 08:48
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 tiernano/049c4730cd367aba2a4bb81b69c0ce2b to your computer and use it in GitHub Desktop.
Save tiernano/049c4730cd367aba2a4bb81b69c0ce2b to your computer and use it in GitHub Desktop.
#!/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