Update plugins/subdo.js
Browse files- plugins/subdo.js +7 -10
plugins/subdo.js
CHANGED
|
@@ -2,15 +2,13 @@ const TURNSTILE_SOLVER_URL = 'https://herzaj-turnstile-solver.hf.space';
|
|
| 2 |
|
| 3 |
async function getTurnstileToken() {
|
| 4 |
try {
|
| 5 |
-
const
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
sitekey: '0x4AAAAAAAj7jyMV3Zv9ZMN-'
|
| 13 |
-
})
|
| 14 |
});
|
| 15 |
|
| 16 |
if (!submitResponse.ok) {
|
|
@@ -165,7 +163,6 @@ const handler = async (req, res) => {
|
|
| 165 |
const result = await subdo(domain);
|
| 166 |
|
| 167 |
res.json({
|
| 168 |
-
author: "Herza",
|
| 169 |
success: true,
|
| 170 |
data: {
|
| 171 |
domain: result.domain,
|
|
|
|
| 2 |
|
| 3 |
async function getTurnstileToken() {
|
| 4 |
try {
|
| 5 |
+
const params = new URLSearchParams({
|
| 6 |
+
url: 'https://www.subdomainfinder.in',
|
| 7 |
+
sitekey: '0x4AAAAAAAj7jyMV3Zv9ZMN-'
|
| 8 |
+
});
|
| 9 |
+
|
| 10 |
+
const submitResponse = await fetch(`${TURNSTILE_SOLVER_URL}/turnstile?${params}`, {
|
| 11 |
+
method: 'GET'
|
|
|
|
|
|
|
| 12 |
});
|
| 13 |
|
| 14 |
if (!submitResponse.ok) {
|
|
|
|
| 163 |
const result = await subdo(domain);
|
| 164 |
|
| 165 |
res.json({
|
|
|
|
| 166 |
success: true,
|
| 167 |
data: {
|
| 168 |
domain: result.domain,
|