Cloudscraper-version.two
Node.js Module to bypass Cloudflare with cloudscraper and cloudscraper-version.two
Is the place you want to pentest using cloudflare? And you can't bypass it with cloudscraper. because it is dead now. but i was born
this little module is a module that extracts cloudflare's new protection.
There is a very simple explanation for cloudscraper not working anymore. it is no longer updated. cloudflare blocked the old methods. and it no longer works.
but with cloudscraper-version.two you will and will be able to achieve it.
Install
npm i cloudscraper-version.two
Saving the request
module as a dependency is compulsory.
# Pin the request version
npm install --save request
Here same cloudscraper page!! If you wish to enable support for older Node.js versions, you may install brotli. It is recommended but not required.
Usage
!!! This place has undergone a new update !!!
now it sends a get request request but shows the vulnerabilities on the website. In other words, by looking at the information here, you can write the bypass here in the future and you can reach your goal.
const cloudscraper = require('cloudscraper-version.two');
cloudscraper.getting('https://example.com');
just part of the output here
mizah@mizahx:~/Masaüstü/Source/real-ip-bulucu$ node index.js statusCode: 200 { status: 200, statusText: 'OK', headers: { age: '542862', 'cache-control': 'max-age=604800', 'content-type': 'text/html; charset=UTF-8', date: 'Sat, 05 Feb 2022 09:47:52 GMT', etag: '"3147526947+ident"', expires: 'Sat, 12 Feb 2022 09:47:52 GMT', 'last-modified': 'Thu, 17 Oct 2019 07:18:26 GMT', server: 'ECS (dcb/7F60)', vary: 'Accept-Encoding', 'x-cache': 'HIT', 'content-length': '1256', connection: 'close' }, config: { transitional: { silentJSONParsing: true, forcedJSONParsing: true, clarifyTimeoutError: false }, adapter: [Function: httpAdapter], transformRequest: [ [Function: transformRequest] ], transformResponse: [ [Function: transformResponse] ], timeout: 0, xsrfCookieName: 'XSRF-TOKEN', xsrfHeaderName: 'X-XSRF-TOKEN', maxContentLength: -1, maxBodyLength: -1, validateStatus: [Function: validateStatus], headers: { Accept: 'application/json, text/plain, */*', 'User-Agent': 'axios/0.25.0' }, method: 'get', url: 'https://example.com', data: undefined }, request: ClientRequest { _events: [Object: null prototype] { socket: [Function], abort: [Function], aborted: [Function], connect: [Function], error: [Function], timeout: [Function], prefinish: [Function: requestOnPrefinish] }, _eventsCount: 7, _maxListeners: undefined, output: [], outputEncodings: [], outputCallbacks: [], outputSize: 0, writable: true, _last: true, chunkedEncoding: false, shouldKeepAlive: false, useChunkedEncodingByDefault: false, sendDate: false, _removedConnection: false, _removedContLen: false, _removedTE: false, _contentLength: 0, _hasBody: true, _trailer: '', finished: true, _headerSent: true, socket: TLSSocket { _tlsOptions: [Object], _secureEstablished: true, _securePending: false, _newSessionPending: false, _controlReleased: true, _SNICallback: null, servername: 'example.com', alpnProtocol: false, authorized: true, authorizationError: null, encrypted: true, _events: [Object], _eventsCount: 8, connecting: false, _hadError: false, _handle: [TLSWrap], _parent: null, _host: 'example.com', _readableState: [ReadableState], readable: true, _maxListeners: undefined, _writableState: [WritableState], writable: false, allowHalfOpen: false, _sockname: null, _pendingData: null, _pendingEncoding: '', server: undefined, _server: null, ssl: [TLSWrap], _requestCert: true, _rejectUnauthorized: true, parser: null, _httpMessage: [Circular], [Symbol(res)]: [TLSWrap], [Symbol(asyncId)]: 6, [Symbol(lastWriteQueueSize)]: 0, [Symbol(timeout)]: null, [Symbol(kBytesRead)]: 0, [Symbol(kBytesWritten)]: 0, [Symbol(connect-options)]: [Object] },
And More
If the above has piqued your interest, and you want to get a view of the dashboard you're fascinated with, other than bypassing cloudflare, do the following things.
npm i fs
const cloudscraper = require('cloudscraper-version.two');
const fs = require('fs');
const webpage = cloudscraper.getting('https://example.com');
const write = () => {
return webpage;
};
var fileName=process.argv[2]
fs.writeFile('index.php', write(webpage), (err) => {
if(err) {
console.log('Maybe you writing false adress');
}
})
node application.js