fix(scripts): changed the fake scanning to be more readable

This commit is contained in:
2026-02-16 19:15:32 -06:00
parent 32f26a1725
commit a9759795c4
3 changed files with 183 additions and 95 deletions

View File

@@ -93,7 +93,14 @@ scanner.connect(50000, "10.204.0.26", async () => {
});
scanner.on("data", async (data) => {
console.log("Response:", data.toString("ascii"));
console.log(
"Response:",
data
.toString("ascii")
.replace(/\x00/g, "") // remove null bytes
.replace(/\x1B\[[0-9;?]*[A-Za-z]/g, "") // remove ANSI escape codes
.trim(),
);
});
scanner.on("close", () => {