Showing 16,065 of 22,177 total issues
Method parse_vmx
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def parse_vmx(vmx_data, filename)
vm = {}
unless vmx_data.nil? || vmx_data.empty?
vm['SharedFolders'] = []
vmx_data.each_line do |line|
Method initialize
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def initialize(info = {})
super(
update_info(
info,
'Name' => 'Gather MinIO Client Key',
Method get_report
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def get_report(api_key, checksum)
#
# We have to use Net::HTTP instead of HttpClient because of the following error:
# The supplied module name is ambiguous: undefined method `register_autofilter_ports'
#
Method initialize
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def initialize(info = {})
super(
update_info(
info,
'Name' => 'Multi Gather Resolve Hosts',
Method initialize
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def initialize(info = {})
super(
update_info(
info,
'Name' => 'Gather GRUB Password',
Method run
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def run
if client.nil?
print_error("Invalid session ID selected. Make sure the host isn't dead.")
return
end
Method initialize
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def initialize(info = {})
super(
update_info(
info,
'Name' => 'Multiple Linux / Unix Post Sudo Upgrade Shell',
Method initialize
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def initialize(info = {})
super(
update_info(
info,
'Name' => 'Write Messages to Users',
Method list_group_members
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def list_group_members(domain)
tbl = Rex::Text::Table.new(
'Header' => 'Account in Local Groups with Domain Context',
'Indent' => 1,
'Columns' =>
Method hyperv?
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def hyperv?
physical_host = get_regval_str('HKLM\\SOFTWARE\\Microsoft\\Virtual Machine\\Guest\\Parameters', 'PhysicalHostNameFullyQualified')
if physical_host
report_note(
Method initialize
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def initialize(info = {})
super(
update_info(
info,
'Name' => 'Windows Antivirus Exclusions Enumeration',
Method run
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def run
# Check if Exchange Server is installed on the target by checking the registry
if registry_key_exist?('HKLM\Software\Microsoft\ExchangeServer')
print_good('Exchange Server is present on target machine')
else
Method initialize
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def initialize(info = {})
super(
update_info(
info,
'Name' => 'FannyBMP or DementiaWheel Detection Registry Check',
Method list_currently_logged_on_users
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def list_currently_logged_on_users
return unless session.type == 'meterpreter'
tbl = Rex::Text::Table.new(
'Header' => 'Current Logged Users',
Method initialize
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def initialize(info = {})
super(
update_info(
info,
'Name' => 'Windows Gather Enumerate Domain',
Method get_onedrive_accounts
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def get_onedrive_accounts(reg, accounts, syncdata)
all_oda = {}
synctargets_used = []
ret = {}
reg.each do |ses|
Method process_hashes_and_versions
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def process_hashes_and_versions(hashes_and_versions)
hashes_and_versions.each do |hash, version|
if version >= VERSION_5 && version < VERSION_6
hashtype = 'md5u'
version_name = 'v5'
Method report_creds
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def report_creds(domain, user, pass)
return if (user.empty? || pass.empty?)
return if pass.include?('n.a.')
# Assemble data about the credential objects we will be creating
Method run
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def run
print_status("Gather PL/SQL Developer Histories and Credentials on #{sysinfo['Computer']}")
profiles = grab_user_profiles
pref_paths = []
Method decrypt
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def decrypt(csv_file)
csv = read_csv_file(csv_file)
print_good("#{csv.count} WUG rows loaded, #{@wug_total_secrets} unique nCredentialTypeIDs")
result = decrypt_wug_db(csv)
processed_rows = result[:processed_rows]