
KrbRoastParser è uno strumento per l'analisi dei pacchetti Kerberos da file pcap per estrarre gli hash AS-REQ, AS-REP e TGS-REP.
Krb5RoastParser è uno strumento progettato per analizzare i pacchetti di autenticazione Kerberos (AS-REQ, AS-REP e TGS-REP) da file .pcap e generare hash compatibili con il cracking delle password per test di sicurezza. Sfruttando tshark, Krb5RoastParser estrae i dettagli necessari dai pacchetti Kerberos, fornendo formati di hash pronti per strumenti come Hashcat.

.pcap.john).Assicurati di avere:
tshark installato e accessibile nel tuo PATHPer installare tshark (se non ancora installato):
# On Debian/Ubuntu
sudo apt update
sudo apt install tshark -y
# On macOS (using Homebrew)
brew install wireshark
# On Windows is included in the Wireshark installation
git clone https://github.com/jalvarezz13/Krb5RoastParser.git
cd Krb5RoastParser
Per eseguire Krb5RoastParser, usa la seguente sintassi:
python krb5_roast_parser.py <pcap_file> <as_req/as_rep/tgs_rep>
<pcap_file>: Il percorso del file .pcap contenente i pacchetti Kerberos.<as_req/as_rep>: Specifica il tipo di pacchetto Kerberos da analizzare.
as_req per i pacchetti AS-REQas_rep per i pacchetti AS-REPtgs_rep per i pacchetti TGS-REPAnalizza i pacchetti AS-REQ:
python krb5_roast_parser.py sample.pcap as_req
Analizza i pacchetti AS-REP:
python krb5_roast_parser.py sample.pcap as_rep
Analizza i pacchetti TGS-REP:
python krb5_roast_parser.py sample.pcap tgs_rep
as_req: L'output sarà nel formato $krb5pa$18$....as_rep: L'output sarà nel formato $krb5asrep$23$....tgs_rep: L'output sarà nel formato $krb5tgs$23$....Questi output sono compatibili con le modalità di hash di Hashcat.
[!NOTE]
Al momento, lo strumento supporta solo questi formati di hash. Se hai bisogno di supporto per altri formati di hash, sentiti libero di aprire un problema o inviare una richiesta pull.
Una volta ottenuti gli hash generati, puoi usare Hashcat per provare a decifrarli.
Per gli hash AS-REQ, usa la modalità Hashcat 19900:
hashcat -m 19900 <hashfile> <wordlist>
Per gli hash AS-REP, usa la modalità Hashcat 18200:
hashcat -m 18200 <hashfile> <wordlist>
Per gli hash TGS-REP, usa la modalità Hashcat 13100:
hashcat -m 13100 <hashfile> <wordlist>
Sostituisci <hashfile> con il file contenente gli hash estratti e <wordlist> con il tuo file di wordlist.
Questo progetto è concesso in licenza con Licenza MIT. Vedi il file LICENSE per maggiori informazioni.