Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- #EXEMPLO ~
- #DEFINIDO O NOME DA FUNCTION DE CRIPT
- $conf['func'] = "md5";
- #VALIDANDO ARQUIVO COM AS SENHAS
- $conf['pas'] = (is_file('hash.txt')) ? file('hash.txt') : "hash.txt is not file" . exit();
- #SENHA CRIPTADA.
- $conf['value'] = '4badaee57fed5610012a296273158f5f';
- $conf['line'] = "---------------------------------------";
- #INICIANDO LOOP COM BASE NO ARRAY DE DADOS DO ARQUIVO pas.txt
- foreach ($conf['pas'] as $line) {
- #LIMPANDO LINHA
- $line = str_replace("\n", '', str_replace("\r", '', $line));
- #VALIDANDO LINHA COM A CRIPT SELECIONADA
- if ($conf['func']($line) === $conf['value']) {
- $crk = "{$conf['line']}\n[+] - VALUE:{$conf['value']} , :{$line} - Password CRACKED!\n{$conf['line']}\n";
- print $crk;
- file_put_contents('crk.txt', "{$crk}", FILE_APPEND);
- } else {
- print "[x] - " . $conf['func']($line) . "\n";
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement