forked from tutorial0/NoEye
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnoeye.php
81 lines (66 loc) · 2.11 KB
/
noeye.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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
<?php
//?vk=xxx&k victime accessed
//?uk=xx user visite
//condition md5(uk)==vk
error_reporting(E_ERROR);
$g_link = false;
function GetMyConnection()
{
global $g_link;
if( $g_link )
return $g_link;
$g_link = mysql_connect( 'localhost', 'root', 'root') or die('Could not connect to server.' );
mysql_select_db('noeye', $g_link) or die('Could not select database.');
return $g_link;
}
function CleanUpDB()
{
global $g_link;
if( $g_link != false )
mysql_close($g_link);
$g_link = false;
}
function QueryUk($uk){
$con=GetMyConnection();
$query = sprintf("SELECT prefixdata, lastaccess FROM dns_query
WHERE user_key='%s'",
mysql_real_escape_string($uk));
// Perform Query
$result = mysql_query($query,$con);
while ($row = mysql_fetch_assoc($result)) {
echo $row['prefixdata']."<------->";
echo $row['lastaccess']."<br/>"; ;
}
$query = sprintf("SELECT queried_key, lastaccess FROM url_query
WHERE user_key='%s'",
mysql_real_escape_string($uk));
// Perform Query
$result = mysql_query($query,$con);
while ($row = mysql_fetch_assoc($result)) {
echo $row['queried_key']."<------->";
echo $row['lastaccess']."<br/>"; ;
}
CleanUpDB();
}
function InsertVk($k,$uk){
$con=GetMyConnection();
$query = sprintf("insert into url_query(queried_key,user_key) values('%s','%s')",
mysql_real_escape_string($k),mysql_real_escape_string($uk));
$result = mysql_query($query,$con);
CleanUpDB();
}
if(isset($_GET['uk'])){
$k=addslashes($_GET['uk']);
if(strlen($k)==32){
QueryUk($k);
}
die;
}
if(isset($_GET['vk'])&& isset($_GET['k'])){
// vk 48e59e6d39edfa5174a493dfc2daac49 -> uk A26AD089D4B88BFEDFD06DF26165AC94
if ($_GET['vk']=="48e59e6d39edfa5174a493dfc2daac49"){
InsertVk($_GET['k'],"A26AD089D4B88BFEDFD06DF26165AC94");
}
die;
}
?>