initial work for issue #33

This commit is contained in:
Bernardo Damele
2012-07-10 00:27:08 +01:00
parent d3da3f5c52
commit c4af7b9aa0
5 changed files with 25 additions and 1 deletions

View File

@@ -118,6 +118,9 @@ def action():
if conf.sqlShell:
conf.dbmsHandler.sqlShell()
if conf.sqlFile:
conf.dbmsHandler.sqlFile()
# User-defined function options
if conf.udfInject:
conf.dbmsHandler.udfInjectCustom()

View File

@@ -119,7 +119,8 @@ optDict = {
"firstChar": "integer",
"lastChar": "integer",
"query": "string",
"sqlShell": "boolean"
"sqlShell": "boolean",
"sqlFile": "string"
},
"Brute": {

View File

@@ -383,6 +383,9 @@ def cmdLineParser():
action="store_true",
help="Prompt for an interactive SQL shell")
enumeration.add_option("--sql-file", dest="sqlFile",
help="Execute SQL statements from given file(s)")
# User-defined function options
brute = OptionGroup(parser, "Brute force", "These "
"options can be used to run brute force "