欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

EditPlus查找PHP源碼簡單數字型注入的正則表達式

互聯(lián)網   發(fā)布時間:2008-10-08 19:36:36   作者:佚名   我要評論
今天看一個項目代碼,文件不多,不過每個文件中都N多注入,一個一個看實在太累,索性花了點時間,弄了個正則表達式,搜索出來,然后再將安全的篩選出去。省了不少時間的說。 1.查找select、update、delete語句 ((select|SELECT|update|UPDATE|delete|DELETE) .*(f
今天看一個項目代碼,文件不多,不過每個文件中都N多注入,一個一個看實在太累,索性花了點時間,弄了個正則表達式,搜索出來,然后再將安全的篩選出去。省了不少時間的說。 1.查找select、update、delete語句
((select|SELECT|update|UPDATE|delete|DELETE) .*(from|FROM|set|SET) .*(where|WHERE) .*) 查詢語句,對于沒有條件判斷的基本不存在注入問題,因而僅搜索此語句即可
例子:
select * from user where 2.簡單的數字型注入
((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
變量雙引號
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"
=與引號、雙引號之間存在空格
select * from guess where id= " $subject_id"
update guess set is_valid=0 where id= " $subject_id"
delete from guess where id= " $subject_id"

相關文章

最新評論