English 中文(简体)
c 基本记忆
原标题:c# basic memory reading
  • 时间:2011-11-22 17:01:23
  •  标签:
  • c#
  • memory

kay i 放弃了护卫,i dont 知道一只狗会得到任何价值,但现在却 that。

i 只读4个字面值。 i 在记忆中搜寻42只字面。

i 已经知道,阵列的规模必须达到4,但必须达到真正的民主价值。

如:12732139

这样一来,我写了一封信,告诉我存放在沥青阵列内的价值观。

for (int j = 0; j < bytes.Length; ++j ) {
                 svalue += "+" + bytes[j];
           }

i) 从中获取真实的分数

216 184 93 255 // these are stored inside the bytearray which should be 42 dec.

i guess something went really wrong ?

i 读为这些价值观

ReadProcessMemory(readHandle, ((IntPtr)baseAddress + 0x000D3A10), bytes, (UIntPtr)4, ref rw);


int test = BitConverter.ToInt32(new_bytes,0);

是否有任何想法?

// OLD My full code:

private void button1_Click(object sender, EventArgs e) {

    Process[] iexp = Process.GetProcessesByName("iexplore");
    if (iexp.Length == 0) {
        listBox1.Items.Add("NOT FOUND");
    }
    Process internet = iexp[0];
    uint baseAddress = (uint)internet.MainModule.BaseAddress.ToInt32();
    IntPtr readHandle = OpenProcess(0x0010, false, (uint)internet.Id);
    byte[] bytes = new byte[24];
    uint rw = 0;
    uint size=sizeof(int);

    ReadProcessMemory(readHandle, ((IntPtr)baseAddress + 0x00581CCE), bytes, 
        (UIntPtr)24, ref rw);
    string sname= Encoding.ASCII.GetString(bytes);
    ReadProcessMemory(readHandle, (IntPtr)baseAddress + 0x00528744, bytes, 
        (UIntPtr)size, ref rw);
    int someNumber = BitConverter.ToInt32(bytes, 0);

    listBox1.Items.Add(sname);
    listBox1.Items.Add(someNumber);

}
最佳回答

这项职能只是读写。 它没有种类的概念,因此不知道有哪一种情况,甚至它们有很长的时间。 如果您能亲眼阅读你的话。 你们需要确切了解你们想要读什么以及数据要做什么。

虽然在你试图读写时: 你可以在休息室里尝试和读到tes子,当你碰到一只 by子时,就停止了,而这正是C用来说明扼杀结束的。

问题回答

你们应当能够通过与因特网探索者的运行情况挂钩。

您必须使用COM interop,但上述解决办法将允许你在 desktop上查阅因特网探索者的任何运行情况,并允许你从那里获得完整的窗口/文件物体模型。





相关问题
Anyone feel like passing it forward?

I m the only developer in my company, and am getting along well as an autodidact, but I know I m missing out on the education one gets from working with and having code reviewed by more senior devs. ...

NSArray s, Primitive types and Boxing Oh My!

I m pretty new to the Objective-C world and I have a long history with .net/C# so naturally I m inclined to use my C# wits. Now here s the question: I feel really inclined to create some type of ...

C# Marshal / Pinvoke CBitmap?

I cannot figure out how to marshal a C++ CBitmap to a C# Bitmap or Image class. My import looks like this: [DllImport(@"test.dll", CharSet = CharSet.Unicode)] public static extern IntPtr ...

How to Use Ghostscript DLL to convert PDF to PDF/A

How to user GhostScript DLL to convert PDF to PDF/A. I know I kind of have to call the exported function of gsdll32.dll whose name is gsapi_init_with_args, but how do i pass the right arguments? BTW, ...

Linqy no matchy

Maybe it s something I m doing wrong. I m just learning Linq because I m bored. And so far so good. I made a little program and it basically just outputs all matches (foreach) into a label control. ...

热门标签