1. Content Hidden For Guests in a Forum! You Must Register To See The Hidden Data Contained Here! 

    " SIGN UP NOW! "
    Dismiss Notice
  2. Hello,Now we are allowed to accept new user registration. [ Support :[email protected] ] Did you forget your password? Please contact with our support mail.

    Dismiss Notice
Dismiss Notice
Do Not Try To Register Using Temp Mail.! We Will Ban Your IP Permanently!
^Spam Killer Staff

[PHP] CloudFlare Resolver

Discussion in 'Networking, Routers, Switches, and Firewalls' started by CodeCracker, Dec 24, 2017.

Leaked forums
  1. CodeCracker

    CodeCracker - Elite Member -
    Staff Member - Elite - [Pro] Donor

    Joined:
    Sep 9, 2017
    Messages:
    21
    Likes Received:
    33
    Here is PHP script to reslove ip from CouldFlare protected sites!

    PHP:
    <?php

    /*
     * getCF.php
     * I got tired of looking up the DNS records of these various hosts
     * to find the real IP of a CloudFlare protected Server.
     * www.bigkesh.com
     * orgy[at]bigkesh[dot]com
     * Usage: php getCF.php domain.com
     * Usage2: www.yoursite.com/getCF.php?find=domain.com
     */

    if (!isset($argv[1]) && !isset($_GET['find']))
    {
        die(
    "Argument needs to be a valid hostname.\n");
    }

    $lookupArr = array("mail.""direct.""direct-connect.""cpanel.""ftp.");

    foreach (
    $lookupArr as $lookupKey)
    {

        if (isset(
    $_GET['find']))
        {
            
    $newline "<br />";
            
    $lookupHost $lookupKey $_GET['find'];
        }
        else
        {
            
    $newline "\n";
            
    $lookupHost $lookupKey $argv[1];
        }

        
    $foundHost gethostbyname($lookupHost);

        if (
    $foundHost == $lookupHost)
        {
            echo 
    "{$lookupHost} had no DNS record.{$newline}";
        }
        else
        {
            echo 
    "{$lookupHost} = {$foundHost}{$newline}";
        }
    }

    ?>
    PasteBin URL : https://pastebin.com/fcTRa5Q1
     
    Xander likes this.
  2. Xander

    Xander Administrator
    Staff Member - VIP -

    Joined:
    Aug 14, 2017
    Messages:
    92
    Likes Received:
    65
    Thank you for this :)
     

Share This Page