@@ -152,6 +152,9 @@ def cmdLineParser(argv=None):
152152 request .add_argument ("--user-agent" , dest = "agent" ,
153153 help = "HTTP User-Agent header value" )
154154
155+ request .add_argument ("--mobile" , dest = "mobile" , action = "store_true" ,
156+ help = "Imitate smartphone through HTTP User-Agent header" )
157+
155158 request .add_argument ("--random-agent" , dest = "randomAgent" , action = "store_true" ,
156159 help = "Use randomly selected HTTP User-Agent header value" )
157160
@@ -344,6 +347,9 @@ def cmdLineParser(argv=None):
344347 detection .add_argument ("--code" , dest = "code" , type = int ,
345348 help = "HTTP code to match when query is evaluated to True" )
346349
350+ detection .add_argument ("--smart" , dest = "smart" , action = "store_true" ,
351+ help = "Perform thorough tests only if positive heuristic(s)" )
352+
347353 detection .add_argument ("--text-only" , dest = "textOnly" , action = "store_true" ,
348354 help = "Compare pages based only on the textual content" )
349355
@@ -585,6 +591,9 @@ def cmdLineParser(argv=None):
585591 general .add_argument ("-t" , dest = "trafficFile" ,
586592 help = "Log all HTTP traffic into a textual file" )
587593
594+ general .add_argument ("--answers" , dest = "answers" ,
595+ help = "Set predefined answers (e.g. \" quit=N,follow=N\" )" )
596+
588597 general .add_argument ("--batch" , dest = "batch" , action = "store_true" ,
589598 help = "Never ask for user input, use the default behavior" )
590599
@@ -594,6 +603,9 @@ def cmdLineParser(argv=None):
594603 general .add_argument ("--check-internet" , dest = "checkInternet" , action = "store_true" ,
595604 help = "Check Internet connection before assessing the target" )
596605
606+ general .add_argument ("--cleanup" , dest = "cleanup" , action = "store_true" ,
607+ help = "Clean up the DBMS from sqlmap specific UDF and tables" )
608+
597609 general .add_argument ("--crawl" , dest = "crawlDepth" , type = int ,
598610 help = "Crawl the website starting from the target URL" )
599611
@@ -624,6 +636,9 @@ def cmdLineParser(argv=None):
624636 general .add_argument ("--fresh-queries" , dest = "freshQueries" , action = "store_true" ,
625637 help = "Ignore query results stored in session file" )
626638
639+ general .add_argument ("--gpage" , dest = "googlePage" , type = int ,
640+ help = "Use Google dork results from specified page number" )
641+
627642 general .add_argument ("--har" , dest = "harFile" ,
628643 help = "Log all HTTP traffic into a HAR file" )
629644
@@ -648,68 +663,53 @@ def cmdLineParser(argv=None):
648663 general .add_argument ("--scope" , dest = "scope" ,
649664 help = "Regexp to filter targets from provided proxy log" )
650665
666+ general .add_argument ("--skip-waf" , dest = "skipWaf" , action = "store_true" ,
667+ help = "Skip heuristic detection of WAF/IPS protection" )
668+
651669 general .add_argument ("--test-filter" , dest = "testFilter" ,
652670 help = "Select tests by payloads and/or titles (e.g. ROW)" )
653671
654672 general .add_argument ("--test-skip" , dest = "testSkip" ,
655673 help = "Skip tests by payloads and/or titles (e.g. BENCHMARK)" )
656674
657- general .add_argument ("--update " , dest = "updateAll" , action = "store_true " ,
658- help = "Update sqlmap " )
675+ general .add_argument ("--web-root " , dest = "webRoot " ,
676+ help = "Web server document root directory (e.g. \" /var/www \" ) " )
659677
660678 # Miscellaneous options
661- miscellaneous = parser .add_argument_group ("Miscellaneous" )
679+ miscellaneous = parser .add_argument_group ("Miscellaneous" , "These options do not fit into any other category" )
662680
663681 miscellaneous .add_argument ("-z" , dest = "mnemonics" ,
664682 help = "Use short mnemonics (e.g. \" flu,bat,ban,tec=EU\" )" )
665683
666684 miscellaneous .add_argument ("--alert" , dest = "alert" ,
667685 help = "Run host OS command(s) when SQL injection is found" )
668686
669- miscellaneous .add_argument ("--answers" , dest = "answers" ,
670- help = "Set predefined answers (e.g. \" quit=N,follow=N\" )" )
671-
672687 miscellaneous .add_argument ("--beep" , dest = "beep" , action = "store_true" ,
673688 help = "Beep on question and/or when SQL injection is found" )
674689
675- miscellaneous .add_argument ("--cleanup" , dest = "cleanup" , action = "store_true" ,
676- help = "Clean up the DBMS from sqlmap specific UDF and tables" )
677-
678690 miscellaneous .add_argument ("--dependencies" , dest = "dependencies" , action = "store_true" ,
679691 help = "Check for missing (optional) sqlmap dependencies" )
680692
681693 miscellaneous .add_argument ("--disable-coloring" , dest = "disableColoring" , action = "store_true" ,
682694 help = "Disable console output coloring" )
683695
684- miscellaneous .add_argument ("--gpage" , dest = "googlePage" , type = int ,
685- help = "Use Google dork results from specified page number" )
686-
687696 miscellaneous .add_argument ("--list-tampers" , dest = "listTampers" , action = "store_true" ,
688697 help = "Display list of available tamper scripts" )
689698
690- miscellaneous .add_argument ("--mobile" , dest = "mobile" , action = "store_true" ,
691- help = "Imitate smartphone through HTTP User-Agent header" )
692-
693699 miscellaneous .add_argument ("--offline" , dest = "offline" , action = "store_true" ,
694700 help = "Work in offline mode (only use session data)" )
695701
696702 miscellaneous .add_argument ("--purge" , dest = "purge" , action = "store_true" ,
697703 help = "Safely remove all content from sqlmap data directory" )
698704
699- miscellaneous .add_argument ("--skip-waf" , dest = "skipWaf" , action = "store_true" ,
700- help = "Skip heuristic detection of WAF/IPS protection" )
701-
702- miscellaneous .add_argument ("--smart" , dest = "smart" , action = "store_true" ,
703- help = "Conduct thorough tests only if positive heuristic(s)" )
704-
705705 miscellaneous .add_argument ("--sqlmap-shell" , dest = "sqlmapShell" , action = "store_true" ,
706706 help = "Prompt for an interactive sqlmap shell" )
707707
708708 miscellaneous .add_argument ("--tmp-dir" , dest = "tmpDir" ,
709709 help = "Local directory for storing temporary files" )
710710
711- miscellaneous .add_argument ("--web-root " , dest = "webRoot " ,
712- help = "Web server document root directory (e.g. \" /var/www \" ) " )
711+ miscellaneous .add_argument ("--update " , dest = "updateAll" , action = "store_true " ,
712+ help = "Update sqlmap " )
713713
714714 miscellaneous .add_argument ("--wizard" , dest = "wizard" , action = "store_true" ,
715715 help = "Simple wizard interface for beginner users" )
0 commit comments