-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest.php
35 lines (30 loc) · 937 Bytes
/
test.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<?
if (isset($_GET["s"]) && $_GET["s"]!="") {
/*
include_once("../../../lib/class.hash_crypt.php");
$key = "b4dk3y3ncrypt0r";
$s = ($_GET["s"]);
//echo $s;
$crypt = new hash_encryption($key);
$decrypt = $crypt->decrypt($s);
unset($crypt);
*/
// $_GET["s"] = 'WITa29kZXI=';
//$charset = "abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNOPQRSTUVWXYZ0123456789";
//for ($i=0; $i<6; $i++)
//$key .= $charset[(mt_rand(0,(strlen($charset)-1)))];
//$encode = strrev($key);
$encode = $_GET['s'];
//$encode = base64_encode($encode);
$encode = strrev($encode);
$encode = base64_encode($encode);
$test = base64_decode($encode);
$test = strrev($test);
$test = base64_decode($test);
$test = strrev($test);
include("captcha_numbersV2.php");
$captcha = new CaptchaNumbersV2(5,20,'png',$test,15);
$captcha->display();
unset($captcha);
}
?>