Skip to content

Commit ced6573

Browse files
committed
Make some datastore options advanced
1 parent b4e3e84 commit ced6573

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

modules/exploits/multi/http/manageengine_dc_pmp_sqli.rb

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -111,17 +111,20 @@ def initialize(info={})
111111
[
112112
OptPort.new('RPORT',
113113
[true, 'The target port', 8020]),
114-
OptBool.new('SSL',
115-
[true, 'Use SSL', false]),
114+
OptString.new('WEB_ROOT',
115+
[false, 'Slash terminated web server root filepath (escape Windows paths with 4 slashes \\\\\\\\)'])
116+
], self.class)
117+
118+
register_advanced_options(
119+
[
116120
OptInt.new('CHUNK_SIZE',
117-
[true, 'Number of characters to send per request (< 7800)', 7500]),
121+
[true, 'Number of characters to send per request (< 7800)', 7500]),
118122
OptInt.new('SLEEP',
119-
[true, 'Seconds to sleep between injections (x1 for MySQL, x2.5 for PostgreSQL)', 2]),
123+
[true, 'Seconds to sleep between injections (x1 for MySQL, x2.5 for PostgreSQL)', 2]),
120124
OptBool.new('EXE_SMALL',
121-
[true, 'Use exe-small encoding for better reliability', true]),
122-
OptString.new('WEB_ROOT',
123-
[false, 'Slash terminated web server root filepath (escape Windows paths with 4 slashes \\\\\\\\)'])
125+
[true, 'Use exe-small encoding for better reliability', true]),
124126
], self.class)
127+
125128
end
126129

127130

0 commit comments

Comments
 (0)