Advertisement
Guest User

Untitled

a guest
Jan 9th, 2017
145
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.00 KB | None | 0 0
  1. function getRS3($login_user)
  2. {
  3.     global $login_user;
  4.     $get_cookies = curl_init('https://www.roblox.com/newlogin');
  5.     curl_setopt_array($get_cookies,
  6.         array(
  7.             CURLOPT_RETURNTRANSFER => true,
  8.             CURLOPT_HEADER => true,
  9.             CURLOPT_COOKIESESSION => true,
  10.             CURLOPT_POST => true,
  11.             CURLOPT_HTTPPROXYTUNNEL => true,
  12.             CURLOPT_TIMEOUT => 10,
  13.             CURLOPT_PROXY => '149.202.59.12:3128',
  14.             CURLOPT_POSTFIELDS => $login_user
  15.                         //CURLOPT_USERAGENT => "Mozilla/5.0 (Windows NT 5.1) AppleWebKit/535.6 (KHTML, like Gecko) Chrome/16.0.897.0 Safari/535.6",
  16.                         //CURLOPT_FOLLOWLOCATION => true,
  17.                         //CURLOPT_REFERER => "http://www.roblox.com"
  18.         )
  19.     );
  20.     $rs = (preg_match('/(\.ROBLOSECURITY=.*?);/', curl_exec($get_cookies), $matches) ? $matches[1] : '');
  21.     curl_close($get_cookies);
  22.     return $results;
  23. }
  24.  
  25. echo getRS3("username=USERNAME&password=PASS");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement