Create a gist now

Instantly share code, notes, and snippets.

@Haseeb-Qureshi /build.rb Secret
Last active Apr 5, 2017

What would you like to do?
def build!(forward:)
puts "Current password: #{@password}"
ALPHABET.each do |char|
guess = forward ? @password + char : char + @password
if @api.include?(guess)
@password = guess
build!(forward: forward)
return
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment