mirror of
https://gitea.tendokyu.moe/AttackVector/AVNetwork.git
synced 2026-09-30 02:57:58 +03:00
ATKVNetwork initial Release
This commit is contained in:
@@ -0,0 +1,37 @@
|
||||
from misc import INFINITAS_SERVER_SALT, KONASUTE_SERVER_SALT, sign_with_salt
|
||||
from lz77 import lz77_compress
|
||||
|
||||
# EACNET Global
|
||||
|
||||
EAC_PROTOCOL_1 = "2017012700"
|
||||
EAC_PROTOCOL_2 = "2020090800"
|
||||
EAC_XML = "eacnet"
|
||||
EAC_RESULT = "response"
|
||||
|
||||
ddrgpHash = "e9384c43b026c80861fecd8155afdf2146dd33bef7d52b8f486e2dd36a83429e"
|
||||
gitadoraHash = "6aebc37af1b43156629174e0911b73fcb6a12db276571100b50e46fcef5426dc"
|
||||
nostalgiaHash = "328d0edacc7229ddf0132d447e84d39e72656bb4d740a48954de327c39453657"
|
||||
sdvxHash = "59f4f4fafc5355b06987dadb2a0f5b78bc39109855ef0432e11a5f8d932d953a"
|
||||
popnHash = "81d95bd3f5868369e40f49af893f36ebe234ee24b6d5e8e61006d9a7082a0721"
|
||||
|
||||
# IIDX
|
||||
|
||||
IIDX_Protocol = "P2D:2015091800"
|
||||
IIDX_XML = "p2d"
|
||||
IIDX_RESULT = "result"
|
||||
|
||||
infinitasHash = "f08455aa4b35ac1bee8850f98f7a53d723b5a4cb11e5b995b73f9fd1f8a12d19"
|
||||
infinitasVersionHash = "21753d7a96529eac0fc2c96343863e6b38b1011247ca3807f8657be6e7d41458"
|
||||
|
||||
|
||||
def Respond(binary_data, protocolVersion):
|
||||
if isinstance(binary_data, str):
|
||||
binary_data = binary_data.encode("utf-8")
|
||||
if protocolVersion == IIDX_Protocol:
|
||||
return IIDX_Protocol.encode("utf-8") + sign_with_salt(INFINITAS_SERVER_SALT, binary_data) + lz77_compress(binary_data)
|
||||
|
||||
elif protocolVersion == EAC_PROTOCOL_1:
|
||||
return EAC_PROTOCOL_1.encode("utf-8") + sign_with_salt(KONASUTE_SERVER_SALT, binary_data) + lz77_compress(binary_data)
|
||||
|
||||
elif protocolVersion == EAC_PROTOCOL_2:
|
||||
return EAC_PROTOCOL_2.encode("utf-8") + sign_with_salt(KONASUTE_SERVER_SALT, binary_data) + lz77_compress(binary_data)
|
||||
Reference in New Issue
Block a user