
Trova kit di phishing che utilizzano file e immagini del tuo marchio/organizzazione.
Trova i kit di phishing che utilizzano i file e le immagini del tuo marchio/organizzazione.
PhishingKitHunter (o PKHunter) è uno strumento realizzato per identificare gli URL dei kit di phishing utilizzati in campagne di phishing che prendono di mira i tuoi clienti e che utilizzano alcuni dei file del tuo sito web (come CSS, JS, ...). Questo strumento – scritto in Python 3 – si basa sull'analisi dell'URL del referrer che ottiene file particolari sul sito web legittimo (come alcuni contenuti di stile) o reindirizza l'utente dopo la sessione di phishing. I file di log (dovrebbero) contenere l'URL del referrer da cui l'utente proviene e dove è distribuito il kit di phishing. PhishingKitHunter analizza i tuoi file di log per identificare referrer particolari e non legittimi che tentano di ottenere pagine legittime basate su espressioni regolari inserite nel file di configurazione di PhishingKitHunter.
$ ./PhishingKitHunter.py -i LogFile2017.log -o PKHunter-report-20170502-013307.csv -c conf/test.conf
_ \ | / | | |
| | ' / | | | | __ \ __| _ \ __|
___/ . \ ___ | | | | | | __/ |
_| _|\_\_| _|\__,_|_| _|\__|\___|_|
-= Phishing Kit Hunter - v0.8.1 =-
[+] http://badscam.org/includes/ap/?a=2
| Timestamp: 01/May/2017:13:00:03
| HTTP status: can't connect (HTTP Error 404: Not Found)
[+] http://scamme.com/aple/985884e5b60732b1245fdfaf2a49cdfe/
| Timestamp: 01/May/2017:13:00:49
| HTTP status: can't connect (<urlopen error [Errno -2] Name or service not known>)
[+] http://badscam-er.com/eb/?e=4
| Timestamp: 01/May/2017:13:01:06
| HTTP status: can't connect (<urlopen error [Errno -2] Name or service not known>)
[+] http://assur.cam.tech/scam/brand/new/2bd5a55bc5e768e530d8bda80a9b8593/
| Timestamp: 01/May/2017:13:01:14
| HTTP status: UP
| HTTP shash : 0032588b8d93a807cf0f48a806ccf125677503a6fabe4105a6dc69e81ace6091
| DOMAIN registrar: ASCIO TECHNOLOGIES, INC. DANMARK - FILIAL AF ASCIO TECHNOLOGIES, INC. USA
| DOMAIN creation date: 2008-07-10 00:00:00
| DOMAIN expiration date: 2017-07-10 00:00:00
[+] http://phish-other.eu/assur/big/phish/2be1c6afdbfc065c410d36ba88e7e4c9/
| Timestamp: 01/May/2017:13:01:15
| HTTP status: UP
| HTTP shash : 2a545c4d321e3b3cbb34af62e6e6fbfbdbc00a400bf70280cb00f4f6bb0eac44
| DOMAIN registrar: Hostmaster Strato Rechenzentrum
| DOMAIN creation date: None found
| DOMAIN expiration date: None found
697475it [06:41, 1208.14it/s]
$ ./PhishingKitHunter.py --help
_ \ | / | | |
| | ' / | | | | __ \ __| _ \ __|
___/ . \ ___ | | | | | | __/ |
_| _|\_\_| _|\__,_|_| _|\__|\___|_|
-= Phishing Kit Hunter - v0.8.1 =-
-h --help Stampa questo messaggio
-i --ifile File di log di input da analizzare
-o --ofile File di report CSV di output (default: ./PKHunter-report-'data'-'ora'.csv)
-c --config File di configurazione da usare (default: ./conf/defaults.conf)
$ cat ./PKHunter-report-20170502-013307.csv
PK_URL;Domain;HTTP_sha256;HTTP_status;date;domain registrar;domain creation date;domain creation date;domain expiration date
http://badscam.org/includes/ap/?a=2;badscam.org;;can't connect (HTTP Error 404: Not Found);01/May/2017:13:00:03;;;
http://assur.cam.tech/scam/brand/new/2bd5a55bc5e768e530d8bda80a9b8593/;assur.cam.tech;0032588b8d93a807cf0f48a806ccf125677503a6fabe4105a6dc69e81ace6091;UP;01/May/2017:13:01:14;None found;None found;Hostmaster Strato Rechenzentrum
[...]
Installa i requisiti
pip3 install -r requirements.txt
Leggi il file conf/default.conf per imparare come configurare PhishingKitHunter.
Puoi usare il Dockerfile per creare un container Docker che clona automaticamente questo repository. Si basa sull'ultima distribuzione leggera di Phusion, ottiene i pacchetti necessari per ottenere ed eseguire PhishingKitHunter.
Costruisci il container:
$ docker build tad/pkhunter .
Avvia il container con alcune opzioni (ad esempio la tua cartella locale dei file di log):
$ docker run -d -P --name PKHunter --volume /var/log:/opt/logfiles tad/pkhunter
Ora puoi eseguire una shell e iniziare la tua analisi:
$ docker exec -ti tad/pkhunter /bin/bash