[Tokens] Update tokens

This commit is contained in:
vilP1L
2019-11-11 16:54:41 -05:00
parent 3972e5fbcd
commit c7ee430511
4 changed files with 1225 additions and 999 deletions

View File

@@ -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}`);

View 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();

File diff suppressed because it is too large Load Diff

1017
tokens/bots2.json Normal file

File diff suppressed because it is too large Load Diff