Advertisement
AgusSR

Simple HASH Crypt, Password_Hash Decrypter

Mar 2nd, 2017
11,929
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.60 KB | None | 0 0
  1. <?php
  2. error_reporting(0);
  3.  
  4. # Coded by L0c4lh34rtz - IndoXploit
  5.  
  6. # \n -> linux
  7. # \r\n -> windows
  8. $list = explode("\n", file_get_contents($argv[1])); # change \n to \r\n if you're using windows
  9. # ------------------- #
  10.  
  11. $hash = '$2y$10$BxO1iVD3HYjVO83NJ58VgeM4wNc7gd3gpggEV8OoHzB1dOCThBpb6'; # hash here, NB: use single quote (') , don't use double quote (")
  12.  
  13. if(isset($argv[1])) {
  14.     foreach($list as $wordlist) {
  15.         print " [+]"; print (password_verify($wordlist, $hash)) ? "$hash -> $wordlist (OK)\n" : "$hash -> $wordlist (SALAH)\n";
  16.     }
  17. } else {
  18.     print "usage: php ".$argv[0]." wordlist.txt\n";
  19. }
  20. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement