Skip to content

Commit cfb5621

Browse files
committed
Revert "Revert "Land rapid7#7009, egypt's rubyntlm cleanup""
This reverts commit 1164c02.
1 parent 82e092c commit cfb5621

File tree

9 files changed

+344
-509
lines changed

9 files changed

+344
-509
lines changed

Gemfile.lock

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ PATH
3636
rex-text
3737
rex-zip
3838
robots
39+
rubyntlm
3940
rubyzip
4041
sqlite3
4142
sshkey

lib/metasploit/framework/mssql/client.rb

Lines changed: 126 additions & 157 deletions
Large diffs are not rendered by default.

lib/msf/core/exploit/http/client.rb

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,6 @@
22

33
require 'uri'
44
require 'digest'
5-
require 'rex/proto/ntlm/crypt'
6-
require 'rex/proto/ntlm/constants'
7-
require 'rex/proto/ntlm/utils'
8-
require 'rex/proto/ntlm/exceptions'
95
module Msf
106

117
###
@@ -16,15 +12,6 @@ module Msf
1612
###
1713
module Exploit::Remote::HttpClient
1814
include Msf::Auxiliary::Report
19-
include Exploit::Remote::NTLM::Client
20-
21-
#
22-
# Constants
23-
#
24-
NTLM_CRYPT = Rex::Proto::NTLM::Crypt
25-
NTLM_CONST = Rex::Proto::NTLM::Constants
26-
NTLM_UTILS = Rex::Proto::NTLM::Utils
27-
NTLM_XCEPT = Rex::Proto::NTLM::Exceptions
2815

2916
#
3017
# Initializes an exploit module that exploits a vulnerability in an HTTP
@@ -193,12 +180,6 @@ def connect(opts={})
193180
'uri_fake_end' => datastore['HTTP::uri_fake_end'],
194181
'uri_fake_params_start' => datastore['HTTP::uri_fake_params_start'],
195182
'header_folding' => datastore['HTTP::header_folding'],
196-
'usentlm2_session' => datastore['NTLM::UseNTLM2_session'],
197-
'use_ntlmv2' => datastore['NTLM::UseNTLMv2'],
198-
'send_lm' => datastore['NTLM::SendLM'],
199-
'send_ntlm' => datastore['NTLM::SendNTLM'],
200-
'SendSPN' => datastore['NTLM::SendSPN'],
201-
'UseLMKey' => datastore['NTLM::UseLMKey'],
202183
'domain' => datastore['DOMAIN'],
203184
'DigestAuthIIS' => datastore['DigestAuthIIS']
204185
)
@@ -255,12 +236,6 @@ def configure_http_login_scanner(conf)
255236
evade_uri_fake_end: datastore['HTTP::uri_fake_end'],
256237
evade_uri_fake_params_start: datastore['HTTP::uri_fake_params_start'],
257238
evade_header_folding: datastore['HTTP::header_folding'],
258-
ntlm_use_ntlmv2_session: datastore['NTLM::UseNTLM2_session'],
259-
ntlm_use_ntlmv2: datastore['NTLM::UseNTLMv2'],
260-
ntlm_send_lm: datastore['NTLM::SendLM'],
261-
ntlm_send_ntlm: datastore['NTLM::SendNTLM'],
262-
ntlm_send_spn: datastore['NTLM::SendSPN'],
263-
ntlm_use_lm_key: datastore['NTLM::UseLMKey'],
264239
ntlm_domain: datastore['DOMAIN'],
265240
digest_auth_iis: datastore['DigestAuthIIS']
266241
}.merge(conf)

0 commit comments

Comments
 (0)