Paste Search Dynamic
Recent pastes
search php
  1. <?php
  2. /*
  3. This is a very simple PHP Script to search for strings in large data leaks, such as Exploit.in, Adobe and DropBox. If a users information is compromised, they have the right to know exactly what has been compromised!
  5. Sites such as haveibeenpwned.com does not reveal the passwords, so we have no way of knowing what site is to blame for the leaks. Our only option is to download the leaks and check them on our own. This is not illegal, but sharing the information is.
  7. Some of the .zip files may be broken / corrupted, but are often easily fixable with standard zip tools. I recommend 7zip on Windows and simply using the terminal in Linux.
  9. This will likely also work for .sql files, but keep in mind it will only show the line where the searched string occurs, so you may need to modify it if the information is multi-line..
  11. I am not going to tell you were to find the actual leaks, but usually you will be able to find them as free torrent files.
  13. The script can be called directly from terminal, if you got PHP installed. Have no idea about Windows. Presumably you have to install Apache + PHP. Good luck..
  15. One more thing.. Please do not abuse this data. If you have the knowledge to abuse other peoples personal information, then you would very likely be able to earn more money through legal ways, like starting your own company. So in short...: GROW UP AND LIVE LIFE LIKE A MAN!!!  
  16. */
  17. $i = 1; // If the files are named like: 1.txt, 2.txt, 3.txt
  19. $stringToFind = 'example@example.com';
  21. echo 'Searching for string: ' . $stringToFind . "\n\n";
  22. while ($i <= 111) {
  23.   $filename = $i . '.txt'; // The filename made with the counter
  24.   echo 'Searching in file: ' . $filename . "\n";
  25.   $handle = fopen($filename, "r");
  26.   if ($handle) {
  27.     while (($line = fgets($handle)) !== false) {
  28.       if (strpos($line, $stringToFind) !== false) {
  29.         echo "\n". $line;
  30.       }
  31.     }
  32.   fclose($handle);
  33.   } else {
  34.     // error opening the file.
  35.     echo 'Unable to open file' . $filename;exit();
  36.   }
  37. ++$i;
  38. }
Parsed in 0.027 seconds