Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $zip = new ZipArchive();
- $zip->open("locked.zip");
- $pass_file = fopen("pass.list", "rt");
- while(($line = trim(fgets($pass_file))) !== false) {
- if ($zip->setPassword($line) AND $zip->extractTo(__DIR__)) {
- echo "\n=====================================\n";
- echo "Password Matched: " . $line . "\n";
- break;
- } else {
- echo "Trying... " . $line . "\n";
- }
- }
Add Comment
Please, Sign In to add comment