Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- require 'archive/zip'
- require 'fileutils'
- Gem.win_platform? ? (system 'cls') : (system 'clear')
- separator = '---------------------------------------------------'
- c = 0
- puts "#{separator}\n\t\s\s--> Zip Cracker by AnonGuy <--\n\t\s\s\s\s\san0nguy[at]protonmail.ch\n#{separator}"
- print "Wordlist\s\s\s\s--> "
- wordlist = gets.chomp
- print "Zip Archive --> "
- archive = gets.chomp
- print "#{separator}\n"
- File.readlines(wordlist).each do |pw|
- pass = pw.chomp
- c += 1
- begin
- Archive::Zip.extract(archive, 'tmp', :password => pass)
- FileUtils.rm_rf('tmp')
- abort("Password Found\s\s\s\s\s\s--> #{pass}\nTotal Attempts Made --> #{c}\n\nEnding Script Execution . . .\n#{separator}")
- rescue
- end
- end
Add Comment
Please, Sign In to add comment