mirror of
https://github.com/Mayuri-Chan/pyrofork.git
synced 2025-12-29 12:04:51 +00:00
Remove info logs from protocol impls
This commit is contained in:
parent
ef9fc969d3
commit
43483a1ccd
5 changed files with 0 additions and 9 deletions
|
|
@ -31,8 +31,6 @@ class TCPAbridged(TCP):
|
||||||
super().connect(address)
|
super().connect(address)
|
||||||
super().sendall(b"\xef")
|
super().sendall(b"\xef")
|
||||||
|
|
||||||
log.info("Connected{}!".format(" with proxy" if self.proxy_enabled else ""))
|
|
||||||
|
|
||||||
def sendall(self, data: bytes, *args):
|
def sendall(self, data: bytes, *args):
|
||||||
length = len(data) // 4
|
length = len(data) // 4
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -55,8 +55,6 @@ class TCPAbridgedO(TCP):
|
||||||
|
|
||||||
super().sendall(nonce)
|
super().sendall(nonce)
|
||||||
|
|
||||||
log.info("Connected{}!".format(" with proxy" if self.proxy_enabled else ""))
|
|
||||||
|
|
||||||
def sendall(self, data: bytes, *args):
|
def sendall(self, data: bytes, *args):
|
||||||
length = len(data) // 4
|
length = len(data) // 4
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -34,7 +34,6 @@ class TCPFull(TCP):
|
||||||
def connect(self, address: tuple):
|
def connect(self, address: tuple):
|
||||||
super().connect(address)
|
super().connect(address)
|
||||||
self.seq_no = 0
|
self.seq_no = 0
|
||||||
log.info("Connected{}!".format(" with proxy" if self.proxy_enabled else ""))
|
|
||||||
|
|
||||||
def sendall(self, data: bytes, *args):
|
def sendall(self, data: bytes, *args):
|
||||||
# 12 = packet_length (4), seq_no (4), crc32 (4) (at the end)
|
# 12 = packet_length (4), seq_no (4), crc32 (4) (at the end)
|
||||||
|
|
|
||||||
|
|
@ -32,8 +32,6 @@ class TCPIntermediate(TCP):
|
||||||
super().connect(address)
|
super().connect(address)
|
||||||
super().sendall(b"\xee" * 4)
|
super().sendall(b"\xee" * 4)
|
||||||
|
|
||||||
log.info("Connected{}!".format(" with proxy" if self.proxy_enabled else ""))
|
|
||||||
|
|
||||||
def sendall(self, data: bytes, *args):
|
def sendall(self, data: bytes, *args):
|
||||||
super().sendall(pack("<i", len(data)) + data)
|
super().sendall(pack("<i", len(data)) + data)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -56,8 +56,6 @@ class TCPIntermediateO(TCP):
|
||||||
|
|
||||||
super().sendall(nonce)
|
super().sendall(nonce)
|
||||||
|
|
||||||
log.info("Connected{}!".format(" with proxy" if self.proxy_enabled else ""))
|
|
||||||
|
|
||||||
def sendall(self, data: bytes, *args):
|
def sendall(self, data: bytes, *args):
|
||||||
super().sendall(
|
super().sendall(
|
||||||
AES.ctr256_encrypt(
|
AES.ctr256_encrypt(
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue