class NatasLevel8
Level 8
Constants
- LEVEL
Public Instance Methods
exec()
click to toggle source
# File lib/natas.rb, line 274 def exec data = get('/index-source.html').body match = /\$encodedSecret = "(\w{32})";/.match(data) not_found unless match secret = Base64.decode64([match[1]].pack('H*').reverse) data = post( '/', {}, { 'submit' => '', 'secret' => secret } ).body match = /The password for natas9 is (\w{32})/.match(data) not_found unless match found(match[1]) end