class NatasLevel6

Level 6

Constants

LEVEL

Public Instance Methods

exec() click to toggle source
# File lib/natas.rb, line 238
def exec
  data = get('/includes/secret.inc').body
  match = /\$secret = "(\w{19})";/.match(data)
  not_found unless match
  data = post(
    '/',
    {},
    {
      'submit' => '',
      'secret' => match[1]
    }
  ).body
  match = /The password for natas7 is (\w{32})/.match(data)
  not_found unless match
  found(match[1])
end