- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
- 26
- 27
- 28
- 29
<?php
session_start();
if(isset($_GET['gc'])){
$s="";
$s = rand(0,10).rand(0,10).rand(0,10).rand(0,10).rand(0,10).rand(0,10);
$ct=mktime();
$_SESSION['tm']=$ct;
echo "<a href=\"http://netelis.hmsite.net/cg.php?cn=$s\">http://localhost/cg.php?cn=$s</a>";
$_SESSION['ccc']=$s;
} elseif(isset($_GET['cn']) && isset($_SESSION['tm'])){
$tt=mktime();
$dt=$tt-$_SESSION['tm'];
if($dt<=25){
if(isset($_SESSION['ccc'])){echo "<p align=center><FORM name=cp method=POST action=\"\"><br>"; echo $_SESSION['ccc']."<br>";echo "Enter the text you see<br>";}
echo "<input name=cpt type=text>";
echo "<input name=sub type=submit>";
echo "</FORM></p>";} else {echo "The link was broken";};
};
if(isset($_POST['cpt'])){
if(isset($_SESSION['ccc'])){
if($_SESSION['ccc']==$_POST['cpt']){
echo "Captcha is valid";
};
session_destroy();
};
};
?>
Lure Of Chaos 09.04.2011 11:58 # 0
а остальное в общем типичный случай
RaZeR 09.04.2011 12:02 # 0
Видимо, он надеется, что и у юзера есть CGI и cg.php.
Lure Of Chaos 09.04.2011 12:04 # 0
nethak 11.04.2011 13:40 # 0
Lure Of Chaos 11.04.2011 23:23 # 0