Advertisement
Guest User

Untitled

a guest
Oct 18th, 2016
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.87 KB | None | 0 0
  1. <?php
  2. session_start();
  3. if(!isset($_SESSION['user']))(
  4. echo "Maho";
  5. } else {
  6. $username = "mfaruk";
  7. $password = "farukganteng123";
  8. $url ="http://wingram.net/premium/userlogin.php";
  9. $postinfo = "username=".$username."&password=".$password;
  10.  
  11. $cookie_file_path = "cookie.txt';
  12.  
  13. $ch = curl_init();
  14. curl_setopt($ch, CURLOPT_HEADER, false);
  15. curl_setopt($ch, CURLOPT_NOBODY, false);
  16. curl_setopt($ch, CURLOPT_URL, $url);
  17. curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);
  18.  
  19. curl_setopt($ch, CURLOPT_COOKIEJAR, $cookie_file_path);
  20. curl_setopt($ch, CURLOPT_COOKIE, "cookiename=0");
  21. curl_setopt($ch, CURLOPT_USERAGENT, "Mozilla/5.0 (windows; U; Windows NT 5.0; en-US; rvz1.7.12) Gecko/20050915
  22. Firefox/1.0.7");
  23. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  24. curl_setopt($ch, CURLOPT_REFERER, $_SERVER['REQUEST_URI']);
  25. curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
  26. curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 0);
  27. curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "POST");
  28. curl_setopt($ch, CURLOPT_POST, 1);
  29. curl_setopt($ch, CURLOPT_POSTFIELDS, $postinfo);
  30. curl_exec($ch);
  31. $url = mysql_escape_string($_POST['url']);
  32. $postinfo2 = "url=".$url."&jumlah=1000";
  33. curl_setopt($ch, CURLOPT_URL, "http://wingram.net/premium/likesmasukneraka.php");
  34. curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);
  35. curl_setopt($ch, CURLOPT_COOKIEJAR, $cookie_file_path);
  36. curl_setopt($ch, CURLOPT_COOKIE, "cookiename=0");
  37. curl_setopt($ch, CURLOPT_USERAGENT, "Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:l.7.12) Gecko/20050915
  38. Firefox/1.0.7");
  39. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  40. curl_setopt($ch, CURLOPT_REFERER, $_SERVER['REQUEST_URI']);
  41. curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
  42. curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 0);
  43.  
  44. curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "POST");
  45. curl_setopt($ch, CURLOPT_POST, 1);
  46. curl_setopt($ch, CURLOPT_POSTFIELDS, $postinfo2);
  47. $x = curl_exec($ch);
  48. echo "Sukses menembah Likes";
  49. }
  50. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement