Skip to content

Commit 3fd3bbd

Browse files
committed
Added comments, removed uneccesary code
1 parent b377cd8 commit 3fd3bbd

File tree

1 file changed

+2
-15
lines changed

1 file changed

+2
-15
lines changed

modules/auxiliary/admin/http/allegro_rompager_auth_bypass.rb

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -41,15 +41,6 @@ def initialize(info = {})
4141
OptInt.new('device',[true, 'ID of device from list of vulnerable devices'])
4242
], Exploit::Remote::HttpClient
4343
)
44-
45-
register_advanced_options(
46-
[
47-
#OptString.new('COOKIE_NUMBER',[false, 'Value used in cookie e.g. 107373883']),
48-
#OptInt.new('COOKIE_OFFSET',[false, 'Value of offset in cookie']),
49-
OptString.new('CANARY_URI', [false, 'Try overwriting the requested URI with this canary value (empty for random)']),
50-
OptString.new('STATUS_CODES_REGEX', [true, 'Ensure that canary pages and probe responses have status codes that match this regex', '^40[134]$'])
51-
], self.class
52-
)
5344
end
5445

5546
def headers
@@ -58,6 +49,7 @@ def headers
5849
}
5950
end
6051

52+
# List of known values and models, couldn't find better solution how to store them
6153
def devices_list
6254
[
6355
{:name=> 'Azmoon', :model=>'AZ-D140W', :fw=>'2.11.89.0(RE2.C29)3.11.11.52_PMOFF.1', :number=> 107367693,
@@ -238,6 +230,7 @@ def auxiliary_commands
238230
{ "devices" => "List known vulnerable devices" }
239231
end
240232

233+
# Command for listing all devivces with known values, for bypass to work
241234
def cmd_devices(*args)
242235
tbl = Msf::Ui::Console::Table.new(
243236
Msf::Ui::Console::Table::Style::Default,
@@ -259,12 +252,6 @@ def cmd_devices(*args)
259252
counter += 1
260253
end
261254
print tbl.to_s
262-
#print_status("ID\tName")
263-
264-
#for device in devices_list
265-
# print_status(counter.to_s + ":\t" + device[:name])
266-
# counter += 1
267-
#end
268255
end
269256

270257
def run

0 commit comments

Comments
 (0)