-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Labels
documentationImprovements or additions to documentationImprovements or additions to documentationgood first issueGood for newcomersGood for newcomersquestionFurther information is requestedFurther information is requested
Milestone
Description
一、SQL注入与防御策略
任务1:SQL注入的深入理解与利用
-
SQL注入类型:
- 学习并实验不同类型的SQL注入,包括盲注(Blind Injection)、联合查询注入(Union-based Injection)、时间盲注(Time-based Blind Injection)等。
- 针对每种SQL注入类型,使用
sqlmap
工具进行自动化扫描,记录相关的命令、输出结果及工具日志。
-
攻击实战:
- 访问并分析目标网址(如
http://101.43.235.147/sqli/02.php?id=2
)。 - 使用
sqlmap
工具进行注入攻击,获取数据库信息、表结构、表数据等。 - 使用
sqlmap
的不同选项(如--dump
,--tables
,--columns
)探测并提取数据库中的敏感数据。
- 访问并分析目标网址(如
-
防御措施:
- 学习如何防范SQL注入漏洞,重点理解输入验证、预编译语句、ORM(对象关系映射)等技术。
- 在自己搭建的简单Web应用(如PHP+MySQL)中,尝试实现SQL注入防护,包括但不限于:
- 使用预处理语句(Prepared Statements)。
- 对用户输入进行有效性验证和清理。
- 使用Web应用防火墙(WAF)来阻止SQL注入攻击。
-
任务提交:
- 提交一个报告,内容包括:
- 各种SQL注入类型的攻击过程及相应的
sqlmap
命令和输出。 - 防护措施的实现与测试,说明如何避免这些攻击。
- 各种SQL注入类型的攻击过程及相应的
- 提交一个报告,内容包括:
HxCodeWarrior
Metadata
Metadata
Assignees
Labels
documentationImprovements or additions to documentationImprovements or additions to documentationgood first issueGood for newcomersGood for newcomersquestionFurther information is requestedFurther information is requested