Skip to content

Commit 1b7d8f1

Browse files
committed
Fix a whitespace issue, restore option naming
1 parent 695e124 commit 1b7d8f1

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ exploitation can take a few minutes.
2020

2121
## Options
2222

23-
### WaitTimeout
23+
### WAIT_TIMEOUT
2424
Seconds to wait to trigger the payload
2525
### NameField
2626
Name of the element for the Name field

modules/exploits/multi/http/phpmailer_arg_injection.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ def initialize(info = {})
6060
])
6161
register_advanced_options(
6262
[
63-
OptInt.new('WaitTimeout', [true, 'Seconds to wait to trigger the payload', 300]),
63+
OptInt.new('WAIT_TIMEOUT', [true, 'Seconds to wait to trigger the payload', 300]),
6464
OptString.new('NameField', [true, 'Name of the element for the Name field', 'name'], regex: /^([^\t\n\f \/>"'=]+)$/),
6565
OptString.new('EmailField', [true, 'Name of the element for the Email field', 'email'], regex: /^([^\t\n\f \/>"'=]+)$/),
6666
OptString.new('MessageField', [true, 'Name of the element for the Message field', 'message'], regex: /^([^\t\n\f \/>"'=]+)$/)
@@ -72,7 +72,7 @@ def trigger(trigger_uri)
7272

7373
page_found = false
7474
sleep_time = 10
75-
wait_time = datastore['WaitTimeout']
75+
wait_time = datastore['WAIT_TIMEOUT']
7676
print_status("Waiting for up to #{wait_time} seconds to trigger the payload")
7777
while wait_time > 0
7878
sleep(sleep_time)

0 commit comments

Comments
 (0)