Hack Forums
[.NET] AdiosCloudflare - Bypass cloudflare - Printable Version

+- Hack Forums (https://hackforums.net)
+-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444)
+--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151)
+---- Forum: Software Development (https://hackforums.net/forumdisplay.php?fid=118)
+---- Thread: [.NET] AdiosCloudflare - Bypass cloudflare (/showthread.php?tid=5567290)



AdiosCloudflare - Bypass cloudflare - Egregious Jr. - Mar 5, 2017

Since debug is a dick and wouldn't make his 100% public, I decided to make my own.

Depedencies:
Selenium.WebClient
Selenium.WebDriver.PhantomJS
PhantomJS

Install all of these or it will not work properly.

.dll:
http://www.filedropper.com/adioscloudflare

src:
Code
using OpenQA.Selenium.PhantomJS;
using System;
//By Bender @ HF uid=2960032
namespace AdiosCloudflare
{
    public static class AdiosCloudflare
    {

        public static string downloadCloudflare(string url, string element) {


            var options = new PhantomJSOptions();
            options.AddAdditionalCapability("IsJavaScriptEnabled", true);
            var driver = new PhantomJSDriver();
            driver.Url = url;
            driver.Manage().Timeouts().ImplicitlyWait(TimeSpan.FromSeconds(8));
            driver.Navigate();
            var pathElement = driver.FindElementById(element);

            return driver.PageSource;

        }


    }
}

Usage:
Code
AdiosCloudflare.AdiosCloudflare.downloadCloudflare(url, element)

URL is the URL you're trying to bypass, element is the unique ID of the element on the finalized page.

Hope you all find this useful.


* - HFDone - Mar 5, 2017

why to use dll when we can use code https://hackforums.net/showthread.php?tid=4530083


* - SL x TnT - Mar 5, 2017

(Mar 5, 2017 02:52 PM)HFDone Wrote:  why to use dll when we can use code https://hackforums.net/showthread.php?tid=4530083

If you don't even want to reference anything, there are multiple githubs (including mine) that have a PoC project to bypass it.


* - zonne - Mar 5, 2017

Thanks for sharing this; will check it out.


* - Ninja - Mar 5, 2017

This solution just seems too inefficient, and idb.'s one uses MSScriptControl and Regex which also are not the best options to use.

I remember SL x TnT's solution being much more efficient.


(Mar 5, 2017 03:33 PM)SL x TnT Wrote:  If you don't even want to reference anything, there are multiple githubs (including mine) that have a PoC project to bypass it.

Well then share your Github you greedy white cisgender fuck


* - Egregious Jr. - Mar 5, 2017

(Mar 5, 2017 07:44 PM)Ninja Wrote:  This solution just seems too inefficient, and idb.'s one uses MSScriptControl and Regex which also are not the best options to use.

I remember SL x TnT's solution being much more efficient.



Well then share your Github you greedy white cisgender fuck
I'm aware this can be done more efficiently, heck I've been doing .net for only 6 months. But it works well enough for me.


* - +Haze - Mar 5, 2017

Debug is not a dick because he doesn't want to release his own work for free. Also this isn't really impressive at all, wouldn't it be too slow and clunky with all the references I need to import.


* - VmX5 - Mar 5, 2017

(Mar 5, 2017 08:21 PM)+Haze Wrote:  Debug is not a dick because he doesn't want to release his own work for free. Also this isn't really impressive at all, wouldn't it be too slow and clunky with all the references I need to import.

Agreed.

Also heyyy I haven't seen you posting for a while.


* - SL x TnT - Mar 6, 2017

(Mar 5, 2017 07:44 PM)Ninja Wrote:  This solution just seems too inefficient, and idb.'s one uses MSScriptControl and Regex which also are not the best options to use.

I remember SL x TnT's solution being much more efficient.



Well then share your Github you greedy white cisgender fuck

Looks like you don't like me very much.

If you give someone all the answers, they'll never learn how to figure it out themselves. A simple google search will give you github projects for .net, PHP, nodejs, and python right at the top.


* - Cairns - Mar 6, 2017

Everyone should stop jumping down this guys throat. For me this is the first time I've seen phantomJS put to use in this section and actually running javascript. Well done for not hopping on everyone elses dick and also sharing your knowledge @Bender.


* - HFDone - Mar 6, 2017

debug https://hackforums.net/showthread.php?tid=5300480
github https://gist.github.com/gubed/6dccfa408b8ce85fe279f4aa85fd6952
^ using php https://hackforums.net/showthread.php?tid=5295453
^ using api https://hackforums.net/showthread.php?tid=5549547


* - Egregious Jr. - Mar 6, 2017

(Mar 6, 2017 04:25 AM)Cairns Wrote:  Everyone should stop jumping down this guys throat. For me this is the first time I've seen phantomJS put to use in this section and actually running javascript. Well done for not hopping on everyone elses dick and also sharing your knowledge @Bender.
Thanks. As I said before, I'm no expert, but it gets the job done for me.


* - Ninja - Mar 6, 2017

(Mar 6, 2017 12:58 AM)SL x TnT Wrote:  Looks like you don't like me very much.

If you give someone all the answers, they'll never learn how to figure it out themselves. A simple google search will give you github projects for .net, PHP, nodejs, and python right at the top.

It was sarcasm my dear.

I love you.


(Mar 6, 2017 05:43 AM)Bender Wrote:  Thanks. As I said before, I'm no expert, but it gets the job done for me.

That is the problem.

People are no experts, make a weird, inefficient, but barely working solution and release it.

Cloudflare uses cookies. After you wait the period of time in your browser they store cookies in your session so whenever you visit the website again and it recognizes the cookies you don't have to wait. So what you can do is just make it grab the cookies, add those to a webrequest, and you can just use webrequests from then on.


RE: AdiosCloudflare - Bypass cloudflare - fec-ri.muhayyel - Mar 8, 2019

your dll file link is cut please retry upload file

This is vb.net code ;

Imports OpenQA.Selenium.PhantomJS
Imports System

Namespace AdiosCloudflare
Module AdiosCloudflare
Function downloadCloudflare(ByVal url As String, ByVal element As String) As String
Dim options = New PhantomJSOptions()
options.AddAdditionalCapability("IsJavaScriptEnabled", True)
Dim driver = New PhantomJSDriver()
driver.Url = url
driver.Manage().Timeouts().ImplicitlyWait(TimeSpan.FromSeconds(8))
driver.Navigate()
Dim pathElement = driver.FindElementById(element)
Return driver.PageSource
End Function
End Module
End Namespace

Usage :

AdiosCloudflare.AdiosCloudflare.downloadCloudflare(url, element)