mirror of
https://github.com/gchq/CyberChef.git
synced 2025-04-21 23:36:16 -04:00
Fixed NetBIOS space removal
This commit is contained in:
parent
a7a0cacddb
commit
5ec210990b
1 changed files with 4 additions and 1 deletions
|
@ -56,7 +56,10 @@ const NetBIOS = {
|
||||||
output.push((((input[i] & 0xff) - offset) << 4) |
|
output.push((((input[i] & 0xff) - offset) << 4) |
|
||||||
(((input[i + 1] & 0xff) - offset) & 0xf));
|
(((input[i + 1] & 0xff) - offset) & 0xf));
|
||||||
}
|
}
|
||||||
output = output.filter(x => x !== 32);
|
for (let i = output.length - 1; i > 0; i--) {
|
||||||
|
if (output[i] === 32) output.splice(i, i);
|
||||||
|
else break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return output;
|
return output;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue