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

Network Proxy not detecting accurately #30

Open
sp00ks-git opened this issue Oct 7, 2021 · 3 comments
Open

Network Proxy not detecting accurately #30

sp00ks-git opened this issue Oct 7, 2021 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@sp00ks-git
Copy link

sp00ks-git commented Oct 7, 2021

I can see when running winpwn.ps1 that the proxy i have isnt being detected although it is in place.

Searching for network proxy...
No proxy detected, continuing...
Straight after the 'True' Statement from the amsi bypass i get:

Exception calling "DownloadString" with "1" argument(s): "The remote server returned an error: (407) Proxy Authentication
Required."

I can confirm I have a proxy in place.

@sp00ks-git
Copy link
Author

sp00ks-git commented Oct 7, 2021

I can confirm by adding in my current credentials manually and get a 200 response.

$Wcl=New-Object System.Net.WebClient
$Creds=Get-Credential
$Wcl.Proxy.Credentials=$Creds
Invoke-WebRequest http://www.google.co.uk

StatusCode : 200
StatusDescription : OK

@S3cur3Th1sSh1t
Copy link
Owner

Is the environment using PAC files for proxy distribution? You should be able to look this up in the IE config for example.

I never had the time so far to implement PAC-file support/parsing.

Greetings

@S3cur3Th1sSh1t S3cur3Th1sSh1t self-assigned this Oct 8, 2021
@S3cur3Th1sSh1t S3cur3Th1sSh1t added the bug Something isn't working label Oct 8, 2021
@sp00ks-git
Copy link
Author

Yes I can confirm the setup uses a PAC.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants