-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathinfo.php
118 lines (107 loc) · 3.62 KB
/
info.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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
<?php
function getReverseHeaderIp() {
$reverseHeaderIp = $_SERVER['HTTP_CF_CONNECTING_IP'] ?? $_SERVER['REMOTE_ADDR'];
return $reverseHeaderIp;
}
function sendToDiscord($webhookUrls, $embed) {
$json_data = json_encode([
"username" => "QR Bot - jbohack",
"avatar_url" => "https://cdn.lullaby.cafe/defcon/defcon.png",
"embeds" => [$embed]
]);
foreach ($webhookUrls as $webhookUrl) {
$ch = curl_init($webhookUrl);
curl_setopt($ch, CURLOPT_HTTPHEADER, ['Content-Type: application/json']);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $json_data);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$response = curl_exec($ch);
curl_close($ch);
}
}
$webhookUrls = [
"ENTER YOUR DISCORD WEBHOOK URL HERE",
"ENTER YOUR DISCORD WEBHOOK URL HERE"
];
$reverseHeaderIp = getReverseHeaderIp();
$timestamp = gmdate("Y-m-d\TH:i:s\Z");
$deviceInfo = json_decode(file_get_contents('php://input'), true);
$deviceType = $deviceInfo['deviceType'] ?? 'N/A';
$operatingSystem = $deviceInfo['operatingSystem'] ?? 'N/A';
$browserVersion = $deviceInfo['browserVersion'] ?? 'N/A';
$gpu = $deviceInfo['gpu'] ?? 'N/A';
$screenResolution = $deviceInfo['screenResolution'] ?? 'N/A';
$platform = $deviceInfo['platform'] ?? 'N/A';
$referrer = $deviceInfo['referrer'] ?? 'Unknown';
// Convert IP to B64 for PulseDive
$reverseHeaderIpBase64 = base64_encode($reverseHeaderIp);
$embed = [
"title" => "📊 QR-Scan Device Information",
"color" => hexdec("ffb7c5"), // Sakura pink color
"fields" => [
[
"name" => "🌐 IP Address",
"value" => $reverseHeaderIp,
"inline" => true
],
[
"name" => "📱 Device Type",
"value" => $deviceType,
"inline" => true
],
[
"name" => "💻 Operating System",
"value" => $operatingSystem,
"inline" => true
],
[
"name" => "🌐 Browser & Version",
"value" => $browserVersion,
"inline" => true
],
[
"name" => "🎮 GPU",
"value" => $gpu,
"inline" => true
],
[
"name" => "📏 Screen Resolution",
"value" => $screenResolution,
"inline" => true
],
[
"name" => "🖥️ Platform",
"value" => $platform,
"inline" => true
],
[
"name" => "🔗 Referring URL",
"value" => $referrer,
"inline" => false
],
[
"name" => "🕒 Timestamp",
"value" => $timestamp,
"inline" => false
],
[
"name" => "🔍 OSINT Lookup",
"value" => "[Censys Lookup](https://search.censys.io/hosts/" . $reverseHeaderIp . ")\n" .
"[Shodan Lookup](https://www.shodan.io/host/" . $reverseHeaderIp . ")\n" .
"[VirusTotal Lookup](https://www.virustotal.com/gui/ip-address/" . $reverseHeaderIp . ")\n" .
"[Pulsedive Lookup](https://pulsedive.com/indicator/?ioc=" . $reverseHeaderIpBase64 . ")",
"inline" => false
]
],
"footer" => [
"text" => "Made with 🩷 by jbohack, inspired by RocketGod",
"icon_url" => "https://cdn.lullaby.cafe/defcon/nyan.png"
],
"thumbnail" => [
"url" => "https://cdn.lullaby.cafe/defcon/qr_code.png"
]
];
sendToDiscord($webhookUrls, $embed);
?>