Skip to content

Instantly share code, notes, and snippets.

@paulanthonywilson
Created September 24, 2011 09:41
Show Gist options
  • Save paulanthonywilson/1239165 to your computer and use it in GitHub Desktop.
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.
#!/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