Force HTTP GET in a computer with unknow internet config, trying to download the URL by downloading it directly and if it can’t then using default proxy credentials and .pac proxy list. If none o them works, it will trick the user and request his credentials using the Windows default credential prompt.Description:
Normally this script should be used in a pentest environment, when you’re running this code in a target computer where you don’t know exactly what is the outbound internet config. Internally, Invoke-ForceWebRequest will use another two functions:
+ Invoke-BasicWebRequest: another function writed by me which allow me to create http webrequest with proxy config. Similar (but very basic) to Invoke-WebRequest native PowerShell function (which is only available on PowerShell v3+).
+ Invoke-LoginPrompt: an improved version of this great function wrote by @enigma0x3

Force HTTP GET inacomputer with unknow internet config,trying todownload the URL by downloading it directly andifit can't then using default proxy credentials and .pac proxy list. If none o them works, it will trick the user and request his credentials using the Windows default credential prompt.

.PARAMETER URL

[String], required=true, ValueFromPipeline=true

URL to download. e.g.: comandandcontrol.com/payload.txt

.PARAMETER DummyURL

[String], required=false

URL to download with some DummyString you know is in there.

If you leave it empty, URL parameter will be used as DummyURL. So be sure you use a DummyString that you're forsure isinURL.