class NatasLevel0
Level 0
Constants
- LEVEL
- PAGE
- PASSWORD
Public Class Methods
new(*)
click to toggle source
Calls superclass method
NatasLevelBase::new
# File lib/natas.rb, line 123 def initialize(*) super @password = PASSWORD end
Public Instance Methods
exec()
click to toggle source
# File lib/natas.rb, line 128 def exec log("Parsing the page: #{PAGE}") data = get('/').body match = /<!--The password for natas1 is (\w{32}) -->/.match(data) not_found unless match found(match[1]) end