Skip to content

Commit e93282b

Browse files
author
Tod Beardsley
committed
Drop calls to vprint_*
1 parent 2dc2ac1 commit e93282b

File tree

7 files changed

+5
-16
lines changed

7 files changed

+5
-16
lines changed

modules/auxiliary/admin/http/cnpilot_r_cmd_exec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ def cmd_exec_run(the_cookie)
107107
search_result = html.search('textarea').text
108108

109109
if search_result.nil?
110-
vprint_status('Command run did not return any results or invalid command. Note that cnPilot devices only have a restricted *nix command-set.')
110+
print_status('Command run did not return any results or invalid command. Note that cnPilot devices only have a restricted *nix command-set.')
111111
else
112112
print_good("#{search_result}")
113113

@@ -120,7 +120,7 @@ def cmd_exec_run(the_cookie)
120120
print_good("File saved in: #{p}")
121121
end
122122
else
123-
vprint_error("#{rhost}:#{rport} - Backdoor 'root' shell not found. Affected versions are - v4.2.3-R4 and newer. You can try to verify the shell at #{root_shell}")
123+
print_error("#{rhost}:#{rport} - Backdoor 'root' shell not found. Affected versions are - v4.2.3-R4 and newer. You can try to verify the shell at #{root_shell}")
124124
return
125125
end
126126
end

modules/auxiliary/admin/http/cnpilot_r_fpt.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ def read_file(the_cookie)
7171
results = res.body
7272

7373
if results.size.zero?
74-
vprint_status('File not found.')
74+
print_status('File not found.')
7575
else
7676
print_good("#{results}")
7777

@@ -84,7 +84,7 @@ def read_file(the_cookie)
8484
print_good("File saved in: #{p}")
8585
end
8686
else
87-
vprint_error("#{rhost}:#{rport} - Could not read file. You can manually check by accessing #{final_url}.")
87+
print_error("#{rhost}:#{rport} - Could not read file. You can manually check by accessing #{final_url}.")
8888
return
8989
end
9090
end

modules/auxiliary/admin/http/epmp1000_get_chart_cmd_exec.rb

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,6 @@ def cmd_exec(config_uri, cookie)
8080
)
8181

8282
if good_response
83-
vprint_line("#{res.body}")
84-
8583
path = store_loot('ePMP_cmd_exec', 'text/plain', rhost, res.body, 'Cambium ePMP 1000 Command Exec Results')
8684
print_status("#{rhost}:#{rport} - File saved in: #{path}")
8785
else

modules/auxiliary/admin/http/epmp1000_ping_cmd_exec.rb

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,6 @@ def cmd_exec(config_uri, cookie)
8383
)
8484

8585
if good_response
86-
vprint_line("#{res.body}")
87-
8886
path = store_loot('ePMP_cmd_exec', 'text/plain', rhost, res.body, 'Cambium ePMP 1000 Command Exec Results')
8987
print_status("#{rhost}:#{rport} - File saved in: #{path}")
9088
else

modules/auxiliary/scanner/http/epmp1000_cmd_exec.rb

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -231,8 +231,6 @@ def do_login(user, pass)
231231
}
232232
)
233233

234-
vprint_line("#{res.body}")
235-
236234
# Extract ePMP version
237235
res = send_request_cgi(
238236
{

modules/auxiliary/scanner/http/epmp1000_dump_config.rb

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,7 @@ def run_host(ip)
4747

4848
# Dump config
4949
def dump_config(config_uri, cookie)
50-
vprint_status('++++++++++++++++++++++++++++++++++++++')
51-
vprint_status("#{rhost}:#{rport} - Attempting to dump configuration...")
52-
vprint_status('++++++++++++++++++++++++++++++++++++++')
50+
print_status("#{rhost}:#{rport} - Attempting to dump configuration...")
5351
res = send_request_cgi(
5452
{
5553
'method' => 'GET',

modules/auxiliary/scanner/http/epmp1000_dump_hashes.rb

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -104,10 +104,7 @@ def hash_dump(config_uri, cookie)
104104
)
105105

106106
if good_response
107-
vprint_status('++++++++++++++++++++++++++++++++++++++')
108107
vprint_status("#{rhost}:#{rport} - Dumping password hashes")
109-
print_line("#{res.body}")
110-
vprint_status('++++++++++++++++++++++++++++++++++++++')
111108

112109
path = store_loot('ePMP_passwd', 'text/plain', rhost, res.body, 'Cambium ePMP 1000 password hashes')
113110
print_status("#{rhost}:#{rport} - Hashes saved in: #{path}")

0 commit comments

Comments
 (0)