Created
November 20, 2012 09:33
-
-
Save steeve85/4116970 to your computer and use it in GitHub Desktop.
Nmap Bug in Msf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- lib/msf/core/auxiliary/nmap-error.rb 2012-11-19 11:14:06.000000000 +0100 | |
+++ lib/msf/core/auxiliary/nmap.rb 2012-11-19 11:14:58.000000000 +0100 | |
@@ -225,7 +225,7 @@ | |
disallowed_characters = /([\x00-\x19\x21\x23-\x26\x28\x29\x3b\x3e\x60\x7b\x7c\x7d\x7e-\xff])/n | |
badchar = str[disallowed_characters] | |
if badchar | |
- print_error "Malformed nmap arguments (contains '#{c}'): #{str}" | |
+ print_error "Malformed nmap arguments (contains '#{badchar}'): #{str}" | |
return false | |
end | |
# Check for commas outside of quoted arguments |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
diff -uN lib/msf/core/auxiliary/nmap-error.rb lib/msf/core/auxiliary/nmap.rb