From fee52bce3ef75f1507c96920c6ecadc2ae425e1b Mon Sep 17 00:00:00 2001 From: Bernardo Damele Date: Sat, 25 Oct 2008 19:43:13 +0000 Subject: [PATCH] Minor improvements to sqlmap msf3 auxiliary modules based on Efrain Torres' commit on msf3 trunk, http://metasploit.com/dev/trac/changeset/5787 --- extra/msfauxmod/wmap_sqlmap.rb | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/extra/msfauxmod/wmap_sqlmap.rb b/extra/msfauxmod/wmap_sqlmap.rb index 091b45ef3..dc0050fd2 100644 --- a/extra/msfauxmod/wmap_sqlmap.rb +++ b/extra/msfauxmod/wmap_sqlmap.rb @@ -42,9 +42,14 @@ class Metasploit3 < Msf::Auxiliary OptString.new('BODY', [ false, "The data string to be sent through POST", '' ]), OptString.new('OPTS', [ false, "The sqlmap options to use", ' ' ]), OptPath.new('SQLMAP_PATH', [ true, "The sqlmap >= 0.6.1 full path ", '/sqlmap/sqlmap.py' ]), - OptBool.new('BATCH', [ true, "Never ask for user input, use the default behaviour", 'true' ]) + OptBool.new('BATCH', [ true, "Never ask for user input, use the default behaviour", true ]) ], self.class) end + + # Modify to true if you have sqlmap installed. + def wmap_enabled + false + end # Test a single host def run_host(ip)