Skip to content

Commit 434593d

Browse files
committed
Suggestion and rubocop fixes
1 parent a812617 commit 434593d

File tree

4 files changed

+1
-7
lines changed

4 files changed

+1
-7
lines changed

modules/exploits/linux/http/dlink_hnap_login_bof.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,6 @@ def exploit
270270
'ssl' => false # do not use SSL
271271
})
272272

273-
datastore['SSL'] = true if ssl_restore
274273
print_status("#{peer} - Asking the device to download and execute #{service_url}")
275274

276275
filename = rand_text_alpha_lower(rand(8) + 2)

modules/exploits/linux/http/vestacp_exec.rb

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,6 @@ def on_request_uri(cli, _request)
252252
end
253253

254254
def start_http_server
255-
256255
start_service({
257256
'Uri' => {
258257
'Proc' => proc do |cli, req|
@@ -267,6 +266,5 @@ def start_http_server
267266
# the SSL setting from the datastore.
268267
# Once the URI is retrieved, we will restore the SSL settings within the datastore.
269268
@second_stage_url = get_uri
270-
271269
end
272270
end

modules/exploits/multi/misc/ibm_tm1_unauth_rce.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -541,7 +541,6 @@ def exploit
541541
}
542542
)
543543

544-
545544
# Step 4: send the server config update packet, and ignore what it sends back
546545
print_status('Changing authentication method to 4 (CAM auth)')
547546
upd_cent = update_auth(4)

modules/exploits/windows/http/manageengine_adaudit_plus_cve_2022_28219.rb

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ def initialize(info = {})
7878
end
7979

8080
def srv_host
81-
if ((datastore['SRVHOST'] == '0.0.0.0') || (datastore['SRVHOST'] == '::'))
81+
if (datastore['SRVHOST'] == '0.0.0.0') || (datastore['SRVHOST'] == '::')
8282
return datastore['URIHOST'] || Rex::Socket.source_address(rhost)
8383
end
8484

@@ -417,7 +417,6 @@ def upload_payload(payload, queue)
417417
end
418418

419419
def serve_http_file(path, respond_with = '')
420-
421420
start_service({
422421
'Uri' => {
423422
'Proc' => proc do |cli, _req|
@@ -427,7 +426,6 @@ def serve_http_file(path, respond_with = '')
427426
},
428427
'ssl' => false # do not use SSL
429428
})
430-
431429
end
432430

433431
def create_json_request(xml_payload)

0 commit comments

Comments
 (0)