亚洲乱码中文字幕综合,中国熟女仑乱hd,亚洲精品乱拍国产一区二区三区,一本大道卡一卡二卡三乱码全集资源,又粗又黄又硬又爽的免费视频

EditPlus查找PHP源碼簡單數(shù)字型注入的正則表達(dá)式

互聯(lián)網(wǎng)   發(fā)布時(shí)間:2008-10-08 19:36:36   作者:佚名   我要評(píng)論
今天看一個(gè)項(xiàng)目代碼,文件不多,不過每個(gè)文件中都N多注入,一個(gè)一個(gè)看實(shí)在太累,索性花了點(diǎn)時(shí)間,弄了個(gè)正則表達(dá)式,搜索出來,然后再將安全的篩選出去。省了不少時(shí)間的說。 1.查找select、update、delete語句 ((select|SELECT|update|UPDATE|delete|DELETE) .*(f
今天看一個(gè)項(xiàng)目代碼,文件不多,不過每個(gè)文件中都N多注入,一個(gè)一個(gè)看實(shí)在太累,索性花了點(diǎn)時(shí)間,弄了個(gè)正則表達(dá)式,搜索出來,然后再將安全的篩選出去。省了不少時(shí)間的說。 1.查找select、update、delete語句
((select|SELECT|update|UPDATE|delete|DELETE) .*(from|FROM|set|SET) .*(where|WHERE) .*) 查詢語句,對(duì)于沒有條件判斷的基本不存在注入問題,因而僅搜索此語句即可
例子:
select * from user where 2.簡單的數(shù)字型注入
((select|SELECT|update|UPDATE|delete|DELETE) .*(from|FROM|set|SET) .*(where|WHERE) .*=[ ]?["]?["]?\$) 能找到select、update delete三種語句,5種格式的整形注入,如:
直接變量傳入
select * from guess where id=$subject_id
update guess set is_valid=0 where id=$subject_id
delete from guess where id=$subject_id
=與變量之間存在空格
select * from guess where id= $subject_id
update guess set is_valid=0 where id= $subject_id
delete from guess where id= $subject_id
變量雙引號(hào)
select * from guess where id="$subject_id"
update guess set is_valid=0 where id="$subject_id"
delete from guess where id="$subject_id"
=與雙引號(hào)之間存在空格
select * from guess where id= "$subject_id"
update guess set is_valid=0 where id= "$subject_id"
delete from guess where id= "$subject_id"
=與引號(hào)、雙引號(hào)之間存在空格
select * from guess where id= " $subject_id"
update guess set is_valid=0 where id= " $subject_id"
delete from guess where id= " $subject_id"

相關(guān)文章

最新評(píng)論