Arachni / arachni

Web Application Security Scanner Framework
http://www.arachni-scanner.com
Other
3.79k stars 766 forks source link

Error: undefined method `body' for nil:NilClass #6

Closed mattaereal closed 14 years ago

mattaereal commented 14 years ago

[!] HTTP session:

<Net::HTTP 127.0.0.1:80 open=true>

[-] Proceeding anyway... [-] Error: undefined method body' for nil:NilClass in URL http://127.0.0.1/ [!] Exception: #<NoMethodError: undefined methodbody' for nil:NilClass> [!] Backtrace: [!] /mnt/sec/pentest/webscan/arachni/lib/module/trainer.rb:56:in train' [!] /mnt/sec/pentest/webscan/arachni/lib/module/base.rb:99:inblock in initialize' [!] /mnt/sec/pentest/webscan/arachni/lib/module/http.rb:347:in call' [!] /mnt/sec/pentest/webscan/arachni/lib/module/http.rb:347:inblock in train' [!] /mnt/sec/pentest/webscan/arachni/lib/module/http.rb:347:in each' [!] /mnt/sec/pentest/webscan/arachni/lib/module/http.rb:347:intrain' [!] /mnt/sec/pentest/webscan/arachni/lib/module/http.rb:130:in block in get' [!] /mnt/sec/pentest/webscan/arachni/lib/module/http.rb:415:incall' [!] /mnt/sec/pentest/webscan/arachni/lib/module/http.rb:415:in exception_jail' [!] /mnt/sec/pentest/webscan/arachni/lib/module/http.rb:107:inget' [!] /mnt/sec/pentest/webscan/arachni/lib/module/http.rb:129:in block in get' [!] /mnt/sec/pentest/webscan/arachni/lib/module/http.rb:415:incall' [!] /mnt/sec/pentest/webscan/arachni/lib/module/http.rb:415:in exception_jail' [!] /mnt/sec/pentest/webscan/arachni/lib/module/http.rb:107:inget' [!] /mnt/sec/pentest/webscan/arachni/lib/module/http.rb:129:in block in get' [!] /mnt/sec/pentest/webscan/arachni/lib/module/http.rb:415:incall' [!] /mnt/sec/pentest/webscan/arachni/lib/module/http.rb:415:in exception_jail' [!] /mnt/sec/pentest/webscan/arachni/lib/module/http.rb:107:inget' [!] /mnt/sec/pentest/webscan/arachni/lib/module/http.rb:129:in block in get' [!] /mnt/sec/pentest/webscan/arachni/lib/module/http.rb:415:incall' [!] /mnt/sec/pentest/webscan/arachni/lib/module/http.rb:415:in exception_jail' [!] /mnt/sec/pentest/webscan/arachni/lib/module/http.rb:107:inget' [!] /mnt/sec/pentest/webscan/arachni/lib/module/http.rb:129:in block in get' [!] /mnt/sec/pentest/webscan/arachni/lib/module/http.rb:415:incall' [!] /mnt/sec/pentest/webscan/arachni/lib/module/http.rb:415:in exception_jail' [!] /mnt/sec/pentest/webscan/arachni/lib/module/http.rb:107:inget' [!] /mnt/sec/pentest/webscan/arachni/modules/recon/common_directories.rb:59:in block in run' [!] /mnt/sec/pentest/webscan/arachni/lib/module/base.rb:382:inblock in get_data_file' [!] /mnt/sec/pentest/webscan/arachni/lib/module/base.rb:380:in each' [!] /mnt/sec/pentest/webscan/arachni/lib/module/base.rb:380:inget_data_file' [!] /mnt/sec/pentest/webscan/arachni/modules/recon/common_directories.rb:51:in run' [!] /mnt/sec/pentest/webscan/arachni/lib/framework.rb:649:inrun_mod' [!] /mnt/sec/pentest/webscan/arachni/lib/framework.rb:608:in `block (2 levels) in run_mods' [!] @ /mnt/sec/pentest/webscan/arachni/lib/module/http.rb:457

It started cycling on that until I interrupted it.

Zapotek commented 14 years ago

99% of the time these are just recoverable errors or are caused by misconfigured servers (like non-standard keep-alive support).

So you may see an error but it's not a bid deal, 99% of the time at least... Let it run and see what happens.

It'd also be helpful if I had access to your test-case.

Zapotek commented 14 years ago

Closing the issue... I'll update the documentation to explain these situations so that people don't freak out.

mattaereal commented 14 years ago

Oh, ok. Thanks :)