Advertisement
harriepradana

Untitled

Mar 20th, 2019
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.38 KB | None | 0 0
  1. <?php
  2.  
  3.  
  4.  
  5. $ch = curl_init();
  6.  
  7. curl_setopt($ch, CURLOPT_URL, 'http://onlinewebtool.com/class/cmsdetector.php');
  8. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  9. curl_setopt($ch, CURLOPT_POSTFIELDS, "url=http%\"3A\"%\"2F\"%\"2F'.$url.'\"%\"2F\"");
  10. curl_setopt($ch, CURLOPT_POST, 1);
  11. curl_setopt($ch, CURLOPT_ENCODING, 'gzip, deflate');
  12.  
  13. $headers = array();
  14. $headers[] = 'User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:65.0) Gecko/20100101 Firefox/65.0';
  15. $headers[] = 'Accept: */*';
  16. $headers[] = 'Accept-Language: id,en-US;q=0.7,en;q=0.3';
  17. $headers[] = 'Referer: http://onlinewebtool.com/cmsdetector.php';
  18. $headers[] = 'Content-Type: application/x-www-form-urlencoded';
  19. $headers[] = 'X-Requested-With: XMLHttpRequest';
  20. $headers[] = 'Proxy-Authorization: Digest username=\"58845099\"\",';
  21. $headers[] = 'Connection: keep-alive';
  22. $headers[] = 'Cookie: __cfduid=d99fdaa4b63ffb202f6a927b23d9e06661552742175; __utma=106887645.184595732.1552742193.1552833216.1553100318.3; __utmz=106887645.1552742193.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); cf_clearance=67010406af29e512a4bdce45758965db935febc8-1553100299-900-150; PHPSESSID=5fvtco3ip4c2gknl4vrkh235d1; hu=1; __utmb=106887645.2.10.1553100318; __utmc=106887645; __utmt=1';
  23. curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
  24.  
  25. $result = curl_exec($ch);
  26. if (curl_errno($ch)) {
  27. echo 'Error:' . curl_error($ch);
  28. }
  29. curl_close ($ch);
  30.  
  31. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement