Skip to content

Commit 7208c10

Browse files
authored
Merge pull request #20330 from cgranleese-r7/fixes-conditional
Fixes issues in a few modules
2 parents b0dbe03 + 42f31c0 commit 7208c10

File tree

4 files changed

+6
-12
lines changed

4 files changed

+6
-12
lines changed

modules/auxiliary/gather/zabbix_toggleids_sqli.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ def authenticate
239239
end
240240

241241
sid = match[1]
242-
elsif
242+
else
243243
fail_with(Failure::Unknown, 'Server did not respond in an expected way')
244244
end
245245
end

modules/auxiliary/scanner/http/cert.rb

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

6666
if ( a < 1 or b > 0 )
6767
print_good("#{ip} - '#{vhostn}' : '" + before.to_s + "' - '" + after.to_s + "' (EXPIRED)'")
68-
elsif
68+
else
6969
# show verbose as status
7070
print_status("#{ip} - '#{vhostn}' : '" + before.to_s + "' - '" + after.to_s + "'")
7171
end

modules/auxiliary/scanner/lotus/lotus_domino_version.rb

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -77,12 +77,8 @@ def run_host(ip)
7777
else
7878
''
7979
end
80-
elsif
81-
if (res.code and res.headers['Location'])
82-
print_error("#{ip}:#{rport} #{res.code} Redirect to #{res.headers['Location']}")
83-
else
84-
''
85-
end
80+
elsif (res.code and res.headers['Location'])
81+
print_error("#{ip}:#{rport} #{res.code} Redirect to #{res.headers['Location']}")
8682
else
8783
''
8884
end

modules/exploits/windows/http/cogent_datahub_command.rb

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,8 @@ module has been tested successfully with Cogent DataHub 7.3.4 on
4949
register_options(
5050
[
5151
OptString.new('URIPATH', [ true, 'The URI to use (do not change)', '/']),
52-
OptPort.new('SRVPORT', [ true, 'The daemon port to listen on ' +
53-
'(do not change)', 80 ]),
54-
OptInt.new('WEBDAV_DELAY', [ true, 'Time that the HTTP Server will ' +
55-
'wait for the payload request', 20]),
52+
OptPort.new('SRVPORT', [ true, 'The daemon port to listen on (do not change)', 80 ]),
53+
OptInt.new('WEBDAV_DELAY', [ true, 'Time that the HTTP Server will wait for the payload request', 20]),
5654
OptString.new('UNCPATH', [ false, 'Override the UNC path to use.' ])
5755
])
5856
end

0 commit comments

Comments
 (0)