HerzaJ commited on
Commit
6fc5530
·
verified ·
1 Parent(s): 71ed0f7

Update plugins/subdo.js

Browse files
Files changed (1) hide show
  1. 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 submitResponse = await fetch(`${TURNSTILE_SOLVER_URL}/turnstile`, {
6
- method: 'POST',
7
- headers: {
8
- 'Content-Type': 'application/json'
9
- },
10
- body: JSON.stringify({
11
- url: 'https://www.subdomainfinder.in',
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,