[ArgumentError] HTTP request path is empty

tester's Avatar

tester

21 Dec, 2016 04:45 PM

Would you kindly explain what "HTTP request path is empty" means when attempting to run an Arachni scan?

I am having trouble running scans using the Linux packages (v1.4 and nightly). These are being run from two hosts - Ubuntu in AWS, and a docker container with Ubuntu hosted on a Mac.

However it works when running directly on a Mac (Darwin v1.4 and nightly). The error message is below.

URL: http://zero.webappsecurity.com
CMD: ./arachni http://zero.webappsecurity.com

Not Working - https://github.com/Arachni/arachni/releases/download/v1.4/arachni-1...
Not Working - http://downloads.arachni-scanner.com/nightlies/arachni-2.0dev-1.0de...
Working - https://github.com/Arachni/arachni/releases/download/v1.4/arachni-1...
Working - http://downloads.arachni-scanner.com/nightlies/arachni-2.0dev-1.0de...

Arachni - Web Application Security Scanner Framework v1.4
   Author: Tasos "Zapotek" Laskos <[email blocked]>

           (With the support of the community and the Arachni Team.)

   Website:       http://arachni-scanner.com
   Documentation: http://arachni-scanner.com/wiki


 [~] No checks were specified, loading all.
 [~] No element audit options were specified, will audit links, forms, cookies, UI inputs, UI forms, JSONs and XMLs.

 [*] Initializing...
 [*] Preparing plugins...
 [*] ... done.
 [*] BrowserCluster: Initializing 6 browsers...
 [-] [utilities#exception_jail:428] [ArgumentError] HTTP request path is empty
 [-] [utilities#exception_jail:428] /path/to/arachni/arachni-1.4-0.5.10/system/usr/lib/ruby/2.2.0/net/http/generic_request.rb:25:in `initialize'
 [-] [utilities#exception_jail:428] /path/to/arachni/arachni-1.4-0.5.10/system/usr/lib/ruby/2.2.0/net/http/request.rb:14:in `initialize'
 [-] [utilities#exception_jail:428] /path/to/arachni/arachni-1.4-0.5.10/system/gems/gems/selenium-webdriver-2.51.0/lib/selenium/webdriver/remote/http/default.rb:95:in `new'
 [-] [utilities#exception_jail:428] /path/to/arachni/arachni-1.4-0.5.10/system/gems/gems/selenium-webdriver-2.51.0/lib/selenium/webdriver/remote/http/default.rb:95:in `new_request_for'
 [-] [utilities#exception_jail:428] /path/to/arachni/arachni-1.4-0.5.10/system/gems/gems/selenium-webdriver-2.51.0/lib/selenium/webdriver/remote/http/default.rb:57:in `request'
 [-] [utilities#exception_jail:428] /path/to/arachni/arachni-1.4-0.5.10/system/gems/gems/selenium-webdriver-2.51.0/lib/selenium/webdriver/remote/http/default.rb:88:in `request'
 [-] [utilities#exception_jail:428] /path/to/arachni/arachni-1.4-0.5.10/system/gems/gems/selenium-webdriver-2.51.0/lib/selenium/webdriver/remote/http/common.rb:59:in `call'
 [-] [utilities#exception_jail:428] /path/to/arachni/arachni-1.4-0.5.10/system/gems/gems/selenium-webdriver-2.51.0/lib/selenium/webdriver/remote/bridge.rb:645:in `raw_execute'
 [-] [utilities#exception_jail:428] /path/to/arachni/arachni-1.4-0.5.10/system/gems/gems/selenium-webdriver-2.51.0/lib/selenium/webdriver/remote/bridge.rb:123:in `create_session'
 [-] [utilities#exception_jail:428] /path/to/arachni/arachni-1.4-0.5.10/system/gems/gems/selenium-webdriver-2.51.0/lib/selenium/webdriver/remote/bridge.rb:87:in `initialize'
 [-] [utilities#exception_jail:428] /path/to/arachni/arachni-1.4-0.5.10/system/gems/gems/selenium-webdriver-2.51.0/lib/selenium/webdriver/common/driver.rb:59:in `new'
 [-] [utilities#exception_jail:428] /path/to/arachni/arachni-1.4-0.5.10/system/gems/gems/selenium-webdriver-2.51.0/lib/selenium/webdriver/common/driver.rb:59:in `for'
 [-] [utilities#exception_jail:428] /path/to/arachni/arachni-1.4-0.5.10/system/gems/gems/selenium-webdriver-2.51.0/lib/selenium/webdriver.rb:86:in `for'
 [-] [utilities#exception_jail:428] /path/to/arachni/arachni-1.4-0.5.10/system/gems/gems/arachni-1.4/lib/arachni/browser.rb:1159:in `selenium'
 [-] [utilities#exception_jail:428] /path/to/arachni/arachni-1.4-0.5.10/system/gems/gems/arachni-1.4/lib/arachni/browser.rb:197:in `initialize'
 [-] [utilities#exception_jail:428] /path/to/arachni/arachni-1.4-0.5.10/system/gems/gems/arachni-1.4/lib/arachni/browser_cluster/worker.rb:52:in `initialize'
 [-] [utilities#exception_jail:428] /path/to/arachni/arachni-1.4-0.5.10/system/gems/gems/arachni-1.4/lib/arachni/browser_cluster.rb:477:in `new'
 [-] [utilities#exception_jail:428] /path/to/arachni/arachni-1.4-0.5.10/system/gems/gems/arachni-1.4/lib/arachni/browser_cluster.rb:477:in `block in initialize_workers'
 [-] [utilities#exception_jail:428] /path/to/arachni/arachni-1.4-0.5.10/system/gems/gems/arachni-1.4/lib/arachni/browser_cluster.rb:476:in `times'
 [-] [utilities#exception_jail:428] /path/to/arachni/arachni-1.4-0.5.10/system/gems/gems/arachni-1.4/lib/arachni/browser_cluster.rb:476:in `initialize_workers'
 [-] [utilities#exception_jail:428] /path/to/arachni/arachni-1.4-0.5.10/system/gems/gems/arachni-1.4/lib/arachni/browser_cluster.rb:119:in `initialize'
 [-] [utilities#exception_jail:428] /path/to/arachni/arachni-1.4-0.5.10/system/gems/gems/arachni-1.4/lib/arachni/framework/parts/browser.rb:33:in `new'
 [-] [utilities#exception_jail:428] /path/to/arachni/arachni-1.4-0.5.10/system/gems/gems/arachni-1.4/lib/arachni/framework/parts/browser.rb:33:in `block in browser_cluster'
 [-] [utilities#exception_jail:428] /path/to/arachni/arachni-1.4-0.5.10/system/usr/lib/ruby/2.2.0/monitor.rb:211:in `mon_synchronize'
 [-] [utilities#exception_jail:428] /path/to/arachni/arachni-1.4-0.5.10/system/gems/gems/arachni-1.4/lib/arachni/framework/parts/browser.rb:28:in `browser_cluster'
 [-] [utilities#exception_jail:428] /path/to/arachni/arachni-1.4-0.5.10/system/gems/gems/arachni-1.4/lib/arachni/framework/parts/audit.rb:173:in `audit'
 [-] [utilities#exception_jail:428] /path/to/arachni/arachni-1.4-0.5.10/system/gems/gems/arachni-1.4/lib/arachni/framework.rb:117:in `block in run'
 [-] [utilities#exception_jail:428] /path/to/arachni/arachni-1.4-0.5.10/system/gems/gems/arachni-1.4/lib/arachni/utilities.rb:425:in `call'
 [-] [utilities#exception_jail:428] /path/to/arachni/arachni-1.4-0.5.10/system/gems/gems/arachni-1.4/lib/arachni/utilities.rb:425:in `exception_jail'
 [-] [utilities#exception_jail:428] /path/to/arachni/arachni-1.4-0.5.10/system/gems/gems/arachni-1.4/lib/arachni/framework.rb:117:in `run'
 [-] [utilities#exception_jail:428] /path/to/arachni/arachni-1.4-0.5.10/system/gems/gems/arachni-1.4/ui/cli/framework.rb:63:in `block in run'
 [-] [utilities#exception_jail:429] 
 [-] [utilities#exception_jail:430] Parent:
 [-] [utilities#exception_jail:431] Arachni::Framework
 [-] [utilities#exception_jail:432] 
 [-] [utilities#exception_jail:433] Block:
 [-] [utilities#exception_jail:434] #<Proc:0x00000005529a40@/path/to/arachni/arachni-1.4-0.5.10/system/gems/gems/arachni-1.4/lib/arachni/framework.rb:117>
 [-] [utilities#exception_jail:435] 
 [-] [utilities#exception_jail:436] Caller:
 [-] [utilities#exception_jail:437] /path/to/arachni/arachni-1.4-0.5.10/system/gems/gems/arachni-1.4/lib/arachni/utilities.rb:425:in `exception_jail'
 [-] [utilities#exception_jail:437] /path/to/arachni/arachni-1.4-0.5.10/system/gems/gems/arachni-1.4/lib/arachni/framework.rb:117:in `run'
 [-] [utilities#exception_jail:437] /path/to/arachni/arachni-1.4-0.5.10/system/gems/gems/arachni-1.4/ui/cli/framework.rb:63:in `block in run'
 [-] [utilities#exception_jail:438] --------------------------------------------------------------------------------
  1. Support Staff 1 Posted by Tasos Laskos on 21 Dec, 2016 04:50 PM

    Tasos Laskos's Avatar

    Are you sure you're not leaving anything out of the command?
    Like a proxy utility or something?

  2. 2 Posted by tester on 21 Dec, 2016 05:36 PM

    tester's Avatar

    You're right...turns out I needed to add sudo when running the command on Ubuntu.

    Still trying to troubleshoot on the docker container and will report back if I get it working there as well. Please let me know if you have any suggestions for docker

  3. Support Staff 3 Posted by Tasos Laskos on 21 Dec, 2016 05:38 PM

    Tasos Laskos's Avatar

    My only suggestion is that you shouldn't do that, you're certainly breaking things internally.
    You can't blindly hijack all sockets and expect something to work; if you need to use a proxy you better use the --http-proxy- options.

  4. Tasos Laskos closed this discussion on 22 Dec, 2016 08:48 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