-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathserver.php
More file actions
58 lines (51 loc) · 1.04 KB
/
server.php
File metadata and controls
58 lines (51 loc) · 1.04 KB
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
<?php
require 'org.uuland.login.qq/class.login.php';
$uin = @$_GET['uin'];
$do = $_GET['do'];
is_numeric($uin) || exit('UIN.Invaild');
$login = new UULAND_QQLogin('cache/');
if ($do == 'check')
{
$vfcode = $login->Captcha_check($uin);
if ($vfcode['need'])
{
echo $vfcode['uin'].'?'.$vfcode['data'];
}
else
{
echo $vfcode['uin'].':'.$vfcode['data'];
}
}
if ($do == 'captcha')
{
echo $login->Captcha_GET($uin);
}
if ($do == 'login')
{
$password = $_GET['password'];
$vfcode = $_GET['vfcode'];
$r = $login->Login($uin, $password, $vfcode);
if ($r['ops'] == 'true')
{
echo 'ok:'.$r['name'];
}
else
{
echo 'err:'.$r['err'];
}
}
if ($do == 'url')
{
include 'org.uuland.login.qq/class.http.php';
$http = new UULAND_QQLogin_HTTP('cache/', $uin);
$url = $_GET['url'];
echo $http->get($url);
}
if ($do == 'cookies')
{
// tmp code for read cookies file
$HASH = md5($_SERVER['SERVER_NAME']);
$cookie_file = 'cache/cookies~'.$uin.'@'.$HASH.'.php';
echo is_file($cookie_file) ? htmlspecialchars(file_get_contents($cookie_file)) : 'null';
}
?>