Advertisement
bug7sec

Log Hunter (Grab Email)

Mar 26th, 2016
2,616
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 2.37 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4.     <title>Log Hunting | Logika Galau</title>
  5.     <style type="text/css">
  6.     body{
  7.         color: red;
  8.         background-color: black;
  9.     }
  10.     input {
  11.     border: dashed 1px;
  12.     border-color: #333;
  13.     BACKGROUND-COLOR: Black;
  14.     font: 8pt Verdana;
  15.     color: #0CFF37;
  16.     }
  17.     </style>
  18. </head>
  19. <body>
  20. <pre style="text-align: center;">
  21. <font color="red">
  22. .____                     ___ ___               __  .__                
  23. |    |    ____   ____    /   |   \ __ __  _____/  |_|__| ____    ____  
  24. |    |   /  _ \ / ___\  /    ~    \  |  \/    \   __\  |/    \  / ___\
  25. |    |__(  <_> ) /_/  > \    Y    /  |  /   |  \  | |  |   |  \/ /_/  ></font><font color="white">
  26. |_______ \____/\___  /   \___|_  /|____/|___|  /__| |__|___|  /\___  /
  27.         \/    /_____/          \/            \/             \//_____/  
  28. <br>
  29. <font color="red">.-[ shor7cut ]-.</font>
  30. </font>
  31. </pre>
  32. <Center>
  33. <form action="" method="post">
  34. <input type="text" value="<?=getcwd();?>" name="shc_dir">
  35. <input type="submit" name="submit" value="Scan Now!"/>
  36. </form>
  37. <pre style="text-align: left;">
  38. <?php
  39. error_reporting(0);
  40. /*
  41. Name    : Log Hunter (Grab Email)
  42. Date    : 26/03/2016 05:53 PM
  43. Link    : http://facebook.com/bug7sec
  44. Link    : http://pastebin.com/u/shor7cut
  45. Author  : Shor7cut
  46. */
  47. if($_POST['submit']){
  48. $ifound = 0;
  49. function tampilkan($shcdirs){
  50. foreach(scandir($shcdirs) as $shc)
  51.     {
  52.         if($shc!='.' && $shc!='..')
  53.         {
  54.             $shc = $shcdirs.DIRECTORY_SEPARATOR.$shc;
  55.             if(!is_dir($shc) && !eregi("css", $shc) && !eregi("js", $shc) && !eregi("png", $shc) && !eregi("html", $shc)){
  56.  
  57.                 $fgt = file_get_contents($shc);
  58.                 preg_match_all('#[A-Z0-9a-z._%+-]+@[A-Za-z0-9.+-]+#',$fgt,$cocok);
  59.                 if($cocok[0]){
  60.                     foreach ($cocok[0] as $key => $shcmail) {
  61.                         if (filter_var($shcmail, FILTER_VALIDATE_EMAIL)) {
  62.                             $key = "<font color=#2196F3>".$shc."</font> -> <font color=#8BC34A>".$shcmail."</font><br>";
  63.                             $array[] = $key;
  64.                             $ifound++;
  65.                         }
  66.                     }
  67.                 }
  68.            
  69.             }else{
  70.                 tampilkan($shc);
  71.             }
  72.         }
  73.     }
  74. foreach ($array as $key => $emails) {
  75.     echo $emails."<br>";
  76. }
  77. }
  78. tampilkan($_POST['shc_dir']);
  79. }
  80. ?>
  81. </pre>
  82. </Center>
  83. </body>
  84. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement