Skip to content

Commit 772bec2

Browse files
committed
Fix various typos
1 parent 3f69251 commit 772bec2

21 files changed

+47
-52
lines changed

modules/auxiliary/admin/vmware/tag_vm.rb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,23 +40,23 @@ def run
4040
result = vim_log_event_vm(vm_ref, datastore['MSG'])
4141
case result
4242
when :noresponse
43-
print_error "Recieved no Response"
43+
print_error "Received no response"
4444
when :expired
4545
print_error "The login session appears to have expired"
4646
when :error
47-
print_error "An error occured"
47+
print_error "An error occurred"
4848
else
49-
print_good "User Event logged"
49+
print_good "User Event Logged"
5050
end
5151
when :noresponse
52-
print_error "Recieved no Response"
52+
print_error "Received no response"
5353
when :expired
5454
print_error "The login session appears to have expired"
5555
when :error
5656
print_error @vim_soap_error
5757
end
5858
else
59-
print_error "Login Failure on #{datastore['RHOST']}"
59+
print_error "Login failure on #{datastore['RHOST']}"
6060
return
6161
end
6262
end

modules/auxiliary/gather/avtech744_dvr_accounts.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ def run
3939
end
4040

4141
unless res.code == 200
42-
fail_with(Failure::Unknown, 'An unknown error occured')
42+
fail_with(Failure::Unknown, 'An unknown error occurred')
4343
end
4444

4545
raw_collection = extract_data(res.body)

modules/auxiliary/gather/shodan_honeyscore.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ def run
8686
elsif score == 1.0
8787
print_good("#{tgt} is definitely a honeypot")
8888
else # We shouldn't ever get here as the previous checks should catch an unexpected response
89-
print_error('An unexpected error occured.')
89+
print_error('An unexpected error occurred.')
9090
return
9191
end
9292
print_score(score)

modules/auxiliary/scanner/oracle/oracle_hashdump.rb

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def run_host(ip)
3232
ver = prepare_exec(query)
3333

3434
if ver.nil?
35-
print_error("An Error has occured, check your OPTIONS")
35+
print_error("An Error has occurred, check your OPTIONS")
3636
return
3737
end
3838

@@ -84,7 +84,7 @@ def run_host(ip)
8484

8585
end
8686
rescue => e
87-
print_error("An error occured. The supplied credentials may not have proper privs")
87+
print_error("An error occurred. The supplied credentials may not have proper privs")
8888
return
8989
end
9090
print_status("Hash table :\n #{tbl}")
@@ -131,7 +131,4 @@ def report_hashes(table, is_11g, ip, service)
131131
print_good("Hash Table has been saved")
132132
end
133133

134-
135-
136-
137134
end

modules/auxiliary/scanner/postgres/postgres_hashdump.rb

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ def run_host(ip)
5353
# Error handling routine here, borrowed heavily from todb
5454
case res.keys[0]
5555
when :conn_error
56-
print_error("A Connection Error occured")
56+
print_error("A Connection Error Occurred")
5757
return
5858
when :sql_error
5959
# We know the credentials worked but something else went wrong
@@ -135,6 +135,4 @@ def run_host(ip)
135135

136136
end
137137

138-
139-
140138
end

modules/auxiliary/scanner/postgres/postgres_schemadump.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ def smart_query(query_string)
9292
# Error handling routine here, borrowed heavily from todb
9393
case res.keys[0]
9494
when :conn_error
95-
print_error("A Connection Error occured")
95+
print_error("A Connection Error Occurred")
9696
return
9797
when :sql_error
9898
case res[:sql_error]

modules/auxiliary/scanner/vmware/vmware_enum_permissions.rb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,11 @@ def run_host(ip)
4040
esx_roles = vim_get_roles
4141
case esx_roles
4242
when :noresponse
43-
print_error "Recieved no Response from #{ip}"
43+
print_error "Received no response from #{ip}"
4444
when :expired
4545
print_error "The login session appears to have expired on #{ip}"
4646
when :error
47-
print_error "An error occured while trying to enumerate the roles on #{ip}"
47+
print_error "An error occurred while trying to enumerate the roles on #{ip}"
4848
else
4949
esx_roles.each do |role|
5050
role_map[role['roleId']] = {
@@ -58,11 +58,11 @@ def run_host(ip)
5858
esx_permissions = vim_get_all_permissions
5959
case esx_permissions
6060
when :noresponse
61-
print_error "Recieved no Response from #{ip}"
61+
print_error "Received no response from #{ip}"
6262
when :expired
6363
print_error "The login session appears to have expired on #{ip}"
6464
when :error
65-
print_error "An error occured while trying to enumerate the permissions on #{ip}"
65+
print_error "An error occurred while trying to enumerate the permissions on #{ip}"
6666
else
6767
tmp_perms = Rex::Text::Table.new(
6868
'Header' => "Permissions for VMWare #{ip}",
@@ -80,7 +80,7 @@ def run_host(ip)
8080
vprint_good("Permission info stored in: #{f}")
8181
end
8282
else
83-
print_error "Login Failure on #{ip}"
83+
print_error "Login failure on #{ip}"
8484
return
8585
end
8686
end

modules/auxiliary/scanner/vmware/vmware_enum_sessions.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,11 @@ def run_host(ip)
3737
vim_sessions = vim_get_session_list
3838
case vim_sessions
3939
when :noresponse
40-
print_error "Connection Error - Recieved No Reply from #{ip}"
40+
print_error "Connection error - Received no reply from #{ip}"
4141
when :error
42-
print_error "An error has occured"
42+
print_error "An error has occurred"
4343
when :expired
44-
print_error "The Session is no longer Authenticated"
44+
print_error "The session is no longer authenticated"
4545
else
4646
output = ''
4747
vim_sessions.each do |vsession|
@@ -66,7 +66,7 @@ def run_host(ip)
6666
end
6767
end
6868
else
69-
print_error "Login Failure on #{ip}"
69+
print_error "Login failure on #{ip}"
7070
return
7171
end
7272
end

modules/auxiliary/scanner/vmware/vmware_enum_users.rb

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,11 @@ def run_host(ip)
5050
unless user_list.nil?
5151
case user_list
5252
when :noresponse
53-
print_error "Recieved no Response from #{ip}"
53+
print_error "Received no response from #{ip}"
5454
when :expired
5555
print_error "The login session appears to have expired on #{ip}"
5656
when :error
57-
print_error "An error occured while trying to enumerate the users for #{domain} on #{ip}"
57+
print_error "An error occurred while trying to enumerate the users for #{domain} on #{ip}"
5858
else
5959
user_list.each do |obj|
6060
if obj['group'] == 'true'
@@ -74,11 +74,11 @@ def run_host(ip)
7474
esx_domains = vim_get_domains
7575
case esx_domains
7676
when :noresponse
77-
print_error "Recieved no Response from #{ip}"
77+
print_error "Received no response from #{ip}"
7878
when :expired
7979
print_error "The login session appears to have expired on #{ip}"
8080
when :error
81-
print_error "An error occured while trying to enumerate the domains on #{ip}"
81+
print_error "An error occurred while trying to enumerate the domains on #{ip}"
8282
else
8383
# Enumerate Domain Users and Groups
8484
esx_domains.each do |domain|
@@ -99,11 +99,11 @@ def run_host(ip)
9999
when nil
100100
next
101101
when :noresponse
102-
print_error "Recieved no Response from #{ip}"
102+
print_error "Received no response from #{ip}"
103103
when :expired
104104
print_error "The login session appears to have expired on #{ip}"
105105
when :error
106-
print_error "An error occured while trying to enumerate the users for #{domain} on #{ip}"
106+
print_error "An error occurred while trying to enumerate the users for #{domain} on #{ip}"
107107
else
108108
user_list.each do |obj|
109109
if obj['group'] == 'true'
@@ -123,7 +123,7 @@ def run_host(ip)
123123
end
124124
end
125125
else
126-
print_error "Login Failure on #{ip}"
126+
print_error "Login failure on #{ip}"
127127
return
128128
end
129129
end

modules/exploits/linux/http/linksys_wrt110_cmd_exec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ def check
5555
'uri' => '/HNAP1/'
5656
})
5757
rescue ::Rex::ConnectionError
58-
vprint_error("A connection error has occured")
58+
vprint_error("A connection error has occurred")
5959
return Exploit::CheckCode::Unknown
6060
end
6161

0 commit comments

Comments
 (0)