From c286c708d91c02ad91742e964b796cb2cf424991 Mon Sep 17 00:00:00 2001 From: "John Q. Public" Date: Fri, 25 Nov 2016 15:57:37 -0600 Subject: [PATCH 1/2] Print file contents Added a print_good statement at line 63 in order to print to contents of the newly discovered robots.txt file. --- modules/auxiliary/scanner/http/robots_txt.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/auxiliary/scanner/http/robots_txt.rb b/modules/auxiliary/scanner/http/robots_txt.rb index e53d89e7de..10f20fe6d6 100644 --- a/modules/auxiliary/scanner/http/robots_txt.rb +++ b/modules/auxiliary/scanner/http/robots_txt.rb @@ -60,6 +60,7 @@ class MetasploitModule < Msf::Auxiliary end print_status("[#{target_host}] #{tpath}robots.txt found") + print_good("Contents of Robots.txt:\n#{res.body}") # short url regex aregex = /llow:[ ]{0,2}(.*?)$/i From 0935d31de1a9c48261c7d0a14b3f1057fedf6c68 Mon Sep 17 00:00:00 2001 From: "John Q. Public" Date: Fri, 25 Nov 2016 16:54:58 -0600 Subject: [PATCH 2/2] Changed print_status to print_good Changed line 315 print type to good instead of the general status indication, so that the result output is easier to see. --- modules/auxiliary/scanner/smb/smb_enumusers.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/auxiliary/scanner/smb/smb_enumusers.rb b/modules/auxiliary/scanner/smb/smb_enumusers.rb index 4f530bac69..113317e176 100644 --- a/modules/auxiliary/scanner/smb/smb_enumusers.rb +++ b/modules/auxiliary/scanner/smb/smb_enumusers.rb @@ -312,7 +312,7 @@ class MetasploitModule < Msf::Auxiliary extra << "PasswordMin=#{domains[domain][:pass_min]} " extra << ")" end - print_status("#{domain.upcase} [ #{users.keys.map{|k| users[k]}.join(", ")} ] #{extra}") + print_good("#{domain.upcase} [ #{users.keys.map{|k| users[k]}.join(", ")} ] #{extra}") end # cleanup