Winpeas
0
linPEAS/README.md
Normal file → Executable file
0
linPEAS/images/help.png
Normal file → Executable file
Before Width: | Height: | Size: 267 KiB After Width: | Height: | Size: 267 KiB |
0
linPEAS/images/linpeas.png
Normal file → Executable file
Before Width: | Height: | Size: 42 KiB After Width: | Height: | Size: 42 KiB |
0
linPEAS/images/network.png
Normal file → Executable file
Before Width: | Height: | Size: 10 KiB After Width: | Height: | Size: 10 KiB |
0
linPEAS/images/peass.png
Normal file → Executable file
Before Width: | Height: | Size: 127 KiB After Width: | Height: | Size: 127 KiB |
0
winPEAS/README.md
Normal file → Executable file
0
winPEAS/winPEASbat/README.md
Normal file → Executable file
9
winPEAS/winPEASbat/winPEAS.bat
Normal file → Executable file
@ -146,6 +146,10 @@ echo _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-^> [+] Registered Anti-Virus(AV) ^<_-_-_-_-_-
|
||||
WMIC /Node:localhost /Namespace:\\root\SecurityCenter2 Path AntiVirusProduct Get displayName /Format:List | more
|
||||
echo.
|
||||
echo.
|
||||
echo Checking for defender whitelisted PATHS
|
||||
reg query "HKLM\SOFTWARE\Microsoft\Windows Defender\Exclusions\Paths"
|
||||
echo.
|
||||
echo.
|
||||
echo _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-^> [+] PS settings ^<_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-
|
||||
echo PowerShell v2 Version:
|
||||
REG QUERY HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\PowerShell\1\PowerShellEngine /v PowerShellVersion
|
||||
@ -158,6 +162,9 @@ REG QUERY HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\PowerShell\Modu
|
||||
echo Scriptblog logging settings:
|
||||
REG QUERY HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\PowerShell\ScriptBlockLogging
|
||||
echo.
|
||||
echo PS default transcript history
|
||||
dir %SystemDrive%\transcripts\
|
||||
echo.
|
||||
echo.
|
||||
echo _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-^> [+] MOUNTED DISKS ^<_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-
|
||||
echo [i] Maybe you find something interesting
|
||||
@ -445,7 +452,7 @@ IF EXIST %systemroot%\system32\inetsrv\appcmd.exe ECHO %systemroot%\system32\ine
|
||||
echo.
|
||||
echo.
|
||||
echo _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-^> [+] Files an registry that may contain credentials ^<_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-
|
||||
echo [i] Searching specific files that may contains credentias.
|
||||
echo [i] Searching specific files that may contains credentials.
|
||||
echo [?] https://book.hacktricks.xyz/windows/windows-local-privilege-escalation#credentials-inside-files
|
||||
echo Looking inside HKCU\Software\ORL\WinVNC3\Password
|
||||
reg query HKCU\Software\ORL\WinVNC3\Password 2>nul
|
||||
|
6
winPEAS/winPEASexe/README.md
Normal file → Executable file
@ -27,6 +27,9 @@ It should take only a **few seconds** to execute almost all the checks and **som
|
||||
|
||||
By default, the progam **sleeps 100ms** before start searching files in each directory. This is made to consume less resources (**stealthier**). You can **avoid this sleep using `searchfast` parameter**.
|
||||
|
||||
|
||||
## Where are my COLORS?!?!?!
|
||||
|
||||
The **ouput will be colored** using **ansi** colors. If you are executing `winpeas.exe` **from a Windows console**, you need to set a registry value to see the colors (and open a new CMD):
|
||||
```
|
||||
REG ADD HKCU\Console /v VirtualTerminalLevel /t REG_DWORD /d 1
|
||||
@ -79,7 +82,7 @@ Once you have installed and activated it you need to:
|
||||
- [x] Environment Variables
|
||||
- [x] Internet Settings
|
||||
- [x] Current drives information
|
||||
- [x] AV?
|
||||
- [x] AV? whitelisted defender paths?
|
||||
- [x] UAC configuration
|
||||
|
||||
- **Users Information**
|
||||
@ -120,6 +123,7 @@ Once you have installed and activated it you need to:
|
||||
- [x] Credential Manager
|
||||
- [x] Saved RDP connections
|
||||
- [x] Recently run commands
|
||||
- [x] Default PS transcripts files
|
||||
- [x] DPAPI Masterkeys
|
||||
- [x] DPAPI Credential files
|
||||
- [x] Remote Desktop Connection Manager credentials
|
||||
|
0
winPEAS/winPEASexe/images/colors.png
Normal file → Executable file
Before Width: | Height: | Size: 67 KiB After Width: | Height: | Size: 67 KiB |
0
winPEAS/winPEASexe/images/dotfuscator.PNG
Normal file → Executable file
Before Width: | Height: | Size: 31 KiB After Width: | Height: | Size: 31 KiB |
0
winPEAS/winPEASexe/images/help.png
Normal file → Executable file
Before Width: | Height: | Size: 94 KiB After Width: | Height: | Size: 94 KiB |
0
winPEAS/winPEASexe/images/screen.png
Normal file → Executable file
Before Width: | Height: | Size: 189 KiB After Width: | Height: | Size: 189 KiB |
0
winPEAS/winPEASexe/images/winpeas.png
Normal file → Executable file
Before Width: | Height: | Size: 37 KiB After Width: | Height: | Size: 37 KiB |
0
winPEAS/winPEASexe/packages/TaskScheduler.2.8.16/.signature.p7s
vendored
Normal file → Executable file
0
winPEAS/winPEASexe/packages/TaskScheduler.2.8.16/TaskScheduler.2.8.16.nupkg
vendored
Normal file → Executable file
0
winPEAS/winPEASexe/packages/TaskScheduler.2.8.16/lib/net20/Microsoft.Win32.TaskScheduler.dll
vendored
Normal file → Executable file
0
winPEAS/winPEASexe/packages/TaskScheduler.2.8.16/lib/net20/Microsoft.Win32.TaskScheduler.xml
vendored
Normal file → Executable file
0
winPEAS/winPEASexe/packages/TaskScheduler.2.8.16/lib/net20/de/Microsoft.Win32.TaskScheduler.resources.dll
vendored
Normal file → Executable file
0
winPEAS/winPEASexe/packages/TaskScheduler.2.8.16/lib/net20/es/Microsoft.Win32.TaskScheduler.resources.dll
vendored
Normal file → Executable file
0
winPEAS/winPEASexe/packages/TaskScheduler.2.8.16/lib/net20/fr/Microsoft.Win32.TaskScheduler.resources.dll
vendored
Normal file → Executable file
0
winPEAS/winPEASexe/packages/TaskScheduler.2.8.16/lib/net20/it/Microsoft.Win32.TaskScheduler.resources.dll
vendored
Normal file → Executable file
0
winPEAS/winPEASexe/packages/TaskScheduler.2.8.16/lib/net20/pl/Microsoft.Win32.TaskScheduler.resources.dll
vendored
Normal file → Executable file
0
winPEAS/winPEASexe/packages/TaskScheduler.2.8.16/lib/net20/ru/Microsoft.Win32.TaskScheduler.resources.dll
vendored
Normal file → Executable file
0
winPEAS/winPEASexe/packages/TaskScheduler.2.8.16/lib/net20/zh-CN/Microsoft.Win32.TaskScheduler.resources.dll
vendored
Normal file → Executable file
0
winPEAS/winPEASexe/packages/TaskScheduler.2.8.16/lib/net35/Microsoft.Win32.TaskScheduler.dll
vendored
Normal file → Executable file
0
winPEAS/winPEASexe/packages/TaskScheduler.2.8.16/lib/net35/Microsoft.Win32.TaskScheduler.xml
vendored
Normal file → Executable file
0
winPEAS/winPEASexe/packages/TaskScheduler.2.8.16/lib/net35/de/Microsoft.Win32.TaskScheduler.resources.dll
vendored
Normal file → Executable file
0
winPEAS/winPEASexe/packages/TaskScheduler.2.8.16/lib/net35/es/Microsoft.Win32.TaskScheduler.resources.dll
vendored
Normal file → Executable file
0
winPEAS/winPEASexe/packages/TaskScheduler.2.8.16/lib/net35/fr/Microsoft.Win32.TaskScheduler.resources.dll
vendored
Normal file → Executable file
0
winPEAS/winPEASexe/packages/TaskScheduler.2.8.16/lib/net35/it/Microsoft.Win32.TaskScheduler.resources.dll
vendored
Normal file → Executable file
0
winPEAS/winPEASexe/packages/TaskScheduler.2.8.16/lib/net35/pl/Microsoft.Win32.TaskScheduler.resources.dll
vendored
Normal file → Executable file
0
winPEAS/winPEASexe/packages/TaskScheduler.2.8.16/lib/net35/ru/Microsoft.Win32.TaskScheduler.resources.dll
vendored
Normal file → Executable file
0
winPEAS/winPEASexe/packages/TaskScheduler.2.8.16/lib/net35/zh-CN/Microsoft.Win32.TaskScheduler.resources.dll
vendored
Normal file → Executable file
0
winPEAS/winPEASexe/packages/TaskScheduler.2.8.16/lib/net40/Microsoft.Win32.TaskScheduler.dll
vendored
Normal file → Executable file
0
winPEAS/winPEASexe/packages/TaskScheduler.2.8.16/lib/net40/Microsoft.Win32.TaskScheduler.xml
vendored
Normal file → Executable file
0
winPEAS/winPEASexe/packages/TaskScheduler.2.8.16/lib/net40/de/Microsoft.Win32.TaskScheduler.resources.dll
vendored
Normal file → Executable file
0
winPEAS/winPEASexe/packages/TaskScheduler.2.8.16/lib/net40/es/Microsoft.Win32.TaskScheduler.resources.dll
vendored
Normal file → Executable file
0
winPEAS/winPEASexe/packages/TaskScheduler.2.8.16/lib/net40/fr/Microsoft.Win32.TaskScheduler.resources.dll
vendored
Normal file → Executable file
0
winPEAS/winPEASexe/packages/TaskScheduler.2.8.16/lib/net40/it/Microsoft.Win32.TaskScheduler.resources.dll
vendored
Normal file → Executable file
0
winPEAS/winPEASexe/packages/TaskScheduler.2.8.16/lib/net40/pl/Microsoft.Win32.TaskScheduler.resources.dll
vendored
Normal file → Executable file
0
winPEAS/winPEASexe/packages/TaskScheduler.2.8.16/lib/net40/ru/Microsoft.Win32.TaskScheduler.resources.dll
vendored
Normal file → Executable file
0
winPEAS/winPEASexe/packages/TaskScheduler.2.8.16/lib/net40/zh-CN/Microsoft.Win32.TaskScheduler.resources.dll
vendored
Normal file → Executable file
0
winPEAS/winPEASexe/packages/TaskScheduler.2.8.16/lib/net452/Microsoft.Win32.TaskScheduler.dll
vendored
Normal file → Executable file
0
winPEAS/winPEASexe/packages/TaskScheduler.2.8.16/lib/net452/Microsoft.Win32.TaskScheduler.xml
vendored
Normal file → Executable file
0
winPEAS/winPEASexe/packages/TaskScheduler.2.8.16/lib/net452/de/Microsoft.Win32.TaskScheduler.resources.dll
vendored
Normal file → Executable file
0
winPEAS/winPEASexe/packages/TaskScheduler.2.8.16/lib/net452/es/Microsoft.Win32.TaskScheduler.resources.dll
vendored
Normal file → Executable file
0
winPEAS/winPEASexe/packages/TaskScheduler.2.8.16/lib/net452/fr/Microsoft.Win32.TaskScheduler.resources.dll
vendored
Normal file → Executable file
0
winPEAS/winPEASexe/packages/TaskScheduler.2.8.16/lib/net452/it/Microsoft.Win32.TaskScheduler.resources.dll
vendored
Normal file → Executable file
0
winPEAS/winPEASexe/packages/TaskScheduler.2.8.16/lib/net452/pl/Microsoft.Win32.TaskScheduler.resources.dll
vendored
Normal file → Executable file
0
winPEAS/winPEASexe/packages/TaskScheduler.2.8.16/lib/net452/ru/Microsoft.Win32.TaskScheduler.resources.dll
vendored
Normal file → Executable file
0
winPEAS/winPEASexe/packages/TaskScheduler.2.8.16/lib/net452/zh-CN/Microsoft.Win32.TaskScheduler.resources.dll
vendored
Normal file → Executable file
0
winPEAS/winPEASexe/packages/TaskScheduler.2.8.16/lib/netstandard2.0/Microsoft.Win32.TaskScheduler.dll
vendored
Normal file → Executable file
0
winPEAS/winPEASexe/packages/TaskScheduler.2.8.16/lib/netstandard2.0/Microsoft.Win32.TaskScheduler.xml
vendored
Normal file → Executable file
0
winPEAS/winPEASexe/packages/TaskScheduler.2.8.16/lib/netstandard2.0/de/Microsoft.Win32.TaskScheduler.resources.dll
vendored
Normal file → Executable file
0
winPEAS/winPEASexe/packages/TaskScheduler.2.8.16/lib/netstandard2.0/es/Microsoft.Win32.TaskScheduler.resources.dll
vendored
Normal file → Executable file
0
winPEAS/winPEASexe/packages/TaskScheduler.2.8.16/lib/netstandard2.0/fr/Microsoft.Win32.TaskScheduler.resources.dll
vendored
Normal file → Executable file
0
winPEAS/winPEASexe/packages/TaskScheduler.2.8.16/lib/netstandard2.0/it/Microsoft.Win32.TaskScheduler.resources.dll
vendored
Normal file → Executable file
0
winPEAS/winPEASexe/packages/TaskScheduler.2.8.16/lib/netstandard2.0/pl/Microsoft.Win32.TaskScheduler.resources.dll
vendored
Normal file → Executable file
0
winPEAS/winPEASexe/packages/TaskScheduler.2.8.16/lib/netstandard2.0/ru/Microsoft.Win32.TaskScheduler.resources.dll
vendored
Normal file → Executable file
0
winPEAS/winPEASexe/packages/TaskScheduler.2.8.16/lib/netstandard2.0/zh-CN/Microsoft.Win32.TaskScheduler.resources.dll
vendored
Normal file → Executable file
0
winPEAS/winPEASexe/winPEAS.sln
Normal file → Executable file
0
winPEAS/winPEASexe/winPEAS/App.config
Normal file → Executable file
0
winPEAS/winPEASexe/winPEAS/ApplicationInfo.cs
Normal file → Executable file
0
winPEAS/winPEASexe/winPEAS/Beaprint.cs
Normal file → Executable file
0
winPEAS/winPEASexe/winPEAS/FodyWeavers.xml
Normal file → Executable file
0
winPEAS/winPEASexe/winPEAS/FodyWeavers.xsd
Normal file → Executable file
0
winPEAS/winPEASexe/winPEAS/InterestingFiles.cs
Normal file → Executable file
0
winPEAS/winPEASexe/winPEAS/KnownFileCredsInfo.cs
Normal file → Executable file
0
winPEAS/winPEASexe/winPEAS/MyUtils.cs
Normal file → Executable file
0
winPEAS/winPEASexe/winPEAS/NetworkInfo.cs
Normal file → Executable file
0
winPEAS/winPEASexe/winPEAS/ProcessesInfo.cs
Normal file → Executable file
33
winPEAS/winPEASexe/winPEAS/Program.cs
Normal file → Executable file
@ -410,7 +410,7 @@ namespace winPEAS
|
||||
else
|
||||
Beaprint.BadPrint(" No AV was detected!!");
|
||||
|
||||
Beaprint.DictPrint(AVInfo, false);
|
||||
Beaprint.DictPrint(AVInfo, true);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
@ -1403,6 +1403,36 @@ namespace winPEAS
|
||||
}
|
||||
}
|
||||
|
||||
void PrintTranscriptPS()
|
||||
{
|
||||
try
|
||||
{
|
||||
Beaprint.MainPrint("PS default transcripts history", "");
|
||||
Beaprint.InfoPrint("Read the PS histpry inside these files (if any)");
|
||||
string drive = Path.GetPathRoot(Environment.SystemDirectory);
|
||||
string path = drive + @"transcripts\";
|
||||
if (Directory.Exists(path))
|
||||
{
|
||||
string[] fileEntries = Directory.GetFiles(path);
|
||||
List<string> fileEntriesl = new List<string>(fileEntries);
|
||||
if (fileEntries.Length > 0)
|
||||
{
|
||||
Dictionary<string, string> colors = new Dictionary<string, string>()
|
||||
{
|
||||
{ "^.*", Beaprint.ansi_color_bad },
|
||||
};
|
||||
Beaprint.ListPrint(fileEntriesl, colors);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
Beaprint.GrayPrint(String.Format("{0}", ex));
|
||||
}
|
||||
}
|
||||
|
||||
void PrintDPAPIMasterKeys()
|
||||
{
|
||||
try
|
||||
@ -1611,6 +1641,7 @@ namespace winPEAS
|
||||
PrintCredManag();
|
||||
PrintSavedRDPInfo();
|
||||
PrintRecentRunCommands();
|
||||
PrintTranscriptPS();
|
||||
PrintDPAPIMasterKeys();
|
||||
PrintDpapiCredFiles();
|
||||
PrintRCManFiles();
|
||||
|
0
winPEAS/winPEASexe/winPEAS/Properties/AssemblyInfo.cs
Normal file → Executable file
0
winPEAS/winPEASexe/winPEAS/ServicesInfo.cs
Normal file → Executable file
5
winPEAS/winPEASexe/winPEAS/SystemInfo.cs
Normal file → Executable file
@ -145,8 +145,10 @@ namespace winPEAS
|
||||
public static Dictionary<string, string> GetAVInfo()
|
||||
{
|
||||
Dictionary<string, string> results = new Dictionary<string, string>();
|
||||
string whitelistpaths = "";
|
||||
try
|
||||
{
|
||||
whitelistpaths = String.Join("\n ", MyUtils.GetRegValues("HKLM", @"SOFTWARE\Microsoft\Windows Defender\Exclusions\Paths").Keys);
|
||||
ManagementObjectSearcher wmiData = new ManagementObjectSearcher(@"root\SecurityCenter2", "SELECT * FROM AntiVirusProduct");
|
||||
ManagementObjectCollection data = wmiData.Get();
|
||||
|
||||
@ -161,6 +163,9 @@ namespace winPEAS
|
||||
{
|
||||
Beaprint.GrayPrint(String.Format(" [X] Exception: {0}", ex.Message));
|
||||
}
|
||||
if (!String.IsNullOrEmpty(whitelistpaths))
|
||||
results["whitelistpaths"] = " " + whitelistpaths; //Add this info the last
|
||||
|
||||
return results;
|
||||
}
|
||||
|
||||
|
0
winPEAS/winPEASexe/winPEAS/UserInfo.cs
Normal file → Executable file
0
winPEAS/winPEASexe/winPEAS/Watson.cs
Normal file → Executable file
BIN
winPEAS/winPEASexe/winPEAS/bin/Obfuscated Releases/winPEASany.exe
Normal file → Executable file
BIN
winPEAS/winPEASexe/winPEAS/bin/Obfuscated Releases/winPEASx64.exe
Normal file → Executable file
BIN
winPEAS/winPEASexe/winPEAS/bin/Obfuscated Releases/winPEASx86.exe
Normal file → Executable file
25729
winPEAS/winPEASexe/winPEAS/bin/Release/Dotfuscated/Map.0.xml
Executable file
25729
winPEAS/winPEASexe/winPEAS/bin/Release/Dotfuscated/Map.1.xml
Executable file
827
winPEAS/winPEASexe/winPEAS/bin/Release/Dotfuscated/Map.xml
Normal file → Executable file
BIN
winPEAS/winPEASexe/winPEAS/bin/Release/Dotfuscated/Microsoft.Win32.TaskScheduler.dll
Normal file → Executable file
BIN
winPEAS/winPEASexe/winPEAS/bin/Release/Dotfuscated/de/Microsoft.Win32.TaskScheduler.resources.dll
Normal file → Executable file
BIN
winPEAS/winPEASexe/winPEAS/bin/Release/Dotfuscated/es/Microsoft.Win32.TaskScheduler.resources.dll
Normal file → Executable file
BIN
winPEAS/winPEASexe/winPEAS/bin/Release/Dotfuscated/fr/Microsoft.Win32.TaskScheduler.resources.dll
Normal file → Executable file
BIN
winPEAS/winPEASexe/winPEAS/bin/Release/Dotfuscated/it/Microsoft.Win32.TaskScheduler.resources.dll
Normal file → Executable file
BIN
winPEAS/winPEASexe/winPEAS/bin/Release/Dotfuscated/pl/Microsoft.Win32.TaskScheduler.resources.dll
Normal file → Executable file
BIN
winPEAS/winPEASexe/winPEAS/bin/Release/Dotfuscated/ru/Microsoft.Win32.TaskScheduler.resources.dll
Normal file → Executable file
BIN
winPEAS/winPEASexe/winPEAS/bin/Release/Dotfuscated/winPEAS.pdb
Normal file → Executable file
BIN
winPEAS/winPEASexe/winPEAS/bin/Release/Dotfuscated/zh-CN/Microsoft.Win32.TaskScheduler.resources.dll
Normal file → Executable file
8
winPEAS/winPEASexe/winPEAS/bin/Release/Dotfuscator1.xml
Normal file → Executable file
@ -8,19 +8,19 @@
|
||||
<input>
|
||||
<loadpaths />
|
||||
<asmlist>
|
||||
<inputassembly refid="ab1132df-ee7b-445f-92fd-fb405cce20f6">
|
||||
<inputassembly refid="fafb1980-194e-4899-b247-340974634794">
|
||||
<option>honoroas</option>
|
||||
<option>stripoa</option>
|
||||
<option>library</option>
|
||||
<option>transformxaml</option>
|
||||
<file dir="D:\shared\privilege-escalation-awesome-scripts-suite-master\winPEAS\winPEASexe\winPEAS\bin\x86\Release" name="Microsoft.Win32.TaskScheduler.dll" />
|
||||
<file dir="D:\Users\cpolo\Downloads\privilege-escalation-awesome-scripts-suite-master\winPEAS\winPEASexe\winPEAS\bin\x86\Release" name="winPEAS.exe" />
|
||||
</inputassembly>
|
||||
<inputassembly refid="f33839ff-b6f0-4afa-921f-50f70c620cb7">
|
||||
<inputassembly refid="78325bae-9b77-4590-be9d-4339a6d843ea">
|
||||
<option>honoroas</option>
|
||||
<option>stripoa</option>
|
||||
<option>library</option>
|
||||
<option>transformxaml</option>
|
||||
<file dir="D:\shared\privilege-escalation-awesome-scripts-suite-master\winPEAS\winPEASexe\winPEAS\bin\x86\Release" name="winPEAS.exe" />
|
||||
<file dir="D:\Users\cpolo\Downloads\privilege-escalation-awesome-scripts-suite-master\winPEAS\winPEASexe\winPEAS\bin\x86\Release" name="Microsoft.Win32.TaskScheduler.dll" />
|
||||
</inputassembly>
|
||||
</asmlist>
|
||||
</input>
|
||||
|