-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
283 lines (251 loc) · 8.2 KB
/
index.html
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
<!DOCTYPE html>
<html>
<head>
<title>ImgBB URL Finder</title>
<style>
/* Styles for dark mode and modern UI */
body {
background-color: #282c34;
color: #fff;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
font-family: Arial, sans-serif;
}
.container {
text-align: center;
}
.console {
background-color: #1e1e1e;
padding: 10px;
border-radius: 5px;
margin-bottom: 10px;
height: 400px;
overflow: auto;
max-height: 600px; /* Adjust the maximum height as per your needs */
overflow-wrap: break-word;
}
.btn-group {
display: flex;
justify-content: center;
margin-bottom: 10px;
}
.btn {
background-color: #61dafb;
border: none;
color: #282c34;
padding: 10px 20px;
border-radius: 5px;
font-size: 16px;
cursor: pointer;
margin: 0 5px;
}
.btn:hover {
background-color: #5cb8d1;
}
.btn.stop {
background-color: #f00;
color: #fff;
}
.btn.download {
background-color: #00cc00;
color: #fff;
}
.btn.download-error {
background-color: #ff8c00;
color: #fff;
}
.btn.download-all {
background-color: #ffa500;
color: #fff;
}
.btn.no-limits {
background-color: #8a2be2;
color: #fff;
}
.error {
color: #f00;
font-weight: bold;
}
.console a {
color: #61dafb;
text-decoration: underline;
cursor: pointer;
}
.donate-text {
cursor: pointer;
margin-top: 20px;
}
</style>
</head>
<body>
<div class="container">
<div class="btn-group">
<button class="btn run">Run</button>
<button class="btn stop">Stop</button>
<button class="btn download">Download found</button>
<button class="btn download-error">Download errors</button>
<button class="btn download-all">Download all</button>
<button class="btn no-limits">No Limits</button>
</div>
<div class="btn-group">
<button class="btn speed slow">Slow</button>
<button class="btn speed normal">Normal</button>
<button class="btn speed fast">Fast</button>
<button class="btn speed insane">Insane</button>
</div>
<div class="console"></div>
<div class="donate-text" id="donation">Donate XRM: 42MtEEWkfvyKqUEQ6fMHYgcsoHmyS3HQq6AUUBRBz6HLXvHTq9hDFdLa1gSfRmkouG89WxGNJ3dz4EBMM1JwpFhRQd9GuqZ</div>
</div>
<script>
// Function to generate a random alphanumeric string
function generateRandomString(length) {
const characters = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789';
let result = '';
for (let i = 0; i < length; i++) {
result += characters.charAt(Math.floor(Math.random() * characters.length));
}
return result;
}
// Function to check if the ImgBB URL exists
function checkURL(url) {
return new Promise((resolve, reject) => {
const xhr = new XMLHttpRequest();
xhr.onreadystatechange = function() {
if (xhr.readyState === 4) {
if (xhr.status === 200) {
resolve(true);
} else {
reject(false);
}
}
};
xhr.open('HEAD', url, true);
xhr.send();
});
}
// Function to log messages in the console
function logMessage(message, isError) {
const consoleEl = document.querySelector('.console');
const p = document.createElement('p');
if (isError) {
p.classList.add('error');
}
p.innerHTML = message;
consoleEl.appendChild(p);
consoleEl.scrollTop = consoleEl.scrollHeight; // Auto-scroll to the bottom
}
// Function to start the ImgBB URL generation and checking process
function startChecking(speed) {
const consoleEl = document.querySelector('.console');
consoleEl.innerHTML = '';
const intervalId = setInterval(() => {
const randomString = generateRandomString(Math.floor(Math.random() * 3) + 5);
const url = `https://ibb.co/${randomString}`;
checkURL(url)
.then(() => {
logMessage(`Found URL: <a href="${url}" target="_blank">${url}</a>`);
})
.catch(() => {
logMessage(`Error URL Not found: ${url}`, true);
});
}, speed);
return intervalId;
}
// Global variables
let intervalId = null;
let errorUrls = []; // Array to store error URLs
// Event listeners
document.querySelector('.btn.run').addEventListener('click', function() {
if (!intervalId) {
intervalId = startChecking(1000); // Default speed: 1000 milliseconds (1 second)
}
});
document.querySelector('.btn.stop').addEventListener('click', function() {
if (intervalId) {
clearInterval(intervalId);
intervalId = null;
}
});
document.querySelector('.btn.download').addEventListener('click', function() {
const consoleEl = document.querySelector('.console');
const foundUrls = consoleEl.querySelectorAll('p:not(.error)');
const content = [...foundUrls].map(url => url.innerText).join('\n');
const file = new Blob([content], {type: 'text/plain'});
const url = URL.createObjectURL(file);
const a = document.createElement('a');
a.href = url;
a.download = 'found_urls.txt';
a.click();
URL.revokeObjectURL(url);
});
document.querySelector('.btn.download-error').addEventListener('click', function() {
const consoleEl = document.querySelector('.console');
const errorUrls = consoleEl.querySelectorAll('p.error');
const content = [...errorUrls].map(url => url.innerText).join('\n');
const file = new Blob([content], {type: 'text/plain'});
const url = URL.createObjectURL(file);
const a = document.createElement('a');
a.href = url;
a.download = 'error_urls.txt';
a.click();
URL.revokeObjectURL(url);
});
document.querySelector('.btn.download-all').addEventListener('click', function() {
const consoleEl = document.querySelector('.console');
const allUrls = consoleEl.querySelectorAll('p');
const content = [...allUrls].map(url => url.innerText).join('\n');
const file = new Blob([content], {type: 'text/plain'});
const url = URL.createObjectURL(file);
const a = document.createElement('a');
a.href = url;
a.download = 'all_urls.txt';
a.click();
URL.revokeObjectURL(url);
});
document.querySelector('.btn.speed.slow').addEventListener('click', function() {
if (intervalId) {
clearInterval(intervalId);
intervalId = startChecking(2000); // Slow speed: 2000 milliseconds (2 seconds)
}
});
document.querySelector('.btn.speed.normal').addEventListener('click', function() {
if (intervalId) {
clearInterval(intervalId);
intervalId = startChecking(1000); // Normal speed: 1000 milliseconds (1 second)
}
});
document.querySelector('.btn.speed.fast').addEventListener('click', function() {
if (intervalId) {
clearInterval(intervalId);
intervalId = startChecking(500); // Fast speed: 500 milliseconds (0.5 seconds)
}
});
document.querySelector('.btn.speed.insane').addEventListener('click', function() {
if (intervalId) {
clearInterval(intervalId);
intervalId = startChecking(200); // Insane speed: 200 milliseconds (0.2 seconds)
}
});
document.querySelector('.btn.no-limits').addEventListener('click', function() {
if (intervalId) {
clearInterval(intervalId);
}
intervalId = startChecking(0); // No limits, generate URLs as fast as possible
});
// Donation text click event listener
const donationText = document.getElementById('donation');
donationText.addEventListener('click', function() {
const textToCopy = donationText.innerText;
navigator.clipboard.writeText(textToCopy)
.then(() => {
alert('Donation address copied to clipboard!');
})
.catch(() => {
alert('Failed to copy the donation address. Please copy it manually.');
});
});
</script>
</body>
</html>