• MySQL-sqlmap常用参数的中文解释


    #HiRoot's Blog
    Options(选项):
    --version 显示程序的版本号并退出
    -h, --help 显示此帮助消息并退出
    -v VERBOSE 详细级别:0-6(默认为1)

    Target(目标):
    以下至少需要设置其中一个选项,设置目标URL。

    -d DIRECT 直接连接到数据库。
    -u URL, --url=URL 目标URL。
    -l LIST 从Burp或WebScarab代理的日志中解析目标。
    -r REQUESTFILE 从一个文件中载入HTTP请求。
    -g GOOGLEDORK 处理Google dork的结果作为目标URL。
    -c CONFIGFILE 从INI配置文件中加载选项。

    Request(请求):
    这些选项可以用来指定如何连接到目标URL。

    --data=DATA 通过POST发送的数据字符串
    --cookie=COOKIE HTTP Cookie头
    --cookie-urlencode URL 编码生成的cookie注入
    --drop-set-cookie 忽略响应的Set - Cookie头信息
    --user-agent=AGENT 指定 HTTP User - Agent头
    --random-agent 使用随机选定的HTTP User - Agent头
    --referer=REFERER 指定 HTTP Referer头
    --headers=HEADERS 换行分开,加入其他的HTTP头
    --auth-type=ATYPE HTTP身份验证类型(基本,摘要或NTLM)(Basic, Digest or NTLM)
    --auth-cred=ACRED HTTP身份验证凭据(用户名:密码)
    --auth-cert=ACERT HTTP认证证书(key_file,cert_file)
    --proxy=PROXY 使用HTTP代理连接到目标URL
    --proxy-cred=PCRED HTTP代理身份验证凭据(用户名:密码)
    --ignore-proxy 忽略系统默认的HTTP代理
    --delay=DELAY 在每个HTTP请求之间的延迟时间,单位为秒
    --timeout=TIMEOUT 等待连接超时的时间(默认为30秒)
    --retries=RETRIES 连接超时后重新连接的时间(默认3)
    --scope=SCOPE 从所提供的代理日志中过滤器目标的正则表达式
    --safe-url=SAFURL 在测试过程中经常访问的url地址
    --safe-freq=SAFREQ 两次访问之间测试请求,给出安全的URL

    Optimization(优化):
    这些选项可用于优化SqlMap的性能。

    -o 开启所有优化开关
    --predict-output 预测常见的查询输出
    --keep-alive 使用持久的HTTP(S)连接
    --null-connection 从没有实际的HTTP响应体中检索页面长度
    --threads=THREADS 最大的HTTP(S)请求并发量(默认为1)

    Injection(注入):
    这些选项可以用来指定测试哪些参数, 提供自定义的注入payloads和可选篡改脚本。

    -p TESTPARAMETER 可测试的参数(S)
    --dbms=DBMS 强制后端的DBMS为此值
    --os=OS 强制后端的DBMS操作系统为这个值
    --prefix=PREFIX 注入payload字符串前缀
    --suffix=SUFFIX 注入payload字符串后缀
    --tamper=TAMPER 使用给定的脚本(S)篡改注入数据

    Detection(检测):
    这些选项可以用来指定在SQL盲注时如何解析和比较HTTP响应页面的内容。

    --level=LEVEL 执行测试的等级(1-5,默认为1)
    --risk=RISK 执行测试的风险(0-3,默认为1)
    --string=STRING 查询时有效时在页面匹配字符串
    --regexp=REGEXP 查询时有效时在页面匹配正则表达式
    --text-only 仅基于在文本内容比较网页

    Techniques(技巧):
    这些选项可用于调整具体的SQL注入测试。

    --technique=TECH SQL注入技术测试(默认BEUST)
    --time-sec=TIMESEC DBMS响应的延迟时间(默认为5秒)
    --union-cols=UCOLS 定列范围用于测试UNION查询注入
    --union-char=UCHAR 用于暴力猜解列数的字符

    Fingerprint(指纹):
    -f, --fingerprint 执行检查广泛的DBMS版本指纹

    Enumeration(枚举):
    这些选项可以用来列举后端数据库管理系统的信息、表中的结构和数据。此外,您还可以运行您自己
    的SQL语句。
    -b, --banner 检索数据库管理系统的标识
    --current-user 检索数据库管理系统当前用户
    --current-db 检索数据库管理系统当前数据库
    --is-dba 检测DBMS当前用户是否DBA
    --users 枚举数据库管理系统用户
    --passwords 枚举数据库管理系统用户密码哈希
    --privileges 枚举数据库管理系统用户的权限
    --roles 枚举数据库管理系统用户的角色
    --dbs 枚举数据库管理系统数据库
    --tables 枚举的DBMS数据库中的表
    --columns 枚举DBMS数据库表列
    --dump 转储数据库管理系统的数据库中的表项
    --dump-all 转储所有的DBMS数据库表中的条目
    --search 搜索列(S),表(S)和/或数据库名称(S)
    -D DB 要进行枚举的数据库名
    -T TBL 要进行枚举的数据库表
    -C COL 要进行枚举的数据库列
    -U USER 用来进行枚举的数据库用户
    --exclude-sysdbs 枚举表时排除系统数据库
    --start=LIMITSTART 第一个查询输出进入检索
    --stop=LIMITSTOP 最后查询的输出进入检索
    --first=FIRSTCHAR 第一个查询输出字的字符检索
    --last=LASTCHAR 最后查询的输出字字符检索
    --sql-query=QUERY 要执行的SQL语句
    --sql-shell 提示交互式SQL的shell

    Brute force(蛮力):
    这些选项可以被用来运行蛮力检查。

    --common-tables 检查存在共同表
    --common-columns 检查存在共同列

    User-defined function injection(用户自定义函数注入):
    这些选项可以用来创建用户自定义函数。

    --udf-inject 注入用户自定义函数
    --shared-lib=SHLIB 共享库的本地路径

    File system access(访问文件系统):
    这些选项可以被用来访问后端数据库管理系统的底层文件系统。

    --file-read=RFILE 从后端的数据库管理系统文件系统读取文件
    --file-write=WFILE 编辑后端的数据库管理系统文件系统上的本地文件
    --file-dest=DFILE 后端的数据库管理系统写入文件的绝对路径

    Operating system access(操作系统访问):
    这些选项可以用于访问后端数据库管理系统的底层操作系统。

    --os-cmd=OSCMD 执行操作系统命令
    --os-shell 交互式的操作系统的shell
    --os-pwn 获取一个OOB shell,meterpreter或VNC
    --os-smbrelay 一键获取一个OOB shell,meterpreter或VNC
    --os-bof 存储过程缓冲区溢出利用
    --priv-esc 数据库进程用户权限提升
    --msf-path=MSFPATH Metasploit Framework本地的安装路径
    --tmp-path=TMPPATH 远程临时文件目录的绝对路径

    Windows注册表访问:
    这些选项可以被用来访问后端数据库管理系统Windows注册表。

    --reg-read 读一个Windows注册表项值
    --reg-add 写一个Windows注册表项值数据
    --reg-del 删除Windows注册表键值
    --reg-key=REGKEY Windows注册表键
    --reg-value=REGVAL Windows注册表项值
    --reg-data=REGDATA Windows注册表键值数据
    --reg-type=REGTYPE Windows注册表项值类型

    General(一般):

    这些选项可以用来设置一些一般的工作参数。
    -t TRAFFICFILE 记录所有HTTP流量到一个文本文件中
    -s SESSIONFILE 保存和恢复检索会话文件的所有数据
    --flush-session 刷新当前目标的会话文件
    --fresh-queries 忽略在会话文件中存储的查询结果
    --eta 显示每个输出的预计到达时间
    --update 更新SqlMap
    --save file保存选项到INI配置文件
    --batch 从不询问用户输入,使用所有默认配置。

    Miscellaneous(杂项):
    --beep 发现SQL注入时提醒
    --check-payload IDS对注入payloads的检测测试
    --cleanup SqlMap具体的UDF和表清理DBMS
    --forms 对目标URL的解析和测试形式
    --gpage=GOOGLEPAGE 从指定的页码使用谷歌dork结果
    --page-rank Google dork结果显示网页排名(PR)
    --parse-errors 从响应页面解析数据库管理系统的错误消息
    --replicate 复制转储的数据到一个sqlite3数据库
    --tor 使用默认的Tor(Vidalia/ Privoxy/ Polipo)代理地址
    --wizard 给初级用户的简单向导界面

    更详细解释参考:

      http://drops.wooyun.org/tips/143

      http://drops.wooyun.org/tips/401

      http://www.waitalone.cn/sqlmap-users-manual.html

    Options:
    -h, --help Show basic help message and exit
    -hh Show advanced help message and exit
    --version Show program's version number and exit
    -v VERBOSE Verbosity level: 0-6 (default 1)
     
    Target:
    At least one of these options has to be provided to define the
    target(s)
     
    -d DIRECT Connection string for direct database connection
    -u URL, --url=URL Target URL (e.g. "http://www.site.com/vuln.php?id=1")
    -l LOGFILE Parse target(s) from Burp or WebScarab proxy log file
    -x SITEMAPURL Parse target(s) from remote sitemap(.xml) file
    -m BULKFILE Scan multiple targets given in a textual file
    -r REQUESTFILE Load HTTP request from a file
    -g GOOGLEDORK Process Google dork results as target URLs
    -c CONFIGFILE Load options from a configuration INI file
     
    Request:
    These options can be used to specify how to connect to the target URL
     
    --method=METHOD Force usage of given HTTP method (e.g. PUT)
    --data=DATA Data string to be sent through POST
    --param-del=PARA.. Character used for splitting parameter values
    --cookie=COOKIE HTTP Cookie header value
    --cookie-del=COO.. Character used for splitting cookie values
    --load-cookies=L.. File containing cookies in Netscape/wget format
    --drop-set-cookie Ignore Set-Cookie header from response
    --user-agent=AGENT HTTP User-Agent header value
    --random-agent Use randomly selected HTTP User-Agent header value
    --host=HOST HTTP Host header value
    --referer=REFERER HTTP Referer header value
    --headers=HEADERS Extra headers (e.g. "Accept-Language: fr ETag: 123")
    --auth-type=AUTH.. HTTP authentication type (Basic, Digest, NTLM or PKI)
    --auth-cred=AUTH.. HTTP authentication credentials (name:password)
    --auth-private=A.. HTTP authentication PEM private key file
    --ignore-401 Ignore HTTP Error 401 (Unauthorized)
    --proxy=PROXY Use a proxy to connect to the target URL
    --proxy-cred=PRO.. Proxy authentication credentials (name:password)
    --proxy-file=PRO.. Load proxy list from a file
    --ignore-proxy Ignore system default proxy settings
    --tor Use Tor anonymity network
    --tor-port=TORPORT Set Tor proxy port other than default
    --tor-type=TORTYPE Set Tor proxy type (HTTP (default), SOCKS4 or SOCKS5)
    --check-tor Check to see if Tor is used properly
    --delay=DELAY Delay in seconds between each HTTP request
    --timeout=TIMEOUT Seconds to wait before timeout connection (default 30)
    --retries=RETRIES Retries when the connection timeouts (default 3)
    --randomize=RPARAM Randomly change value for given parameter(s)
    --safe-url=SAFURL URL address to visit frequently during testing
    --safe-freq=SAFREQ Test requests between two visits to a given safe URL
    --skip-urlencode Skip URL encoding of payload data
    --csrf-token=CSR.. Parameter used to hold anti-CSRF token
    --csrf-url=CSRFURL URL address to visit to extract anti-CSRF token
    --force-ssl Force usage of SSL/HTTPS
    --hpp Use HTTP parameter pollution method
    --eval=EVALCODE Evaluate provided Python code before the request (e.g.
    "import hashlib;id2=hashlib.md5(id).hexdigest()")
     
    Optimization:
    These options can be used to optimize the performance of sqlmap
     
    -o Turn on all optimization switches
    --predict-output Predict common queries output
    --keep-alive Use persistent HTTP(s) connections
    --null-connection Retrieve page length without actual HTTP response body
    --threads=THREADS Max number of concurrent HTTP(s) requests (default 1)
     
    Injection:
    These options can be used to specify which parameters to test for,
    provide custom injection payloads and optional tampering scripts
     
    -p TESTPARAMETER Testable parameter(s)
    --skip=SKIP Skip testing for given parameter(s)
    --dbms=DBMS Force back-end DBMS to this value
    --dbms-cred=DBMS.. DBMS authentication credentials (user:password)
    --os=OS Force back-end DBMS operating system to this value
    --invalid-bignum Use big numbers for invalidating values
    --invalid-logical Use logical operations for invalidating values
    --invalid-string Use random strings for invalidating values
    --no-cast Turn off payload casting mechanism
    --no-escape Turn off string escaping mechanism
    --prefix=PREFIX Injection payload prefix string
    --suffix=SUFFIX Injection payload suffix string
    --tamper=TAMPER Use given script(s) for tampering injection data
     
    Detection:
    These options can be used to customize the detection phase
     
    --level=LEVEL Level of tests to perform (1-5, default 1)
    --risk=RISK Risk of tests to perform (0-3, default 1)
    --string=STRING String to match when query is evaluated to True
    --not-string=NOT.. String to match when query is evaluated to False
    --regexp=REGEXP Regexp to match when query is evaluated to True
    --code=CODE HTTP code to match when query is evaluated to True
    --text-only Compare pages based only on the textual content
    --titles Compare pages based only on their titles
     
    Techniques:
    These options can be used to tweak testing of specific SQL injection
    techniques
     
    --technique=TECH SQL injection techniques to use (default "BEUSTQ")
    --time-sec=TIMESEC Seconds to delay the DBMS response (default 5)
    --union-cols=UCOLS Range of columns to test for UNION query SQL injection
    --union-char=UCHAR Character to use for bruteforcing number of columns
    --union-from=UFROM Table to use in FROM part of UNION query SQL injection
    --dns-domain=DNS.. Domain name used for DNS exfiltration attack
    --second-order=S.. Resulting page URL searched for second-order response
     
    Fingerprint:
    -f, --fingerprint Perform an extensive DBMS version fingerprint
     
    Enumeration:
    These options can be used to enumerate the back-end database
    management system information, structure and data contained in the
    tables. Moreover you can run your own SQL statements
     
    -a, --all Retrieve everything
    -b, --banner Retrieve DBMS banner
    --current-user Retrieve DBMS current user
    --current-db Retrieve DBMS current database
    --hostname Retrieve DBMS server hostname
    --is-dba Detect if the DBMS current user is DBA
    --users Enumerate DBMS users
    --passwords Enumerate DBMS users password hashes
    --privileges Enumerate DBMS users privileges
    --roles Enumerate DBMS users roles
    --dbs Enumerate DBMS databases
    --tables Enumerate DBMS database tables
    --columns Enumerate DBMS database table columns
    --schema Enumerate DBMS schema
    --count Retrieve number of entries for table(s)
    --dump Dump DBMS database table entries
    --dump-all Dump all DBMS databases tables entries
    --search Search column(s), table(s) and/or database name(s)
    --comments Retrieve DBMS comments
    -D DB DBMS database to enumerate
    -T TBL DBMS database table(s) to enumerate
    -C COL DBMS database table column(s) to enumerate
    -X EXCLUDECOL DBMS database table column(s) to not enumerate
    -U USER DBMS user to enumerate
    --exclude-sysdbs Exclude DBMS system databases when enumerating tables
    --where=DUMPWHERE Use WHERE condition while table dumping
    --start=LIMITSTART First query output entry to retrieve
    --stop=LIMITSTOP Last query output entry to retrieve
    --first=FIRSTCHAR First query output word character to retrieve
    --last=LASTCHAR Last query output word character to retrieve
    --sql-query=QUERY SQL statement to be executed
    --sql-shell Prompt for an interactive SQL shell
    --sql-file=SQLFILE Execute SQL statements from given file(s)
     
    Brute force:
    These options can be used to run brute force checks
     
    --common-tables Check existence of common tables
    --common-columns Check existence of common columns
     
    User-defined function injection:
    These options can be used to create custom user-defined functions
     
    --udf-inject Inject custom user-defined functions
    --shared-lib=SHLIB Local path of the shared library
     
    File system access:
    These options can be used to access the back-end database management
    system underlying file system
     
    --file-read=RFILE Read a file from the back-end DBMS file system
    --file-write=WFILE Write a local file on the back-end DBMS file system
    --file-dest=DFILE Back-end DBMS absolute filepath to write to
     
    Operating system access:
    These options can be used to access the back-end database management
    system underlying operating system
     
    --os-cmd=OSCMD Execute an operating system command
    --os-shell Prompt for an interactive operating system shell
    --os-pwn Prompt for an OOB shell, Meterpreter or VNC
    --os-smbrelay One click prompt for an OOB shell, Meterpreter or VNC
    --os-bof Stored procedure buffer overflow exploitation
    --priv-esc Database process user privilege escalation
    --msf-path=MSFPATH Local path where Metasploit Framework is installed
    --tmp-path=TMPPATH Remote absolute path of temporary files directory
     
    Windows registry access:
    These options can be used to access the back-end database management
    system Windows registry
     
    --reg-read Read a Windows registry key value
    --reg-add Write a Windows registry key value data
    --reg-del Delete a Windows registry key value
    --reg-key=REGKEY Windows registry key
    --reg-value=REGVAL Windows registry key value
    --reg-data=REGDATA Windows registry key value data
    --reg-type=REGTYPE Windows registry key value type
     
    General:
    These options can be used to set some general working parameters
     
    -s SESSIONFILE Load session from a stored (.sqlite) file
    -t TRAFFICFILE Log all HTTP traffic into a textual file
    --batch Never ask for user input, use the default behaviour
    --charset=CHARSET Force character encoding used for data retrieval
    --crawl=CRAWLDEPTH Crawl the website starting from the target URL
    --csv-del=CSVDEL Delimiting character used in CSV output (default ",")
    --dump-format=DU.. Format of dumped data (CSV (default), HTML or SQLITE)
    --eta Display for each output the estimated time of arrival
    --flush-session Flush session files for current target
    --forms Parse and test forms on target URL
    --fresh-queries Ignore query results stored in session file
    --hex Use DBMS hex function(s) for data retrieval
    --output-dir=OUT.. Custom output directory path
    --parse-errors Parse and display DBMS error messages from responses
    --pivot-column=P.. Pivot column name
    --save Save options to a configuration INI file
    --scope=SCOPE Regexp to filter targets from provided proxy log
    --test-filter=TE.. Select tests by payloads and/or titles (e.g. ROW)
    --update Update sqlmap
     
    Miscellaneous:
    -z MNEMONICS Use short mnemonics (e.g. "flu,bat,ban,tec=EU")
    --alert=ALERT Run host OS command(s) when SQL injection is found
    --answers=ANSWERS Set question answers (e.g. "quit=N,follow=N")
    --beep Make a beep sound when SQL injection is found
    --cleanup Clean up the DBMS from sqlmap specific UDF and tables
    --dependencies Check for missing (non-core) sqlmap dependencies
    --disable-coloring Disable console output coloring
    --gpage=GOOGLEPAGE Use Google dork results from specified page number
    --identify-waf Make a through testing for a WAF/IPS/IDS protection
    --mobile Imitate smartphone through HTTP User-Agent header
    --page-rank Display page rank (PR) for Google dork results
    --purge-output Safely remove all content from output directory
    --smart Conduct through tests only if positive heuristic(s)
    --sqlmap-shell Prompt for an interactive sqlmap shell
    --wizard Simple wizard interface for beginner users

  • 相关阅读:
    httpclient在获取response的entity时报异常
    SpringCloud项目,接口调用返回http 500
    使用maven插件生成grpc所需要的Java代码
    win10 无法修改默认程序 默认打开方式的解决方法
    mock.js中新增测试接口无效,返回404
    echarts的pie图中,各区块颜色的调整
    HashMap源码注释翻译
    netty学习记录2
    netty学习记录1
    Java-JNA使用心得2
  • 原文地址:https://www.cnblogs.com/JohnABC/p/4903973.html
Copyright © 2020-2023  润新知