File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed
modules/auxiliary/scanner/ssl Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -357,6 +357,11 @@ def getkeys()
357
357
358
358
print_status ( "#{ peer } - Getting public key constants..." )
359
359
n , e = get_ne
360
+
361
+ if n . nil? || e . nil?
362
+ print_error ( "#{ peer } - Failed to get public key, aborting." )
363
+ end
364
+
360
365
vprint_status ( "#{ peer } - n: #{ n } " )
361
366
vprint_status ( "#{ peer } - e: #{ e } " )
362
367
print_status ( "#{ peer } - #{ Time . now . getutc } - Starting." )
@@ -368,11 +373,12 @@ def getkeys()
368
373
end
369
374
370
375
p , q = get_factors ( bleed , n ) # Try to find factors in mem
371
- unless p . nil? || q . nil?
376
+
377
+ unless p . nil? || q . nil?
372
378
key = key_from_pqe ( p , q , e )
373
379
print_good ( "#{ peer } - #{ Time . now . getutc } - Got the private key" )
374
380
375
- print_status ( key . export )
381
+ print_status ( key . export )
376
382
path = store_loot (
377
383
"openssl.heartbleed.server" ,
378
384
"text/plain" ,
You can’t perform that action at this time.
0 commit comments