-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.php
416 lines (349 loc) · 11.5 KB
/
index.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
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
<html>
<body>
<title>KatFaucet</title>
<style>
body {
font-family: 'Arial', sans-serif;
margin: 0;
padding: 0;
background-color: #f7f7f7;
color: #333;
text-align: center;
}
body.dark-mode {
background-color: #1c1c1c;
color: #f1f1f1;
}
header {
background-color: #ffcc00;
padding: 10px;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}
header h1 {
margin: 0;
font-size: 2.5rem;
color: #333;
}
body.dark-mode header {
background-color: #ffb300;
}
form {
background-color: #fff;
padding: 20px;
margin: 20px auto;
width: 90%;
max-width: 500px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
border-radius: 8px;
}
body.dark-mode form {
background-color: #2e2e2e;
}
form label {
display: block;
font-size: 1rem;
margin-bottom: 10px;
text-align: left;
}
form input[type="text"],
form input[type="submit"] {
width: calc(100% - 20px);
padding: 10px;
margin-bottom: 15px;
border: 1px solid #ccc;
border-radius: 5px;
font-size: 1rem;
}
form input[type="submit"] {
background-color: #ffcc00;
color: #333;
border: none;
cursor: pointer;
font-weight: bold;
}
form input[type="submit"]:hover {
background-color: #ffaa00;
}
body.dark-mode form input[type="text"],
body.dark-mode form input[type="submit"] {
background-color: #444;
color: white;
}
a {
color: #ffcc00;
font-weight: bold;
text-decoration: none;
}
body.dark-mode a {
color: #ff9900;
}
img {
width: 100%;
max-width: 400px;
margin: 10px;
border-radius: 10px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
footer {
background-color: #ffcc00;
padding: 10px;
color: #333;
position: fixed;
width: 100%;
bottom: 0;
left: 0;
}
body.dark-mode footer {
background-color: #ffb300;
color: #fff;
}
</style>
<script>
// Function to apply dark mode based on the user's preferred color scheme
function applyDarkMode() {
var body = document.body;
var prefersDarkMode = window.matchMedia("(prefers-color-scheme: dark)").matches;
if (prefersDarkMode) {
body.classList.add("dark-mode");
} else {
body.classList.remove("dark-mode");
}
}
// Call the applyDarkMode function when the window loads
window.addEventListener("load", applyDarkMode);
// Call the applyDarkMode function when the user changes their preferred color scheme
window.matchMedia("(prefers-color-scheme: dark)").addListener(applyDarkMode);
</script>
<header>
<h1>KatFaucet 😻</h1>
</header>
<head>
<meta name="keywords" content="katfaucet, kat, Duinocoin, DUCO, Duinocoin faucet, crypto faucet, DUCO faucet, Free Duinocoin, Beginner crypto, Earn free crypto, Exo-Friendly crypto, Free crypto currency, Gamecat999, Microcontroller Mining, Free, instant faucet">
<script src="https://www.google.com/recaptcha/api.js" async defer></script>
<meta name="description" content="Get Free 0.01-5 free duinocoin once a day">
</head>
<h2>Enter your username below to get 0.01-5 free Duinocoin Once a Day!</h2>
<form action="" method="post" onsubmit="return validateForm()">
<label for="username">Enter your username:</label>
<input type="text" id="username" name="username" required>
<div class="g-recaptcha" data-sitekey="6LeRIZcqAAAAAJh78NwPtCdpqPbOLGgiVelnL4-B"></div>
<input type="submit" value="Get DUCOS">
</form>
<script>
function validateForm() {
var response = grecaptcha.getResponse();
if (!response) {
alert('Dont be a Evil Bot. Please complete the Captcha.');
return false;
}
return true;
}
</script>
<a href="https://discord.gg/HUbHqUQUD2">Click this to join our Discord Server!<br></a>
<br>
<a href="magi.php">Coin Magi Faucet</a>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>
<body>
<h3>Faucet Balance</h3>
<p id="faucet balance">
<?php
$url = 'https://server.duinocoin.com/balances/katfaucet';
$json = @file_get_contents($url);
if ($json === FALSE) {
echo 'Error fetching balance';
} else {
$data = json_decode($json, true);
if (json_last_error() !== JSON_ERROR_NONE) {
echo 'Error decoding JSON: ' . json_last_error_msg();
} else {
if (isset($data['result']['balance'])) {
$balance = $data['result']['balance'];
echo "Balance: $balance DUCO";
} else {
echo 'Error: Balance not found in the response';
}
}
}
?>
</p>
</body>
</html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Click Limiter</title>
<script>
document.addEventListener('DOMContentLoaded', (event) => {
let lastClickTime = 0;
document.addEventListener('click', (e) => {
const currentTime = new Date().getTime();
if (currentTime - lastClickTime < 1000) {
e.stopImmediatePropagation();
e.preventDefault();
} else {
lastClickTime = currentTime;
}
}, true);
});
</script>
</head>
</html>
</body>
</html>
<?php
// File path to store the cooldown data
$cooldownFile = 'cooldown.txt';
$blacklistFile = 'blacklist.txt';
// Initialize the cooldown data array
$cooldownData = array();
$cooldownTime = 86400; // 1 day in seconds
$amount = mt_rand(1, 500) / 100;
// Read the cooldown data from the file if it exists
if (file_exists($cooldownFile)) {
$cooldownData = json_decode(file_get_contents($cooldownFile), true);
} else {
// Create the cooldown file if it doesn't exist
file_put_contents($cooldownFile, json_encode($cooldownData));
}
$blacklistData = array();
// Read the blacklist data from the file if it exists
if (file_exists($blacklistFile)) {
$blacklistData = file($blacklistFile, FILE_IGNORE_NEW_LINES);
} else {
// Create the blacklist file if it doesn't exist
file_put_contents($blacklistFile, implode("\n", $blacklistData));
}
if ($_SERVER["REQUEST_METHOD"] == "POST") {
$username = "yourusername here";
$recipient = $_POST["username"];
$password = "your password here";
$memo = "KatFaucet";
$currentTime = time(); // Get the current time
$ipAddress = $_SERVER['REMOTE_ADDR']; // Get the IP address of the user
// Check if the cooldown data array is not null
if ($cooldownData !== null) {
// Check if the recipient's username is in the cooldown list
if (array_key_exists($recipient, $cooldownData) && $currentTime - $cooldownData[$recipient] < $cooldownTime) {
$remainingTime = $cooldownTime - ($currentTime - $cooldownData[$recipient]);
// Calculate hours, minutes, and seconds
$hours = floor($remainingTime / 3600);
$minutes = floor(($remainingTime % 3600) / 60);
$seconds = $remainingTime % 60;
// Format the output string
// Format the output string with words "hours", "minutes", and "seconds"
$formattedTime = $hours . " hours, " . $minutes . " minutes, and " . $seconds . " seconds";
echo "Be more Patient. Wait for " . $formattedTime . " before Trying again. Find a Kat to pet while you wait.";
exit;
}
}
// Check if the recipient's username is in the blacklist
if (in_array($recipient, $blacklistData)) {
echo "Sorry, You are not allowed to use this faucet. Go pet a kat instead.";
exit;
}
// Your existing code for sending transaction request...
$url = "https://server.duinocoin.com/transaction/?username=$username&password=$password&recipient=$recipient&amount=$amount&memo=$memo";
$response = file_get_contents($url);
if ($response === false) {
echo "Error: Failed to send transaction request.";
} else {
$transactionData = json_decode($response, true);
if (isset($transactionData['success']) && $transactionData['success']) {
echo "Transaction successful. Sent ". $amount . " to " . $recipient . ". Transaction id ",
// Update the last submit time in the cooldown data for the recipient's username
$cooldownData[$recipient] = $currentTime;
// Save the updated cooldown data to the file
file_put_contents($cooldownFile, json_encode($cooldownData));
} else {
echo "Error: Transaction failed. Reason: " . (isset($transactionData['error']) ? $transactionData['error'] : 'Unknown. Report this to kat on discord pls!');
}
}
}
?>
<p>Mine to help support The faucet!</p>
<head>
<style>
#loadIframeButton {
background-color: green;
color: white;
border: none;
padding: 10px 20px;
cursor: pointer;
}
#disableButton {
background-color: red;
color: white;
border: none;
padding: 10px 20px;
cursor: pointer;
}
</style>
</head>
<body>
<button id="loadIframeButton">Start Mining</button>
<button id="disableButton">Stop Mining</button>
<div id="iframeContainer"></div>
<script>
var iframeLoaded = false;
document.getElementById('loadIframeButton').addEventListener('click', function() {
if (!iframeLoaded) {
var iframe = document.createElement('iframe');
iframe.src = 'https://server.duinocoin.com/webminer.html?username=katfaucet&threads=1&rigid=Katfaucet+Support&keyinput=None'; // Replace with your desired URL
iframe.style.width = '100%';
iframe.style.height = '400px'; // Adjust the height as needed
document.getElementById('iframeContainer').appendChild(iframe);
iframeLoaded = true;
// Disable the "Load Iframe" button
document.getElementById('loadIframeButton').disabled = true;
}
});
document.getElementById('disableButton').addEventListener('click', function() {
// Remove the iframe and re-enable the "Load Iframe" button
document.getElementById('iframeContainer').innerHTML = '';
iframeLoaded = false;
document.getElementById('loadIframeButton').disabled = false;
});
</script>
<p>To leave a comment either email gamecat999 on discord, or email [email protected]!</p>
<br>
<br>
</body>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<footer>
<p>If you want to donate, send ducos to katfaucet!</p>
</footer>
</body>
<style>
.bottom-left-corner {
position: fixed;
bottom: 20px;
left: 20px;
background-color: #f7f7f7;
padding: 10px;
border-radius: 5px;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}
body.dark-mode .bottom-left-corner {
background-color: #2e2e2e;
color: #f1f1f1;
}
</style>
<div class="bottom-left-corner">
<p>© 2024 katfaucet</p>
</div>
</html>