Skip to content

Commit

Permalink
Fix: auxiliary/kerberos_enumusers stops after first match
Browse files Browse the repository at this point in the history
  • Loading branch information
layderv committed Nov 6, 2019
1 parent f4cea61 commit 247546f
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion modules/auxiliary/analyze/jtr_mssql_fast.rb
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ def run
def hash_file
wrote_hash = false
hashlist = Rex::Quickfile.new("hashes_tmp")
Metasploit::Credential::NonreplayableHash.joins(:cores).where(metasploit_credential_cores: { workspace_id: myworkspace.id }, jtr_format: ['mssql', 'mssql05', 'mssql12']).each do |hash|
Metasploit::Credential::NonreplayableHash.joins(:cores).where(metasploit_credential_cores: { workspace_id: myworkspace_id }, jtr_format: ['mssql', 'mssql05', 'mssql12']).each do |hash|
# Track the formats that we've seen so we do not attempt a format that isn't relevant
@formats << hash.jtr_format
hash.cores.each do |core|
Expand Down
2 changes: 1 addition & 1 deletion modules/auxiliary/gather/kerberos_enumusers.rb
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ def report_cred(opts)
address: opts[:host],
port: opts[:port],
protocol: 'udp',
workspace_id: myworkspace.id,
workspace_id: myworkspace_id,
service_name: opts[:creds_name]
}

Expand Down
2 changes: 1 addition & 1 deletion modules/auxiliary/gather/konica_minolta_pwd_extract.rb
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ def register_creds(service_name, remote_host, remote_port, username, password)
credential_data = {
origin_type: :service,
module_fullname: self.fullname,
workspace_id: myworkspace.id,
workspace_id: myworkspace_id,
private_data: password,
private_type: :password,
username: username
Expand Down
2 changes: 1 addition & 1 deletion modules/auxiliary/gather/lansweeper_collector.rb
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ def report_cred(opts)
address: opts[:host],
port: opts[:port],
protocol: 'tcp',
workspace_id: myworkspace.id,
workspace_id: myworkspace_id,
service_name: opts[:creds_name]
}

Expand Down
2 changes: 1 addition & 1 deletion modules/auxiliary/gather/xerox_pwd_extract.rb
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ def register_creds(service_name, remote_host, remote_port, username, password)
credential_data = {
origin_type: :service,
module_fullname: self.fullname,
workspace_id: myworkspace.id,
workspace_id: myworkspace_id,
private_data: password,
private_type: :password,
username: username
Expand Down
2 changes: 1 addition & 1 deletion modules/auxiliary/gather/xerox_workcentre_5xxx_ldap.rb
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ def register_creds(service_name, remote_host, remote_port, username, password)
credential_data = {
origin_type: :service,
module_fullname: self.fullname,
workspace_id: myworkspace.id,
workspace_id: myworkspace_id,
private_data: password,
private_type: :password,
username: username
Expand Down

0 comments on commit 247546f

Please sign in to comment.