[Tokens] Update tokens
This commit is contained in:
@@ -339,7 +339,6 @@ export default class Client {
|
||||
'x-hq-client': 'Android/1.33.0',
|
||||
},
|
||||
json: { method: 'sms', phone },
|
||||
proxy: `${proxy.protocol}://${proxy.user}-${Math.floor(Math.random() * 1000)}:${proxy.pass}@${proxy.host}`,
|
||||
});
|
||||
const { verificationId, error } = body;
|
||||
if (error) throw new Error(`Error while getting verification id: ${error}`);
|
||||
|
||||
60
src/utils/proxygenerator.js
Normal file
60
src/utils/proxygenerator.js
Normal file
@@ -0,0 +1,60 @@
|
||||
import request from 'request';
|
||||
import { promisify } from 'util';
|
||||
|
||||
const req = promisify(request).defaults({ json: true });
|
||||
|
||||
const url = 'https://api.getproxylist.com/proxy';
|
||||
const url2 = 'https://gimmeproxy.com/api/getProxy?protocol=http';
|
||||
|
||||
// eslint-disable-next-line import/prefer-default-export
|
||||
export const bruh = async () => {
|
||||
const proxies1 = [];
|
||||
const proxies2 = [];
|
||||
|
||||
const getProxy = async (proxy) => {
|
||||
const { body } = await req(url, {
|
||||
proxy,
|
||||
});
|
||||
const { ip, port, protocol } = body;
|
||||
|
||||
const proxyUrl = `${protocol}://${ip}:${port}`;
|
||||
|
||||
if (ip) proxies1.push(proxyUrl);
|
||||
|
||||
console.log(proxyUrl);
|
||||
|
||||
return proxyUrl;
|
||||
};
|
||||
|
||||
const gimmeProxy = async (proxy) => {
|
||||
const { body } = await req(url, {
|
||||
proxy,
|
||||
});
|
||||
const { curl } = body;
|
||||
|
||||
if (curl) proxies1.push(curl);
|
||||
|
||||
console.log(curl);
|
||||
|
||||
return curl;
|
||||
};
|
||||
|
||||
let res = true;
|
||||
|
||||
while (res) {
|
||||
const url = await getProxy();
|
||||
if (url.includes('undefined')) res = false;
|
||||
}
|
||||
|
||||
console.log('done with first proxies');
|
||||
|
||||
proxies1.forEach((p) => {
|
||||
for (let i = 0; i < 10; i += 1) {
|
||||
gimmeProxy(p);
|
||||
}
|
||||
});
|
||||
|
||||
console.log(proxies2);
|
||||
};
|
||||
|
||||
bruh();
|
||||
1146
tokens/bots.json
1146
tokens/bots.json
File diff suppressed because it is too large
Load Diff
1017
tokens/bots2.json
Normal file
1017
tokens/bots2.json
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user