* ZGrab 2.0 and ZGrab have different schemas. * This is a convenience function to handle both conditions for full scans.
(results, index)
| 64 | * This is a convenience function to handle both conditions for full scans. |
| 65 | */ |
| 66 | function get_tls_log(results, index) { |
| 67 | let tls_log; |
| 68 | |
| 69 | try { |
| 70 | if (Object.hasOwn(results[index]['data']['http'], 'result')) { |
| 71 | // ZGrab 2.0 |
| 72 | tls_log = results[index]['data']['http']['result']['response']['request']['tls_log']['handshake_log']; |
| 73 | } else { |
| 74 | // ZGrab |
| 75 | tls_log = results[index]['data']['http']['response']['request']['tls_handshake']; |
| 76 | } |
| 77 | } catch (error) { |
| 78 | tls_log = {}; |
| 79 | } |
| 80 | |
| 81 | return tls_log; |
| 82 | } |
| 83 | |
| 84 | /** |
| 85 | * ZGrab 2.0 and ZGrab have different schemas. |
no outgoing calls
no test coverage detected