Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request - Proxy support #66

Open
mubix opened this issue Jul 18, 2018 · 1 comment
Open

Feature Request - Proxy support #66

mubix opened this issue Jul 18, 2018 · 1 comment

Comments

@mubix
Copy link

mubix commented Jul 18, 2018

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 mubix changed the title Proxy support Feature Request - Proxy support Jul 18, 2018
@mubix
Copy link
Author

mubix commented Jul 18, 2018

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants