Skip to content

Commit b973927

Browse files
committed
Msftidy on digi_addp_reboot and pgpass_creds
1 parent 9166d12 commit b973927

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

modules/auxiliary/scanner/scada/digi_addp_reboot.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ def run_batch(batch)
7676
end
7777
select(nil, nil, nil, 0.25)
7878
retry
79-
end
79+
end
8080
end
8181

8282
rescue ::Interrupt
@@ -107,7 +107,7 @@ def run_batch(batch)
107107
info = Rex::Proto::ADDP.reply_to_string(res)
108108
print_status("#{ip}:#{rport} Sending reboot request to device with MAC #{res[:mac]}...")
109109
pkt = Rex::Proto::ADDP.request_reboot(res[:magic], res[:mac], datastore['ADDP_PASSWORD'])
110-
110+
111111
begin
112112
udp_sock.sendto(pkt, ip, rport, 0)
113113
rescue ::Errno::ENOBUFS
@@ -118,7 +118,7 @@ def run_batch(batch)
118118
select(nil, nil, nil, 0.25)
119119
retry
120120
end
121-
121+
122122
while (r = udp_sock.recvfrom(65535, 0.1) and r[1])
123123
parse_reply(r)
124124
end

modules/post/multi/gather/pgpass_creds.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ def run
6565
# Store the loot
6666
print_good("Downloading #{f}")
6767
pgpass_path = store_loot("postgres.pgpass", "text/plain", session, read_file(f), "#{f}", "pgpass #{f} file")
68-
print_good "Postgres credentials file saved to #{pgpass_path}"
68+
print_good "Postgres credentials file saved to #{pgpass_path}"
6969
# Store the creds
7070
parse_creds(f)
7171
end

0 commit comments

Comments
 (0)