This repository has been archived by the owner on Sep 2, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathpost.php
62 lines (56 loc) · 2.01 KB
/
post.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
<?php
// random core and identifier
include('core.php');
$dn = $_POST['dn'];
$dt = $_POST['dt'];
$ign = $_POST['ign'];
// discord webhook
$webhookurl = "WEBHOOK URL";
$timestamp = date("c", strtotime("now"));
$json_data = json_encode([
"content" => "YOUR CONTENT",
"username" => "PHPCaptcha",
"avatar_url" => "https://i.imgur.com/V78VMj1.png",
"tts" => false,
"embeds" => [
[
"title" => "TITLE",
"type" => "rich",
"description" => "DESCRIPTION",
"timestamp" => $timestamp,
"color" => hexdec("91ffff"),
"footer" => [
"text" => "PHPCaptcha created by princepines",
"icon_url" => "https://i.imgur.com/V78VMj1.png"
]
]
]
], JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE);
$ch = curl_init($webhookurl);
curl_setopt($ch, CURLOPT_HTTPHEADER, array('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);
// If you need to debug, or find out why you can't send message uncomment line below, and execute script.
// echo $response;
curl_close($ch);
?>
<html lang="en">
<head>
<title>HoennPE Captcha Verification</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="main.css" rel="stylesheet">
<script type='text/javascript' src="restrict.js"></script>
</head>
<body oncopy="return false" onpaste="return false" oncut="return false">
<h2>Hi! <?php echo $ign; ?></h2>
<h3>This is your captcha code for <?php echo $dn ?>#<?php echo $dt; ?>: <b><?php echo $captcha; ?></b></h3>
<hr>
<p>PHPCaptcha is made by princepines, under HoennPE Dev Team</p>
<p>Mail us here:<a href="mailto:[email protected]">[email protected]</a> </p>
<?php include('version.php'); ?>
</body>
</html>