Skip to content

Commit 3f69251

Browse files
committed
OCD - store_loot & print_good
1 parent ef826b3 commit 3f69251

File tree

85 files changed

+103
-107
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

85 files changed

+103
-107
lines changed

modules/auxiliary/admin/http/wp_symposium_sql_injection.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ def run
142142

143143
unless credentials.empty?
144144
loot = store_loot("wp_symposium.http","text/plain", rhost, credentials)
145-
vprint_status("Credentials saved in: #{loot}")
145+
vprint_good("Credentials saved in: #{loot}")
146146
end
147147
end
148148
end

modules/auxiliary/admin/misc/sercomm_dump_config.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ def run
8181
end
8282

8383
loot_file = store_loot("router.config", "text/plain", rhost, config[:data], "#{rhost}router_config.txt", "Router Configurations")
84-
print_status("Router configuration dump stored in: #{loot_file}")
84+
print_good("Router configuration dump stored in: #{loot_file}")
8585

8686
parse_configuration(config[:data])
8787
end

modules/auxiliary/admin/postgres/postgres_readfile.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ def run
6060
}
6161
# No idea what the actual ctype will be, text/plain is just a guess
6262
path = store_loot('postgres.file', 'text/plain', rhost, loot, datastore['RFILE'])
63-
print_status("#{rhost}:#{rport} Postgres - #{datastore['RFILE']} saved in #{path}")
63+
print_good("#{rhost}:#{rport} Postgres - #{datastore['RFILE']} saved in #{path}")
6464
vprint_good "#{rhost}:#{rport} Postgres - Command complete."
6565
end
6666
postgres_logout if self.postgres_conn

modules/auxiliary/admin/webmin/edit_html_fileaccess.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ def run
9494
loot = $1
9595
f = ::File.basename(datastore['RPATH'])
9696
path = store_loot('webmin.file', 'application/octet-stream', rhost, loot, f, datastore['RPATH'])
97-
print_status("#{datastore['RPATH']} saved in #{path}")
97+
print_good("#{datastore['RPATH']} saved in #{path}")
9898
else
9999
print_error("Failed to retrieve the file")
100100
return

modules/auxiliary/gather/eaton_nsm_creds.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,6 @@ def run
113113
loot_filename = "eaton_nsm_creds.csv"
114114
loot_desc = "Eaton Network Shutdown Module Credentials"
115115
p = store_loot(loot_name, loot_type, datastore['RHOST'], cred_table.to_csv, loot_filename, loot_desc)
116-
print_status("Credentials saved in: #{p.to_s}")
116+
print_good("Credentials saved in: #{p.to_s}")
117117
end
118118
end

modules/auxiliary/gather/windows_deployment_services_shares.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ def parse_client_unattend(data)
236236
def loot_unattend(data)
237237
return if data.empty?
238238
path = store_loot('windows.unattend.raw', 'text/plain', rhost, data, "Windows Deployment Services")
239-
print_status("Stored unattend.xml in #{path}")
239+
print_good("Stored unattend.xml in #{path}")
240240
end
241241

242242
def report_creds(domain, user, pass)

modules/auxiliary/gather/xerox_pwd_extract.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ def run
5252
loot_filename = 'xerox_password.text'
5353
loot_desc = 'Xerox password harvester'
5454
p = store_loot(loot_name, loot_type, datastore['RHOST'], passwd, loot_filename, loot_desc)
55-
print_status("#{rhost}:#{jport} - Credentials saved in: #{p}")
55+
print_good("#{rhost}:#{jport} - Credentials saved in: #{p}")
5656

5757
register_creds('Xerox-HTTP', rhost, rport, 'Admin', passwd)
5858

modules/auxiliary/gather/xerox_workcentre_5xxx_ldap.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ def run
7676
loot_filename = 'ldap-creds.text'
7777
loot_desc = 'LDAP Pass-back Harvester'
7878
p = store_loot(loot_name, loot_type, datastore['RHOST'], @data, loot_filename, loot_desc)
79-
print_status("Credentials saved in: #{p}")
79+
print_good("Credentials saved in: #{p}")
8080

8181
register_creds('ldap', rhost, @ldap_port, ldap_binary_creds[0], ldap_binary_creds[1])
8282
end

modules/auxiliary/scanner/dcerpc/windows_deployment_services.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ def parse_client_unattend(data)
211211
def loot_unattend(archi, data)
212212
return if data.empty?
213213
p = store_loot('windows.unattend.raw', 'text/plain', rhost, data, archi, "Windows Deployment Services")
214-
print_status("Raw version of #{archi} saved as: #{p}")
214+
print_good("Raw version of #{archi} saved as: #{p}")
215215
end
216216

217217
def report_cred(opts)

modules/auxiliary/scanner/ftp/titanftp_xcrc_traversal.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ def run_host(ip)
9696

9797
fname = datastore['PATH'].gsub(/[\/\\]/, '_')
9898
p = store_loot("titanftp.traversal", "text/plain", ip, file_data, fname)
99-
print_status("Saved in: #{p}")
99+
print_good("Saved in: #{p}")
100100
vprint_status(file_data.inspect)
101101

102102
disconnect

0 commit comments

Comments
 (0)