Feature Request - Proxy support
mubix opened this issue · 1 comments
mubix commented
I couldn't find proxy support. I don't always have a Windows machine that I can put in the right position for running powershell, it would be nice if I could proxy my web requests through a machine in the right location.
mubix commented
And it doesn't work on Linux powershell ;-)
PS /root/powershell/MailSniper> Invoke-DomainHarvestOWA
cmdlet Invoke-DomainHarvestOWA at command pipeline position 1
Supply values for the following parameters:
ExchHostname: blah
[*] Harvesting domain name from the server at blah
Exception calling "CompileAssemblyFromSource" with "2" argument(s): "Operation is not supported on this platform."
At /root/powershell/MailSniper/MailSniper.ps1:2111 char:5
+ $TAResults=$Provider.CompileAssemblyFromSource($Params,$TASource)
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [], MethodInvocationException
+ FullyQualifiedErrorId : PlatformNotSupportedException
You cannot call a method on a null-valued expression.
At /root/powershell/MailSniper/MailSniper.ps1:2115 char:5
+ $TrustAll=$TAAssembly.CreateInstance("Local.ToolkitExtensions.Net ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (:) [], RuntimeException
+ FullyQualifiedErrorId : InvokeMethodOnNull
The property 'CertificatePolicy' cannot be found on this object. Verify that the property exists and can be set.
At /root/powershell/MailSniper/MailSniper.ps1:2116 char:5
+ [System.Net.ServicePointManager]::CertificatePolicy=$TrustAll
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (:) [], RuntimeException
+ FullyQualifiedErrorId : PropertyAssignmentException
[*] Couldn't get domain from Autodiscover URL. Trying EWS URL...
[*] Couldn't get domain from EWS. Try the timing attack by specifying a list of possible domains and use the -brute option.
Here is an example: Invoke-DomainHarvestOWA -ExchHostname (blah) -DomainList .\domainlist.txt -OutFile potentially-valid-domains.txt -Brute