Skip to content
Browse files

Auditor#log: Updated to propagate Issue remarks [Issue #209]

  • Loading branch information...
1 parent 351d5c6 commit 4f45260c90e0d0347ef3fe5735a39b54a734f1a2 @Zapotek Zapotek committed Jan 22, 2013
Showing with 11 additions and 0 deletions.
  1. +1 −0 lib/arachni/module/auditor.rb
  2. +10 −0 spec/arachni/module/auditor_spec.rb
View
1 lib/arachni/module/auditor.rb
@@ -380,6 +380,7 @@ def log( opts, res = nil )
regexp_match: opts[:match],
elem: element,
verification: !!opts[:verification],
+ remarks: opts[:remarks],
method: method,
response: response,
opts: opts,
View
10 spec/arachni/module/auditor_spec.rb
@@ -272,6 +272,9 @@ def self.info
id: 'foo id',
regexp: /foo regexp/,
match: 'foo regexp match',
+ remarks: {
+ dude: ['Stuff'],
+ },
element: Arachni::Element::LINK
}
end
@@ -281,6 +284,13 @@ def self.info
after { @framework.http.run }
+ it 'should preserve the given remarks' do
+ @auditor.log( @log_opts )
+
+ logged_issue = @framework.modules.results.first
+ logged_issue[:remarks][:dude].should be_true
+ end
+
it 'populates and logs an issue with response data' do
@framework.http.get( @opts.url.to_s ).on_complete do |res|

0 comments on commit 4f45260

Please sign in to comment.
Something went wrong with that request. Please try again.