ecchiexploit

Reverse Email

Jan 16th, 2021 (edited)
688
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2. class Reverse
  3. {
  4.    
  5.     private function save($saveas,$name)
  6.     {
  7.         $result = fopen($name, "a+");
  8.         fwrite($result, "$saveas\n");
  9.         fclose($result);
  10.     }
  11.  
  12.     private function curl($mail)
  13.     {
  14.         $setopt = array(
  15.             CURLOPT_URL             => 'https://osint.sh/reversewhois/',
  16.             CURLOPT_RETURNTRANSFER  => true,
  17.             CURLOPT_POST            => true,
  18.             CURLOPT_POSTFIELDS      => "email=$mail",
  19.             CURLOPT_USERAGENT       => 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.94 Safari/537.36',
  20.             CURLOPT_CONNECTTIMEOUT  => 60,
  21.             CURLOPT_TIMEOUT         => 60,
  22.             CURLOPT_HEADER          => false
  23.         );
  24.         $ch = curl_init();
  25.         curl_setopt_array($ch, $setopt);
  26.         $exe = curl_exec($ch);
  27.         curl_close($ch);
  28.         return $exe;
  29.     }
  30.  
  31.     public function email($email)
  32.     {
  33.         $lookup = $this->curl($email);
  34.         $scrapt = preg_match_all("/<a href=\"https:\/\/(.*?)\">(.*?)<\/a>/i", $lookup, $domain);
  35.         $url = preg_replace("/<i class=\"(.*?)\"><\/i>/", '', $domain[2]);
  36.         $url = str_replace('Teguh Aprianto', '', $url);
  37.         $filter = array_filter($url);
  38.         if ($filter == null)
  39.         {
  40.             echo "No Result In This Email $email";
  41.         }
  42.         else
  43.         {
  44.             echo "Result :\n";
  45.             foreach ($filter as $key)
  46.             {
  47.                 echo "[+] $key\n";
  48.                 $this->save($key,'result.txt');
  49.             }
  50.         }
  51.     }
  52. }
  53. $reverse = new Reverse;
  54. $email = readline('Input Your Email (admin@admin.com) : ');
  55. $reverse->email($email);
  56. ?>
RAW Paste Data