This forum is in archive mode. You will not be able to post new content.

Author Topic: VB.NET runPE [problem]  (Read 2025 times)

0 Members and 1 Guest are viewing this topic.

Offline vicious

  • NULL
  • Posts: 2
  • Cookies: 0
    • View Profile
VB.NET runPE [problem]
« on: October 18, 2013, 04:07:43 AM »
I'm trying to make a runPE in vb.net work in windows 7.
I get c0000005 errorr code - memory access violation, in offset 00003f2c , that is just before the end of my portable executable (the victim process).
The error comes from ZwUnmapViewOfSection , WriteProcessMemory or SetThreadContext (all in kernel32.dll). When the code reaches ResumeThread I get the error sometimes, or sometimes notthing at all, but the process is terminated, so I cannot attach debugger. When I set breakpoint in visual studio just before ResumeThread and attach WinDbg to my victim process it shows that:  only part of a readprocessmemory or writeprocessmemory request was completed.
So how can I find out what went wrong in rewrighting the process memory?

PS:I don't know if this question is for here or for reverse engineering, seems like it don't fit here, nor there

Offline NovaCygni

  • Peasant
  • *
  • Posts: 86
  • Cookies: 2
  • 403:Forbidden
    • View Profile
Re: VB.NET runPE [problem]
« Reply #1 on: October 19, 2013, 06:21:09 PM »
run and debug with ollydbg, least yourll see whats throwing the exception.
We do what we want, Because we can.

 



Want to be here? Contact Ande, Factionwars or Kulverstukas on the forum or at IRC.