Jump to content

ZKS

Members
  • Posts

    12
  • Joined

  • Last visited

Posts posted by ZKS

  1. am rezolvat, m`am grabit si faceam echo doar la ultimul...si da, aveam impreasia ca e ip: pass..cand e ip:user: pass..modific imediat, merci...si functia aia o am asa ca o folosesc mai mereu si asa ramane si codul mai curat

    //done

    146.55.38.203:user: pass //Details :UNITED STATES=>ARIZONA=>FT. HUACHUCA

  2. Am facut un mic script, pare folositor NL GeoLocation :RST:

    <?php 
    include_once('get_string_between.php');
    $ips = $_REQUEST['ips'];
    $ips = explode("\n", $ips);

    foreach ($ips as $line) {

    $ips = explode(":", $line);
    $ip = $ips[0];
    $user = $ips[1];
    $pass = $ips[2];

    $f = file_get_contents('http://clientn.mask-myip.com/map/whatismyip.php?IP='.$ip);
    $country = get_string_between($f, "Country: ", "</div>");
    $region = get_string_between($f, "Region: ", "</div>");
    $city = get_string_between($f, "City: ", "</div>");
    $data = "$ip:$user:$pass //Details :$country=>$region=>$city".PHP_EOL;
    echo "$data<br>";
    }
    ?>

    si get_string_between

    <?php
    function get_string_between($string, $start, $end){
    $string = " ".$string;
    $ini = strpos($string,$start);
    if ($ini == 0) return "";
    $ini += strlen($start);
    $len = strpos($string,$end,$ini) - $ini;
    return substr($string,$ini,$len);
    }
    ?>

×
×
  • Create New...