zoukankan
html css js c++ java
PHP 注射风格测试
# 标题写的不太好,原意在写一个程序好比说注射机的时候,方便测试。
# 代码有点冗长。
<?
$id
=
$_GET
[
'
id
'
];
$server_name
=
"
DB_SERver
"
;
$username
=
"
DBuser
"
;
$password
=
"
DBuser_Pass
"
;
$database
=
"
Select_DB
"
;
$db
=
new
mysqli(
$server_name
,
$username
,
$password
,
$database
);
$query
=
"
select * from admin where id=
$id
"
;
$result
=
$db
->
query(
$query
);
if
(
$num_results
=
$result
->
num_rows){
$row
=
$result
->
fetch_assoc();
foreach
(
$row
as
$key
=>
$value
){
echo
$key
.
"
:=:
"
;
echo
$value
;
echo
'
<br />
'
;
}
}
?>
<
html
>
<
head
>
<
title
>
SQL InJection Test
</
title
>
<
body
>
<
pre
>
这里是 空的 怎么
~
飞了
~
难道
</
pre
>
</
body
>
</
html
>
查看全文
相关阅读:
[HDOJ4788]Hard Disk Drive(水题)
[HDOJ4782]Beautiful Soup(模拟)
[HDOJ3652]B-Number(数位dp)
[CF55D]Beautiful numbers(数位dp,状态压缩)
[HDOJ3555]Bomb(数位DP)
[HDOJ2089]不要62(数位DP)
[HDOJ5881] Tea(找规律)
[HDOJ5900]QSC and Master(区间dp)
[HDOJ5878]I Count Two Three(暴力枚举,二分)
[HDOJ5879]Cure(求极限,打表)
原文地址:https://www.cnblogs.com/lsk/p/1193349.html
最新文章
LeetCode
LeetCode
LeetCode
LeetCode
LeetCode
LeetCode
LeetCode
LeetCode
LeetCode
LeetCode
热门文章
<offer4> 04_FindInPartiallySortedMatrix
<OFFER03>03_01_DuplicationInArray
<OFFER> 06_PrintListInReversedOrder
MIMO雷达比幅单脉冲测角精度分析(系统工程与电子技术)
(转发)链表添加函数中为什么要用指向链表指针的指针(引用传参)
跳马(Knight Moves), ZOJ1091, POJ2243 x
快速幂 x
noi 1700 + 1756 八皇后问题 x
NOI 2727:仙岛求药 x
break,continue,return的区别 x
Copyright © 2011-2022 走看看