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.
Be Nice For Once 15hVUVz7xA4kazHdk2BuErENGCskVwjYXP
Mar 5, 2017 03:33 PM
(This post was last modified: Mar 5, 2017 04:16 PM by SL x TnT.)
(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.
Thanks for sharing this; will check it out.
DO NOT DEAL WITH THIS MEMBER
Mar 5, 2017 07:44 PM
(This post was last modified: Mar 5, 2017 07:44 PM by Ninja.)
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
(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.
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.
(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.
(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.
Mar 6, 2017 04:25 AM
(This post was last modified: Mar 6, 2017 04:25 AM by Cairns.)
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.
Be Nice For Once 15hVUVz7xA4kazHdk2BuErENGCskVwjYXP
(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.
DO NOT DEAL WITH THIS MEMBER
Mar 6, 2017 08:30 AM
(This post was last modified: Mar 6, 2017 08:32 AM by Ninja.)
(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)Egregious Jr. 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.
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)
|