Advertisement
Guest User

bilna

a guest
Feb 20th, 2016
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.80 KB | None | 0 0
  1. <?php
  2. // Setting Username dan Password
  3. $username = $_POST['email'];
  4. $password = $_POST['pass'];
  5. // Saatnya Menghajar
  6. //init curl
  7.  
  8.  
  9. $ch = curl_init('http://www.bilna.com/ajaxlogin/index/loginPost/');
  10. curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
  11. curl_setopt($ch,CURLOPT_POST,1);
  12. curl_setopt($ch,CURLOPT_RETURNTRANSFER,TRUE);
  13. curl_setopt($ch,CURLOPT_POST,TRUE);
  14. curl_setopt($ch,CURLOPT_FOLLOWLOCATION,TRUE);
  15. curl_setopt($ch,CURLOPT_COOKIEFILE,"cookie.txt");
  16. curl_setopt($ch,CURLOPT_COOKIEJAR, "cookie.txt");
  17. curl_setopt($ch,CURLOPT_POSTFIELDS,"email=$username&password=$password&send=&location=http%3A%2F%2Fwww.bilna.com%2F");
  18. curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);
  19. $result = curl_exec($ch);
  20. echo "$result";
  21.  
  22.  
  23.  
  24. ?><br><br>
  25. <a href="index.php">Back</a>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement