Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Example run with cmd cd Desktop
- 11.php with the ip
- <?php
- if(isset($_SERVER['argv'][1]) || isset($_GET['ip']) ) {
- $ip = $_SERVER['argv'][1] or $_GET['ip'] ;
- echo "\n IP: ".$ip."\n";
- echo " PLeas wait:..\n\n";
- }else{die("\n Pleas Insert a ip.\n EX: php cloudflare-bypass.php 127.0.0.1 \n\n");}
- if(!filter_var($ip, FILTER_VALIDATE_IP)) {
- die(" Not a valid IP address!\n");
- }
- function entre2v2($text,$marqueurDebutLien,$marqueurFinLien,$i=1){
- $ar0=explode($marqueurDebutLien, $text);
- $ar1=explode($marqueurFinLien, $ar0[$i]);
- return trim($ar1[0]);
- }
- $url = 'http://ipmap.net/index.php/ipmap/?ip='.$ip;
- $check = @file_get_contents(''.$url.'');
- //echo $check;
- $ip = @entre2v2($check,'<span onclick="sdiv(this);"><font size="" color="red">',"</font></span>") or die(" [!] Error\n");
- $Hostname = @entre2v2($check,'<font color="red" id=hostname>',"</font></span></td>");
- $country_name = entre2v2($check,'<font color="red" id=country_name>',"</font></span></td>");
- $country_code = entre2v2($check,'<font color="red" id=country_code>',"</font></span></td>");
- $region = entre2v2($check,'<font color="red" id=region>',"</font></span></td>");
- $city = entre2v2($check,'<font color="red" id=city>',"</font></span></td>");
- $postal_code = entre2v2($check,'<font color="red" id=postal_code>',"</font></span></td>");
- $area_code = entre2v2($check,'<font color="red" id=area_code>',"</font></span></td>");
- echo ' IP: '.$ip."\n";
- echo ' Hostname: '.$Hostname."\n";
- echo ' Country: '.$country_name."\n";
- echo ' Country Code: '.$country_code."\n";
- echo ' Region/State: '.$region."\n";
- echo ' City: '.$city."\n";
- echo ' Postal : '.$postal_code."\n";
- echo ' Phone code : '.$area_code."\n";
- ?>
Advertisement
Add Comment
Please, Sign In to add comment