mirror of
https://github.com/djhackersdev/minime.git
synced 2026-04-25 16:20:19 -05:00
idz: Ignore ServerBox traffic
This commit is contained in:
parent
f2434cef7e
commit
206d12742a
|
|
@ -48,6 +48,12 @@ function writeServerHello(aesKey: Buffer, rsaKey: RsaKey): Buffer {
|
|||
function readClientHello(buf: Buffer) {
|
||||
const magic = buf.readUInt32LE(0x00);
|
||||
|
||||
if (magic === 0xFE78571D) {
|
||||
throw new Error(
|
||||
"Server Box data, ignore."
|
||||
);
|
||||
}
|
||||
|
||||
if (magic !== 0x01020304) {
|
||||
throw new Error(
|
||||
"Invalid magic number, cryptographic processing probably incorrect."
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user