Created
September 24, 2011 09:41
-
-
Save paulanthonywilson/1239165 to your computer and use it in GitHub Desktop.
For sites that require me to enter random numbers from my password (eg 3rd, 5th, 12th). Eg Verified with visa.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
puts "Password please" | |
password = gets | |
loop do | |
puts "char number" | |
c = gets | |
break if c.strip.upcase == "Q" | |
puts password[c.to_i - 1] | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment