RintoMuhamad

[PHP] Valid Apple

Mar 18th, 2019
1,440
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 3.81 KB | None | 0 0
  1. <?php
  2. // Created By Con7ext
  3. error_reporting(0);
  4. function getStr($string, $start, $end){
  5.     $str = explode($start, $string);
  6.     $str = explode($end, $str[1]);
  7.     return $str[0];
  8. }
  9. function cUrlGetData($url, $post_fields = null, $headers = null) {
  10.     $ch = curl_init();
  11.     curl_setopt($ch, CURLOPT_URL, $url);
  12.     if ($post_fields && !empty($post_fields)) {
  13.         curl_setopt($ch, CURLOPT_POST, 1);
  14.         curl_setopt($ch, CURLOPT_POSTFIELDS, $post_fields);
  15.     }
  16.     if ($headers && !empty($headers)) {
  17.         curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
  18.     }
  19.     curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  20.     curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);
  21.     curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
  22.     $data = curl_exec($ch);
  23.     if (curl_errno($ch)) {
  24.         echo 'Error:' . curl_error($ch);
  25.     }
  26.     curl_close($ch);
  27.     return $data;
  28. }
  29. $headers = array(
  30.     "User-agent: Mozilla/5.0 (Linux; Android 8.1.0; Redmi 6A Build/O11019) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 YaBrowser/18.10.2.119.00 Mobile Safari/537.36",
  31.     "Referer: https://appleid.apple.com/account",
  32.     //"Accept-Encoding: gzip, deflate, sdch, br",
  33.     "Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8"
  34. );
  35. $get = cUrlGetData("https://appleid.apple.com/account#!&page=create", null, $headers);
  36. $scnt = getStr($get, "scnt: '", "'");
  37. $api = getStr($get, "apiKey: '", "'");
  38. $sess = getStr($get , "sessionId: '", "'");
  39. $headerToPost = array(
  40.   "User-agent: Mozilla/5.0 (Linux; Android 8.1.0; Redmi 6A Build/O11019) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 YaBrowser/18.10.2.119.00 Mobile Safari/537.36",
  41.   "Origin: https://appleid.apple.com",
  42.   "Referer: https://appleid.apple.com/account",
  43.   "X-Apple-Request-Context: create",
  44.   "Requested-With: XMLHttpRequest",
  45.   "scnt: {$scnt}",
  46.   "X-Apple-Api-Key : {$api}",
  47.   "X-Apple-ID-Session-Id: {$sess}",
  48.   "Accept: application/json, text/javascript, */*; q=0.01",
  49. //"Accept-Encoding: gzip, deflate, br",
  50.   "Accept-Language: id-ID,id;q=0.9,en-US;q=0.8,en;q=0.7",
  51.   "Content-Type: application/json",
  52.   'X-Apple-I-FD-Client-Info: {"U":"Mozilla/5.0 (Linux; Android 8.1.0; Redmi 6A Build/O11019) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 YaBrowser/18.10.2.119.00 Mobile Safari/537.36","L":"id-ID","Z":"GMT+07:00","V":"1.1","F":"kWa44j1e3NlY5BSo9z4ofjb75PaK4Vpjt1szHVXU3vtnTDovyhbQ3zIRbPhj03x.dXnYbFdH6PEwHXXTSHCSPmtd0wVYPIG_qvoPfybYb5EvYTrYesR2hQnH6hAOfUftmF5wMQE5nXxQD6CKaMhQWx2KlTTpZHgfLMC7AeLd7FmrpwoNN5uQ4s5uQ1szHVzZrefOJQuyPB94UXuGlfUm4ly_03y8rnawSdrxQDq8yatDpQT18u0I4b6DWHZDoUs_43wuZPup_nH2t05oaYAhrcpMxE6DBUr5xj6Kks6PraZEPLnLzMnZVCsiqTCb4uqRDPfBjPr2u5fXwxf7_OLgiPFMqbN0TUMpwoNRe98vPSb_GGEOpBSKxUC56MnGWpwoNSUC53ZXnN87gq1a293lio8dOHr_i.uJtHoqvynx9MsFyxYMH0XKJ7lrHay.9aB.KB4D93tG2hixAwlMsITxYMJ5uFBHeNNW5BNlYicklY5BqNAE.lTjV.5Ec"}'
  53. );
  54. echo ".___  __            _____  .__              
  55. |   |/  |_  ______ /  _  \ |__| ____ ________
  56. |   \   __\/  ___//  /_\  \|  |/    \\___   /
  57. |   ||  |  \___ \/    |    \  |   |  \/    /
  58. |___||__| /____  >____|__  /__|___|  /_____ \
  59. Coded : Con7ext\/        \/        \/      \/
  60.                            Apple Valid Email\n";
  61. echo "Input Your List : ";
  62. $itsList = trim(fgets(STDIN));
  63. $itsMail = file_get_contents($itsList);
  64. $itsGet = explode("\n", $itsMail);
  65. foreach($itsGet as $itsEmail){
  66.   $itsGetData = cUrlGetData("https://appleid.apple.com/account/validation/appleid", "{\"emailAddress\":\"{$itsEmail}\"}", $headerToPost);
  67.   $itsDecoding = json_decode($itsGetData, TRUE);
  68.   $itsDate = date('h:i:s');
  69.   if($itsDecoding["used"] == true){
  70.     echo "\033[1;32m[{$itsDate}] {$itsEmail} | LIVE\n";
  71.   }
  72.   else if($itsDecoding["used"] == false || $itsDecoding["valid"] == false){
  73.     echo "\033[1;31m[{$itsDate}] {$itsEmail} | DIE\n";
  74.   }
  75. }
  76. echo "\033[0m";
Advertisement
Add Comment
Please, Sign In to add comment