English 中文(简体)
利用肉类改变 a格为 j
原标题:Using memcpy to change a jnz to a jmp
  • 时间:2010-03-18 03:03:52
  •  标签:
  • memcpy

我的法典没有大量使用,但在这里却不奏效。

memcpy((PVOID)(enginebase+0x74C9D),(void *)0xEB,2);

(enginebase+0x74C9D)是我想要派遣的tes的地址的点。

(删除*)0xEB是我所希望的那种奖章。

唯一的问题是,这起坠毁事件是,这条线试图运行,我不知道什么是错的,什么是煽动的?

问题回答

<代码>(避免*)0xEB系指从<代码>0xEB上复制记忆。

unsigned char x = 0xEB;
memcpy((void*)(enginebase+0x74c9d), (void*)&x, 2);

页: 1 0xEB 到目的地。 BTW, 是2个正确价值,可以复制一只 by,用于节目记忆? 看一看好像是1,因为你重新版1。 我也认为你可以做些什么。

((char*)enginebase)[0x74c9d] = 0xEB; 

出于某种原因? (我没有故意隐瞒方案的经验)

<<>strong>memcpy()预计有2个点人前往来源和目的地缓冲。 你的第二个论点不是点,而是数据本身(如你所描述的那样,是jnz的代码)。 如果我正确理解你试图做些什么,那么你就应当把眼科作为其座标,并以该阵列的点子提供memcpy()。

b/c 您试图从指定空间(地址0xEB)中找到一个记忆点。





相关问题
trying to copy a char pointer using memcpy, getting an error

so I want to copy a char pointer, asked a friend and he said to use memcpy... so I am trying to do this: charFilenameAndPath=strtok(filename,"."); memcpy=(charFilename,charFilenameAndPath, sizeof(...

c++ std::pair, std::vector & memcopy

is it safe to memcopy myvect.size()*sizeof(foo) bytes from the memoryadress of the first element of a std::vector<std::pair<T1, T2> > myvect into an array of struct foo{ T1 first; ...

Easy way to implement memcpy() like CopyTo in C#

Is there an "easy" way to implement something like CopyTo() to MemberwiseCopy (instead of Clone() or MemberwiseClone) in C#? I don t want to create a new object, as I want everyone holding the old one ...

Help with a copy between buffers using memcpy C

I need to copy the content of one buffer to another one in blocks of n bytes (n might vary), several times to check the cache performance. I use memcpy, but I m afraid I m not getting successful ...

New not allocating enough memory?

Well, I m taking packets straight off the wire and extracting TCP streams from them. In the short, this means stripping off the various headers (eg, eth->IP->TCP->stream data). In the function ...

热门标签