s/uc_hook_h/uchook/g

This commit is contained in:
Jonathon Reinhart
2015-09-03 22:39:23 -04:00
parent 99e34d212a
commit 5f32e2c1ae
20 changed files with 38 additions and 38 deletions

View File

@@ -143,7 +143,7 @@ static bool hook_mem_invalid(ucengine *uc, uc_mem_type type,
int main(int argc, char **argv, char **envp)
{
ucengine *uc;
uc_hook_h trace1, trace2;
uchook trace1, trace2;
uc_err err;
uint32_t esp, eip;
int32_t buf1[1024], buf2[1024], readbuf[1024];

View File

@@ -161,7 +161,7 @@ static bool hook_mem_invalid(ucengine *uc, uc_mem_type type,
int main(int argc, char **argv, char **envp)
{
ucengine *uc;
uc_hook_h trace1, trace2;
uchook trace1, trace2;
uc_err err;
uint32_t addr, testval;
int32_t buf1[1024], buf2[1024], readbuf[1024];

View File

@@ -156,7 +156,7 @@ static bool hook_mem_invalid(ucengine *uc, uc_mem_type type,
int main(int argc, char **argv, char **envp)
{
ucengine *uc;
uc_hook_h trace1, trace2;
uchook trace1, trace2;
uc_err err;
uint32_t addr, testval;
int32_t buf1[1024], buf2[1024], readbuf[1024];

View File

@@ -29,7 +29,7 @@ static void test_arm(void)
{
ucengine *uc;
uc_err err;
uc_hook_h trace1, trace2;
uchook trace1, trace2;
int r0 = 0x1234; // R0 register
int r2 = 0x6789; // R1 register
@@ -85,7 +85,7 @@ static void test_thumb(void)
{
ucengine *uc;
uc_err err;
uc_hook_h trace1, trace2;
uchook trace1, trace2;
int sp = 0x1234; // R0 register

View File

@@ -28,7 +28,7 @@ static void test_arm64(void)
{
ucengine *uc;
uc_err err;
uc_hook_h trace1, trace2;
uchook trace1, trace2;
int64_t x11 = 0x1234; // X11 register
int64_t x13 = 0x6789; // X13 register

View File

@@ -25,7 +25,7 @@ static void hook_code(ucengine *uc, uint64_t address, uint32_t size, void *user_
static void test_m68k(void)
{
ucengine *uc;
uc_hook_h trace1, trace2;
uchook trace1, trace2;
uc_err err;
int d0 = 0x0000; // d0 data register

View File

@@ -29,7 +29,7 @@ static void test_mips_eb(void)
{
ucengine *uc;
uc_err err;
uc_hook_h trace1, trace2;
uchook trace1, trace2;
int r1 = 0x6789; // R1 register
@@ -78,7 +78,7 @@ static void test_mips_el(void)
{
ucengine *uc;
uc_err err;
uc_hook_h trace1, trace2;
uchook trace1, trace2;
int r1 = 0x6789; // R1 register

View File

@@ -29,7 +29,7 @@ static void test_sparc(void)
{
ucengine *uc;
uc_err err;
uc_hook_h trace1, trace2;
uchook trace1, trace2;
int g1 = 0x1230; // G1 register
int g2 = 0x6789; // G2 register

View File

@@ -171,7 +171,7 @@ static void test_i386(void)
ucengine *uc;
uc_err err;
uint32_t tmp;
uc_hook_h trace1, trace2;
uchook trace1, trace2;
int r_ecx = 0x1234; // ECX register
int r_edx = 0x7890; // EDX register
@@ -232,7 +232,7 @@ static void test_i386_jump(void)
{
ucengine *uc;
uc_err err;
uc_hook_h trace1, trace2;
uchook trace1, trace2;
printf("===================================\n");
printf("Emulate i386 code with jump\n");
@@ -328,7 +328,7 @@ static void test_i386_invalid_mem_read(void)
{
ucengine *uc;
uc_err err;
uc_hook_h trace1, trace2;
uchook trace1, trace2;
int r_ecx = 0x1234; // ECX register
int r_edx = 0x7890; // EDX register
@@ -385,7 +385,7 @@ static void test_i386_invalid_mem_write(void)
{
ucengine *uc;
uc_err err;
uc_hook_h trace1, trace2, trace3;
uchook trace1, trace2, trace3;
uint32_t tmp;
int r_ecx = 0x1234; // ECX register
@@ -457,7 +457,7 @@ static void test_i386_jump_invalid(void)
{
ucengine *uc;
uc_err err;
uc_hook_h trace1, trace2;
uchook trace1, trace2;
int r_ecx = 0x1234; // ECX register
int r_edx = 0x7890; // EDX register
@@ -513,7 +513,7 @@ static void test_i386_inout(void)
{
ucengine *uc;
uc_err err;
uc_hook_h trace1, trace2, trace3, trace4;
uchook trace1, trace2, trace3, trace4;
int r_eax = 0x1234; // EAX register
int r_ecx = 0x6789; // ECX register
@@ -574,7 +574,7 @@ static void test_x86_64(void)
{
ucengine *uc;
uc_err err;
uc_hook_h trace1, trace2, trace3, trace4;
uchook trace1, trace2, trace3, trace4;
int64_t rax = 0x71f3029efd49d41d;
int64_t rbx = 0xd87b45277f133ddb;
@@ -689,7 +689,7 @@ static void test_x86_64(void)
static void test_x86_64_syscall(void)
{
ucengine *uc;
uc_hook_h trace1;
uchook trace1;
uc_err err;
int64_t rax = 0x100;

View File

@@ -90,7 +90,7 @@ static void test_i386(void)
{
ucengine *uc;
uc_err err;
uc_hook_h trace1, trace2;
uchook trace1, trace2;
int r_esp = ADDRESS + 0x200000; // ESP register