本文共 262 字,大约阅读时间需要 1 分钟。
知识点
wp
- 查看源代码,看见一个index.txt

- 打开看到后端代码,发现有sql注入,以及得到flag的条件

- strcasecmp() 函数比较两个字符串,当两字符串相等时返回0,因此是从数据库中提取出pw,且与md5后的password相等能得到flag
- 只要利用user提交sql注入语句查到一个md5(pw),且于提交的md5(pass)相等就行。
- 所以构造
username=username' union select md5(1)#, password=1
得到flag 
转载地址:http://xknaz.baihongyu.com/