Skip to content

Commit

Permalink
fxing unused import and string formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
0xff1ce committed Sep 25, 2024
1 parent 4c7214c commit 2fb331f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/core/operations/JA4FingerprintSummary.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
*/

import Operation from "../Operation.mjs";
import Utils from "../Utils.mjs";

/**
* JA4 Fingerprint Summary operation
Expand Down Expand Up @@ -67,7 +66,7 @@ class JA4FingerprintSummary extends Operation {
const sniMap = { d: "Yes (to domain)", i: "No (to IP)" };
retString += getProtocol(input);
retString += getTLSVersion(input);
retString += `\nSNI Extension Present: ${sniMap[input[3]] || "Invalid symbol: " + input[3]}`;
retString += `\nSNI Extension Present: ${sniMap[input[3]] || input[3] + " (Invalid Symbol)"}`;
retString += `\nNumber of Cipher Suites: ${input.slice(4, 6)}`;
retString += `\nNumber of Extensions: ${input.slice(6, 8)}`;
retString += getALPN(input, 8, 10);
Expand Down

0 comments on commit 2fb331f

Please sign in to comment.