Usage behind proxy

user's Avatar

user

23 Nov, 2016 10:07 AM

I'm trying to test a server within our intranet, but our corporate proxy is blocking requests to said server. I've noticed you guys use phantomjs. To make phantomjs work within our network setup, I need to pass the --proxy-type=none argument to it. So a typical phantomjs call looks something like this:

PATH/TO/PHANTOM/bin/phantomjs --proxy-type=none somescript.js

So far I have found no way to pass this argument from Arachni down to phantom. Is there a way to make this happen without hacking away at the existing code base?

  1. Support Staff 1 Posted by Tasos Laskos on 23 Nov, 2016 10:14 AM

    Tasos Laskos's Avatar

    Global proxy setting are usually passed via the http_proxy env var.
    You can remove it prior to running Arachni and configure any proxy settings via the -http-proxy-* options.

  2. 2 Posted by user on 24 Nov, 2016 06:28 AM

    user's Avatar

    Unsetting http_proxy does the trick. It would be nice though if the tool would respect the no_proxy env var as well or at least offer a no-proxy-option.

    Still, I consider this issue resolved for now. Thanks for the help.

  3. Support Staff 3 Posted by Tasos Laskos on 25 Nov, 2016 08:50 AM

    Tasos Laskos's Avatar

    no_proxy should have worked, Arachni has no concept of those env vars it but its underlying libraries honor those settings. For reliability though I generally advise unsetting env vars and configuring Arachni directly since that's something I can control.

  4. Tasos Laskos closed this discussion on 25 Nov, 2016 08:50 AM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac