Skip to content

Instantly share code, notes, and snippets.

@steeve85
Created November 20, 2012 09:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save steeve85/4116970 to your computer and use it in GitHub Desktop.
Save steeve85/4116970 to your computer and use it in GitHub Desktop.
Nmap Bug in Msf
--- 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
@steeve85
Copy link
Author

diff -uN lib/msf/core/auxiliary/nmap-error.rb lib/msf/core/auxiliary/nmap.rb

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment