@@ -66,7 +66,7 @@ size_t path_do_execve(const char* file_buf, const string& str_root_key, size_t |
66 | 66 |
|
67 | 67 | size_t do_execve_entry_hook_jump_back_addr = do_execve_entry_addr + 4; |
68 | 68 |
|
69 | | - string str_show_root_key_mem_byte = bytesToHexString((const byte*)str_root_key.c_str(), str_root_key.length()); |
| 69 | + string str_show_root_key_mem_byte = bytesToHexString((const unsigned char*)str_root_key.c_str(), str_root_key.length()); |
70 | 70 | cout << "#生成的ROOT密匙字节集:" << str_show_root_key_mem_byte.c_str() << endl << endl; |
71 | 71 | vec_out_patch_bytes_data.push_back({ str_show_root_key_mem_byte, hook_func_start_addr }); |
72 | 72 |
|
@@ -161,7 +161,7 @@ size_t path_do_execve(const char* file_buf, const string& str_root_key, size_t |
161 | 161 | nHookFuncSize = strBytes.length() / 2; |
162 | 162 | char hookOrigCmd[4] = { 0 }; |
163 | 163 | memcpy(&hookOrigCmd, (void*)((size_t)file_buf + do_execve_entry_addr), sizeof(hookOrigCmd)); |
164 | | - string strHookOrigCmd = bytesToHexString((const byte*)hookOrigCmd, sizeof(hookOrigCmd)); |
| 164 | + string strHookOrigCmd = bytesToHexString((const unsigned char*)hookOrigCmd, sizeof(hookOrigCmd)); |
165 | 165 | strBytes = strHookOrigCmd + strBytes.substr(0x4 * 2); |
166 | 166 | vec_out_patch_bytes_data.push_back({ strBytes, hook_func_start_addr }); |
167 | 167 | stringstream sstrAsm2; |
@@ -212,7 +212,7 @@ size_t path_avc_denied(const char* file_buf, size_t hook_func_start_addr, size_t |
212 | 212 | size_t nHookFuncSize = strBytes.length() / 2; |
213 | 213 | char hookOrigCmd[4] = { 0 }; |
214 | 214 | memcpy(&hookOrigCmd, (void*)((size_t)file_buf + avc_denied_entry_addr), sizeof(hookOrigCmd)); |
215 | | - string strHookOrigCmd = bytesToHexString((const byte*)hookOrigCmd, sizeof(hookOrigCmd)); |
| 215 | + string strHookOrigCmd = bytesToHexString((const unsigned char*)hookOrigCmd, sizeof(hookOrigCmd)); |
216 | 216 | strBytes = strBytes.substr(0, (0x6C) * 2) + strHookOrigCmd + strBytes.substr((0x6C + 4) * 2); |
217 | 217 | vec_out_patch_bytes_data.push_back({ strBytes, hook_func_start_addr }); |
218 | 218 | stringstream sstrAsm2; |
|