
Advanced scanner for CVE-2020-0796 - SMBv3 RCE
Scanner avancé pour CVE-2020-0796 - SMBv3 RCE utilisant la technique de détection d'ollypwn (SMBGhost).
Il peut scanner tout Internet en utilisant masscan ou une seule adresse IP.
Il peut obtenir plus d'informations sur les cibles en utilisant Shodan (clé API requise) et écrire les résultats dans un fichier json.
Sinon, il affichera les adresses IP vulnérables sur la console.
Installer python3 et pip :
sudo apt install python3 python3-pip
Installer masscan :
sudo apt-get install git gcc make libpcap-dev
git clone https://github.com/robertdavidgraham/masscan
cd masscan
make
cp bin/masscan /usr/bin/.
L'installation a été testée sur Debian bullseye/sid x86_64 (mars 2020)
git clone https://github.com/x1n5h3n/SMBGhost.git
cd SMBGhost
Installer les paquets Python nécessaires :
pip3 install -r requirements.txt
Définissez votre clé API Shodan sur la variable SHODAN_API_KEY
Afficher l'aide :
python3 scanner.py -h
Scanner tout Internet et écrire les résultats dans un fichier json (en utilisant une requête vers Shodan pour recueillir plus d'informations) :
python3 scanner.py -t 0.0.0.0/0 -o results.json
Scanner une seule adresse IP sans spécifier le nom du fichier de résultat (par défaut smbghost.json) :
python3 scanner.py -t 8.8.8.8
Utiliser un fichier en entrée :
python3 scanner.py -f targets.txt
Scanner tout Internet :
python3 scanner.py -t 0.0.0.0/0
Scanner une seule adresse IP :
python3 scanner.py -t 8.8.8.8
Utiliser un fichier en entrée :
python3 scanner.py -f targets.txt
Ce projet est sous licence GPLv3 - voir le fichier LICENSE pour plus de détails.