Advertisement
Guest User

Untitled

a guest
Apr 23rd, 2019
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.33 KB | None | 0 0
  1. <?php
  2. //NOTE: PUT URL WITHOUT HTTP:// or HTTPS;//
  3. function save($haha,$data){
  4. $fp = @fopen("$haha.txt", "a") or die("cant open file");
  5. fwrite($fp, $data);
  6. fclose($fp);
  7. }
  8. $banner = "
  9. Powered By Con7ext
  10. _____ .__
  11. / _ \ |__| ____ ________
  12. / /_\ \| |/ \\___ /
  13. / | \ | | \/ /
  14. \____|__ /__|___| /_____ \
  15. \/ \/ \/\n";
  16. echo $banner;
  17. echo "Domain/IP: ";
  18. $domain = trim(fgets(STDIN));
  19. $list = array();
  20. $domains = urlencode($domain);
  21. $ch1 = curl_init("https://viewdns.info/reverseip/?host=$domains&t=1");
  22. curl_setopt ($ch1, CURLOPT_RETURNTRANSFER, 1);
  23. curl_setopt ($ch1, CURLOPT_FOLLOWLOCATION, 1);
  24. curl_setopt ($ch1, CURLOPT_USERAGENT, "Mozilla/5.0 (Windows NT 6.1; rv:32.0) Gecko/20100101 Firefox/32.0");
  25. curl_setopt ($ch1, CURLOPT_SSL_VERIFYPEER, 0);
  26. curl_setopt ($ch1, CURLOPT_SSL_VERIFYHOST, 0);
  27. $result = curl_exec ($ch1);
  28. preg_match_all("/<\/tr><tr> <td>(.*?)<\/td>/", $result, $kontoru);
  29. foreach($kontoru[1] as $kontolatos){
  30. if(!in_array($kontolatos,$list)){
  31. $list[] = $kontolatos;
  32. save($domain, $kontolatos."\n");
  33. echo $kontolatos."\n";
  34. }
  35. else{
  36. //
  37. }
  38. }
  39. $kontoruss = file_get_contents("$domain.txt");
  40. $asu = explode("\n", $kontoruss);
  41. $count = count($asu);
  42. echo "\n\nTotal Domain: $count";
  43. echo "\nSaved To ==> $domain.txt\n";
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement