FuckAV - Форум о крипторах

Анонимный антивирусный сканер VPN-сервис
[Copi]Team DDoS Service

SEO статьи - блог от создателя FuckAV | KOROVKA.so | Качественный VPN Service MultiVPN - PPTP/OpenVPN/DoubleVPN

Реклама на форуме | Помощь форуму | Аварийный блог

Наш Jabber-сервер расположен по адресу fuckav.in. Добро пожаловать!!!

Вернуться  

Для того, чтобы ответить в теме, необходимо зарегистрироваться.
 
Опции темы Опции просмотра
Prev Предыдущее сообщение   Следующее сообщение Next
Старый 2 недель(и) назад   #1
carlssson

Windows v.3.0
 
Аватар для carlssson

Последняя активность:
11 час(ов) назад
Регистрация: 20.09.2013
Сообщений: 31
Поблагодарили всего: 17
за это сообщение: 1
По умолчанию cludflare resolver

PHP код:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
       <title>Cloudflare Resolver</title>
     
     
       <style type="text/css">
       
          body
          {
             color: #F60;
             text-shadow: 2px 1px #333;
             background-color: #000;
             font-family: Arial, Helvetica, sans-serif;
          }
         
          input
          {
             font-family: Arial, Helvetica, sans-serif;
          }
         
          .Button
          {
             padding: 5px 10px;
             background: #333;
             border: solid #101010 2px;
             color: #F60;
             cursor: pointer;
             font-weight: bold;
             border-radius: 5px;
             -moz-border-radius: 5px;
             -webkit-border-radius: 5px;
             text-shadow: 1px 1px #000;
          }
         
          .Input
          {
             border: solid #101010 1px;
             color: white;
             font-weight: bold;
             padding: 3px;
             background-color: #252525;
          }
        </style>
    </head>
    <body>
    <div align="center">
    <pre>
    _________ .__                   .___ _____.__                         __________                    .__                    
    \_   ___ \|  |   ____  __ __  __| _// ____\  | _____ _______   ____   \______   \ ____   __________ |  |___  __ ___________
    /    \  \/|  |  /  _ \|  |  \/ __ |\   __\|  | \__  \\_  __ \_/ __ \   |       _// __ \ /  ___/  _ \|  |\  \/ // __ \_  __ \
    \     \___|  |_(  <_> )  |  / /_/ | |  |  |  |__/ __ \|  | \/\  ___/   |    |   \  ___/ \___ (  <_> )  |_\   /\  ___/|  | \/
     \______  /____/\____/|____/\____ | |__|  |____(____  /__|    \___  >  |____|_  /\___  >____  >____/|____/\_/  \___  >__|  
            \/                       \/                 \/            \/          \/     \/     \/                     \/      
                                                                                           
    </pre>
    <form method="POST" action="">
    Enter URL :
    <input type="text" name="url" class="Input" value="<?php if(isset($_POST***91;'url'***93;)){ echo htmlentities($_POST***91;'url'***93;); } else { echo 'http://example.com';}?>" />
    <input type="submit" name="submit" class="Button" value="Resolve" />
    </form>
    <>
    <div align="left">
    <?php
     
     
    
//Cloudflare Resolver 
    //
     
     
    
class Cloudflareresolve
    
{
       private 
$arr = array(  'mail.',
                             
'direct.',
                             
'direct-connect.',
                             
'cpanel.',
                             
'ftp.',
                             
'forum.',
                             
'blog.',
                             
'm.',
                             
'dev.',
                             
'webmail.',
                             
'record.',
                             
'ssl.',
                             
'dns.',
                             
'help.',
                             
'www.');
       
       private function 
is_valid($url)
       {
          if(
filter_var($urlFILTER_VALIDATE_URL))
              return 
true;
          return 
false;
       }
       
       private function 
is_ip($url)
       {
          if(
filter_var($urlFILTER_VALIDATE_IP))
              return 
true;
          return 
false;
       }
       
       private function 
detect_cloudflare($url)
       {
          
$headers = @get_headers($url);
          if(
strstr($headers***91;1***93;,"cloudflare"))
              return 
true;
          return 
false;
       }
       
       private function 
getip($url)
       {
          return 
gethostbyname($url);
       }
       
       public function 
resolve($url)
       {
          if(!
$this->is_valid($url))
          {
              echo 
'<span style="color: #F60;">The entered URL is not a vaild URL</span>';
             exit();
          }
          if(!
$this->detect_cloudflare($url))
          {
          
$urll parse_url($url);
          
$url $urll***91;'host'***93;;
          
$ip $this->getip($url);
             echo 
'<span style="color: #F60;">No cloudflare detected<br /><br />';
             echo 
'IP of '.htmlentities($url).' is ';
          if(
$this->is_ip($ip))
          {
              echo 
$ip.'</span>';
          }
          else
          {
              echo 
'N/A</span>';
          }
             exit();
          }
          echo 
'<span style="color: #F60;">Cloudflare detected! Trying to resolve<br /><br /></span>';
            
$url_p parse_url($url);
          
$url_h $url_p***91;'host'***93;;
          if(
strstr($url_h,'www.'))
          {
             
$temp explode('www.',$url_h);
             
$url_h $temp***91;1***93;;
          }
          foreach(
$this->arr as $val)
          {
             
$check_url $val.$url_h;
             echo 
'<span style="color: #F60;">IP for : '.htmlentities($check_url).' is : ';
             
$ip $this->getip($check_url);
             if(
$this->is_ip($ip))
             {
                 echo 
$ip;
             }
             else
             {
                 echo 
'N/A';
             }
             echo 
'<br /></span>';
          }
       }
    }
     
     
    if(isset(
$_POST***91;'url'***93;,$_POST***91;'submit'***93;))
    {
       
$obj = new Cloudflareresolve();
       
$obj->resolve($_POST***91;'url'***93;);
    }
    
?>
    <>
    </body>
    </html>
carlssson вне форума  
Сказали спасибо:
POCT (2 недель(и) назад)
Для того, чтобы ответить в теме, необходимо зарегистрироваться.

Метки
cludflare, resolver, ____, _____, ______


Здесь присутствуют: 1 (пользователей: 0 , гостей: 1)
 
Опции темы
Опции просмотра

Ваши права в разделе
Вы не можете создавать новые темы
Вы не можете отвечать в темах
Вы не можете прикреплять вложения
Вы не можете редактировать свои сообщения

BB коды Вкл.
Смайлы Вкл.
[IMG] код Вкл.
HTML код Выкл.

Быстрый переход

Часовой пояс GMT +3, время: 10:50.



Powered by vBulletin® Copyright ©2000 - 2014, Jelsoft Enterprises Ltd. Перевод: zCarot
Други: SEO блог Deymos'a| ProLogic.Su| DServers.ru| Форум веб-мастеров