Example #1
0
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
Example #2
0
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
Example #3
0
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
Example #4
0
    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)
Example #5
0
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