|
@ -124,9 +124,6 @@ class verify_simple(verify_base): |
|
|
if length >= 8192 or length < 7: |
|
|
if length >= 8192 or length < 7: |
|
|
self.raw_trans = True |
|
|
self.raw_trans = True |
|
|
self.recv_buf = b'' |
|
|
self.recv_buf = b'' |
|
|
if self.decrypt_packet_num == 0: |
|
|
|
|
|
return None |
|
|
|
|
|
else: |
|
|
|
|
|
raise Exception('client_post_decrypt data error') |
|
|
raise Exception('client_post_decrypt data error') |
|
|
if length > len(self.recv_buf): |
|
|
if length > len(self.recv_buf): |
|
|
break |
|
|
break |
|
@ -134,9 +131,6 @@ class verify_simple(verify_base): |
|
|
if (binascii.crc32(self.recv_buf[:length]) & 0xffffffff) != 0xffffffff: |
|
|
if (binascii.crc32(self.recv_buf[:length]) & 0xffffffff) != 0xffffffff: |
|
|
self.raw_trans = True |
|
|
self.raw_trans = True |
|
|
self.recv_buf = b'' |
|
|
self.recv_buf = b'' |
|
|
if self.decrypt_packet_num == 0: |
|
|
|
|
|
return None |
|
|
|
|
|
else: |
|
|
|
|
|
raise Exception('client_post_decrypt data uncorrect CRC32') |
|
|
raise Exception('client_post_decrypt data uncorrect CRC32') |
|
|
|
|
|
|
|
|
pos = common.ord(self.recv_buf[2]) + 2 |
|
|
pos = common.ord(self.recv_buf[2]) + 2 |
|
@ -221,9 +215,6 @@ class verify_deflate(verify_base): |
|
|
if length >= 32768 or length < 6: |
|
|
if length >= 32768 or length < 6: |
|
|
self.raw_trans = True |
|
|
self.raw_trans = True |
|
|
self.recv_buf = b'' |
|
|
self.recv_buf = b'' |
|
|
if self.decrypt_packet_num == 0: |
|
|
|
|
|
return None |
|
|
|
|
|
else: |
|
|
|
|
|
raise Exception('client_post_decrypt data error') |
|
|
raise Exception('client_post_decrypt data error') |
|
|
if length > len(self.recv_buf): |
|
|
if length > len(self.recv_buf): |
|
|
break |
|
|
break |
|
|