Skip to content

Instantly share code, notes, and snippets.

@hrishimittal
Created October 4, 2022 07:36
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 hrishimittal/1e5e674a47938951e2b2598fe86a0fe6 to your computer and use it in GitHub Desktop.
Save hrishimittal/1e5e674a47938951e2b2598fe86a0fe6 to your computer and use it in GitHub Desktop.
def solve(url)
require 'net/http'
require 'json'
uri = URI(url)
response = JSON.parse(Net::HTTP.get(uri))
puts response
solve(response["follow"].gsub('challenge', 'challenge.json')) if response["message"] == "This is not the end"
end
solve("https://www.letsrevolutionizetesting.com/challenge.json")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment