def decode_img(src_path, dst_path): data = utility.get_json({'src_path': src_path, 'dst_path': dst_path}) data = utility.aes_encode(data, "money888money888") data = data.encode() data = Flag.SEND_URL_FLAG.to_bytes(4, 'little') + data return data
def send_url(user_name, xml): data = utility.get_json({'user_name': user_name, 'xml': xml}) data = utility.aes_encode(data, "money888money888") data = data.encode() data = Flag.DECRYPT_DB_FLAG.to_bytes(4, 'little') + data return data
def send_vid(user_name, file_path): data = utility.get_json({'user_name': user_name, 'file_path': file_path}) data = utility.aes_encode(data, "money888money888") data = data.encode() data = Flag.SEND_VID_FLAG.to_bytes(4, 'little') + data return data
def SendTest(self, Data): # self.counter += 1 # # self.Send(self.Client, Data) data = utility.get_json({ 'user_name': "wxid_thfmvxhuch0x22", 'text': Data }) print(data) data = utility.aes_encode(data, "money888money888") data = data.encode() data = Flag.SEND_MSG_FLAG.to_bytes(4, 'little') + data # print(data) self.Send(Sender=self.Client, Data=data)
def send_msg(user_name, text): data = utility.get_json({'user_name': user_name, 'text': text}) data = utility.aes_encode(data, "money888money888") data = data.encode() data = Flag.SEND_MSG_FLAG.to_bytes(4, 'little') + data return data