modules/recon/interesting_responses.rb in arachni-0.2.2.1 vs modules/recon/interesting_responses.rb in arachni-0.2.2.2

- old
+ new

@@ -18,11 +18,11 @@ # Logs all non 200 (OK) and non 404 server responses. # # @author: Tasos "Zapotek" Laskos # <tasos.laskos@gmail.com> # <zapotek@segfault.gr> -# @version: 0.1 +# @version: 0.1.1 # # class InterestingResponses < Arachni::Module::Base include Arachni::Module::Utilities @@ -43,11 +43,11 @@ return if @@__ran print_status( "Listening..." ) # tell the HTTP interface to cal this block every-time a request completes - @http.on_complete { + @http.add_on_complete { |res| __log_results( res ) if !IGNORE_CODES.include?( res.code ) && !res.body.empty? } end @@ -60,10 +60,10 @@ { :name => 'Interesting responses', :description => %q{Logs all non 200 (OK) server responses.}, :elements => [ ], :author => 'Tasos "Zapotek" Laskos <tasos.laskos@gmail.com>', - :version => '0.1', + :version => '0.1.1', :targets => { 'Generic' => 'all' }, :issue => { :name => %q{Interesting server response.}, :description => %q{The server responded with a non 200 (OK) code. }, :tags => [ 'interesting', 'response', 'server' ],