Skip to content

Commit 56cbe6a

Browse files
David MaloneyDavid Maloney
authored andcommitted
Some minor fixups
1 parent 3a8dd26 commit 56cbe6a

File tree

3 files changed

+3
-37
lines changed

3 files changed

+3
-37
lines changed

lib/msf/core/exploit/mixins.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,3 +88,6 @@
8888
# WBEM
8989
require 'msf/core/exploit/wbemexec'
9090

91+
#WinRM
92+
require 'msf/core/exploit/winrm'
93+

lib/msf/core/exploit/winrm.rb

Lines changed: 0 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -36,38 +36,6 @@ def initialize(info = {})
3636
], self.class
3737
)
3838

39-
register_advanced_options(
40-
[
41-
OptString.new('UserAgent', [false, 'The User-Agent header to use for all requests',
42-
Rex::Proto::Http::Client::DefaultUserAgent
43-
]),
44-
], self.class
45-
)
46-
47-
register_evasion_options(
48-
[
49-
OptEnum.new('HTTP::uri_encode_mode', [false, 'Enable URI encoding', 'hex-normal', ['none', 'hex-normal', 'hex-all', 'hex-random', 'u-normal', 'u-all', 'u-random']]),
50-
OptBool.new('HTTP::uri_full_url', [false, 'Use the full URL for all HTTP requests', false]),
51-
OptInt.new('HTTP::pad_method_uri_count', [false, 'How many whitespace characters to use between the method and uri', 1]),
52-
OptInt.new('HTTP::pad_uri_version_count', [false, 'How many whitespace characters to use between the uri and version', 1]),
53-
OptEnum.new('HTTP::pad_method_uri_type', [false, 'What type of whitespace to use between the method and uri', 'space', ['space', 'tab', 'apache']]),
54-
OptEnum.new('HTTP::pad_uri_version_type', [false, 'What type of whitespace to use between the uri and version', 'space', ['space', 'tab', 'apache']]),
55-
OptBool.new('HTTP::method_random_valid', [false, 'Use a random, but valid, HTTP method for request', false]),
56-
OptBool.new('HTTP::method_random_invalid', [false, 'Use a random invalid, HTTP method for request', false]),
57-
OptBool.new('HTTP::method_random_case', [false, 'Use random casing for the HTTP method', false]),
58-
OptBool.new('HTTP::uri_dir_self_reference', [false, 'Insert self-referential directories into the uri', false]),
59-
OptBool.new('HTTP::uri_dir_fake_relative', [false, 'Insert fake relative directories into the uri', false]),
60-
OptBool.new('HTTP::uri_use_backslashes', [false, 'Use back slashes instead of forward slashes in the uri ', false]),
61-
OptBool.new('HTTP::pad_fake_headers', [false, 'Insert random, fake headers into the HTTP request', false]),
62-
OptInt.new('HTTP::pad_fake_headers_count', [false, 'How many fake headers to insert into the HTTP request', 0]),
63-
OptBool.new('HTTP::pad_get_params', [false, 'Insert random, fake query string variables into the request', false]),
64-
OptInt.new('HTTP::pad_get_params_count', [false, 'How many fake query string variables to insert into the request', 16]),
65-
OptBool.new('HTTP::pad_post_params', [false, 'Insert random, fake post variables into the request', false]),
66-
OptInt.new('HTTP::pad_post_params_count', [false, 'How many fake post variables to insert into the request', 16]),
67-
OptBool.new('HTTP::uri_fake_end', [false, 'Add a fake end of URI (eg: /%20HTTP/1.0/../../)', false]),
68-
OptBool.new('HTTP::uri_fake_params_start', [false, 'Add a fake start of params to the URI (eg: /%3fa=b/../)', false]),
69-
OptBool.new('HTTP::header_folding', [false, 'Enable folding of HTTP headers', false])
70-
], self.class)
7139

7240
register_autofilter_ports([ 80,443,5985,5986 ])
7341
register_autofilter_services(%W{ winrm })

modules/auxiliary/scanner/winrm/winrm_auth_methods.rb

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,6 @@ def initialize
3434
'License' => MSF_LICENSE
3535
)
3636

37-
register_options(
38-
[
39-
OptString.new('URI', [ true, "The URI of the WinRM service", "/wsman" ])
40-
], self.class)
41-
4237
deregister_options('USERNAME', 'PASSWORD')
4338

4439
end

0 commit comments

Comments
 (0)