Advertisement
ustadcage_48

Simi-simi cookies

Dec 16th, 2015
170
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.09 KB | None | 0 0
  1. <?php
  2. //Coded by rieqyns13
  3. function curl($url){
  4.     $ch = curl_init();
  5.     curl_setopt($ch, CURLOPT_URL, $url);
  6.     curl_setopt($ch, CURLOPT_HEADER, true);
  7.     curl_setopt($ch, CURLOPT_USERAGENT, "Mozilla/5.0 (X11; Linux i686) AppleWebKit/536.5 (KHTML, like Gecko) Chrome/19.0.1084.52 Safari/536.5");
  8.     curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
  9.     curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
  10.     curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
  11.     $exec = curl_exec($ch);
  12.     curl_close($ch);
  13.     return $exec;
  14. }
  15. function ambil($start, $end, $var){
  16.     return preg_match("{".preg_quote($start)."(.*?)".preg_quote($end)."}is", $var, $m) ? $m[1] : null;
  17. }
  18. $url="http://www.simsimi.com/func/register";
  19. $fp = fopen("cookie_simi.txt", 'w') or die ("gay");
  20. fwrite($fp, null);
  21. fclose($fp);
  22. $fp = fopen("cookie_simi.txt", 'a') or die ("gay");
  23. for($i=0;$i<4;$i++){
  24.     $exec=curl($url);
  25.     $cookie=trim(ambil("Set-Cookie:", "Path=/; HttpOnly", $exec));
  26.     $uid=ambil("{\"uid\":", ",\"result\"", $exec);
  27.     $gay=$cookie." simsimi_uid={$uid}; simsimi_uid={$uid};";
  28.     fwrite($fp, $gay."\n");
  29.     echo $gay."\n";
  30. }
  31. fclose($fp);
  32. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement