的SqlMap包装说明

的SqlMap是一个开源渗透测试工具,它可以自动检测和利用SQL注入漏洞,并接管数据库服务器的过程。它配备了一个功能强大的检测引擎,很多小众的功能为最终渗透测试和广泛的交换机从数据库指纹识别持久,在获取数据从数据库,通过输出访问底层的文件系统和执行操作系统命令的带内连接。 产品特点:

  • 为MySQL,甲骨文,PostgreSQL的,微软的SQL Server,Microsoft Access中,IBM DB2,SQLite的,火鸟,Sybase和SAP MaxDB数据库管理系统的全面支持。
  • 布尔型盲,基于时间的盲目,错误为基础,UNION查询,堆查询和出带外:六SQL注入技术的全面支持。
  • 支持直接连接到数据库,而不通过SQL注入路过,通过提供DBMS凭据,IP地址,端口和数据库名称。
  • 支持枚举用户,密码哈希值,权限,角色,数据库,表和列。
  • 自动识别的密码哈希格式,使用基于字典的攻击开裂他们的支持。
  • 支持转储数据库表完全,一系列条目或特定列的根据用户的选择。用户还可以选择仅倾倒的范围内每列的条目的字符。
  • 支持搜索特定的数据库名称,具体的表在所有数据库或特定的列在所有数据库“表。这是有用的,例如,以确定包含自定义应用程序凭据在相关栏目的名称包含字符串如姓名和通表。
  • 支持下载和从数据库服务器上传任何文件底层文件系统时,数据库软件MySQL和PostgreSQL或Microsoft SQL Server。
  • 支持执行任意指令和检索的数据库服务器的底层操作系统时,数据库软件MySQL和PostgreSQL或Microsoft SQL Server上的标准输出。
  • 支持建立攻击机和数据库服务器底层操作系统之间的外的带状态的TCP连接。这个通道可以是一个交互式命令提示符下,一个Meterpreter就会会话或图形用户界面(VNC)会话根据用户选择的。
  • 支持通过Metasploit工具的Meterpreter就会getsystem命令数据库进程“用户权限提升。 资料来源:http://sqlmap.org/

的SqlMap首页 | 卡利的SqlMap回购

  • 作者:贝尔纳Damele阿松桑吉马良斯,米罗斯拉夫Stampar
  • 许可:GPL第二版

    0x01 列入的SqlMap包工具

    的SqlMap - 自动SQL注入工具
    :~# sqlmap -h
    Usage: python sqlmap [options]
    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)
      -u URL, --url=URL   Target URL (e.g. "http://www.site.com/vuln.php?id=1")
      -g GOOGLEDORK       Process Google dork results as target URLs
    Request:
      These options can be used to specify how to connect to the target URL
      --data=DATA         Data string to be sent through POST
      --cookie=COOKIE     HTTP Cookie header value
      --random-agent      Use randomly selected HTTP User-Agent header value
      --proxy=PROXY       Use a proxy to connect to the target URL
      --tor               Use Tor anonymity network
      --check-tor         Check to see if Tor is used properly
    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)
      --dbms=DBMS         Force back-end DBMS to this value
    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)
    Techniques:
      These options can be used to tweak testing of specific SQL injection
      techniques
      --technique=TECH    SQL injection techniques to use (default "BEUSTQ")
    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
      --passwords         Enumerate DBMS users password hashes
      --tables            Enumerate DBMS database tables
      --columns           Enumerate DBMS database table columns
      --schema            Enumerate DBMS schema
      --dump              Dump DBMS database table entries
      --dump-all          Dump all DBMS databases tables entries
      -D DB               DBMS database to enumerate
      -T TBL              DBMS database table(s) to enumerate
      -C COL              DBMS database table column(s) to enumerate
    Operating system access:
      These options can be used to access the back-end database management
      system underlying operating system
      --os-shell          Prompt for an interactive operating system shell
      --os-pwn            Prompt for an OOB shell, Meterpreter or VNC
    General:
      These options can be used to set some general working parameters
      --batch             Never ask for user input, use the default behaviour
      --flush-session     Flush session files for current target
    Miscellaneous:
      --wizard            Simple wizard interface for beginner users
    [!] to see full list of options run with '-hh'
    [*] shutting down at 15:52:48
    

    0x02 的SqlMap用法示例

    攻击给定的 URL(-u“http://192.168.1.250/?p=1&forumaction=search”),并 提取数据库名称 (-dbs):
:~# sqlmap -u "http://192.168.1.250/?p=1&forumaction=search" --dbs
    sqlmap/1.0-dev - automatic SQL injection and database takeover tool
    http://sqlmap.org
[!] legal disclaimer: Usage of sqlmap for attacking targets without prior mutual consent is illegal. It is the end user's responsibility to obey all applicable local, state and federal laws. Developers assume no liability and are not responsible for any misuse or damage caused by this program
[*] starting at 13:11:04

原文来自https://www.hackfun.org/kali-tools/sqlmap_zh.html。转载请注明原出处,商用请联系原作者授权。

results matching ""

    No results matching ""