@@ -76,7 +76,7 @@ def cmdLineParser():
7676 request .add_option ("--cookie" , dest = "cookie" ,
7777 help = "HTTP Cookie header" )
7878
79- request .add_option ("--load-cookies" , dest = "loC " ,
79+ request .add_option ("--load-cookies" , dest = "loadCookies " ,
8080 help = "File containing cookies in Netscape/wget format" )
8181
8282 request .add_option ("--cookie-urlencode" , dest = "cookieUrlencode" ,
@@ -280,7 +280,7 @@ def cmdLineParser():
280280 techniques .add_option ("--union-char" , dest = "uChar" ,
281281 help = "Character to use for bruteforcing number of columns" )
282282
283- techniques .add_option ("--dns-domain" , dest = "dName " ,
283+ techniques .add_option ("--dns-domain" , dest = "dnsName " ,
284284 help = "Domain name used for DNS exfiltration attack" )
285285
286286 # Fingerprint options
@@ -533,7 +533,7 @@ def cmdLineParser():
533533 help = "Delimiting character used in CSV output "
534534 "(default \" %s\" )" % defaults .csvDel )
535535
536- general .add_option ("--dbms-cred" , dest = "dCred " ,
536+ general .add_option ("--dbms-cred" , dest = "dbmsCred " ,
537537 help = "DBMS authentication credentials (user:password)" )
538538
539539 general .add_option ("--eta" , dest = "eta" ,
@@ -674,6 +674,16 @@ def cmdLineParser():
674674 parser .add_option_group (general )
675675 parser .add_option_group (miscellaneous )
676676
677+ # Dirty hack to display longer options without breaking into two lines
678+ def _ (self , * args ):
679+ _ = parser .formatter ._format_option_strings (* args )
680+ if len (_ ) > 18 :
681+ _ = "%.16s.." % _
682+ return _
683+
684+ parser .formatter ._format_option_strings = parser .formatter .format_option_strings
685+ parser .formatter .format_option_strings = type (parser .formatter .format_option_strings )(_ , parser , type (parser ))
686+
677687 # Dirty hack for making a short option -hh
678688 option = parser .get_option ("--hh" )
679689 option ._short_opts = ["-hh" ]
0 commit comments