Skip to content

Instantly share code, notes, and snippets.

@Haseeb-Qureshi
Created April 4, 2017 17:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Haseeb-Qureshi/3d6ea350690f47790fe8f13b729a00e1 to your computer and use it in GitHub Desktop.
Save Haseeb-Qureshi/3d6ea350690f47790fe8f13b729a00e1 to your computer and use it in GitHub Desktop.
def build_forward!
puts "Current password: #{@password}"
ALPHABET.each do |char|
guess = @password + char
if @api.include?(guess)
@password = guess
build_forward!
# once I'm done building forward, jump out of all stack frames
return
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment