Jump to content

Photo

How would I do that C#


  • Please log in to reply
1 reply to this topic

#1 GnomeXFire Posted 03 April 2015 - 03:37 AM

GnomeXFire

    Soldier

  • Members
  • Pip
  • 1 posts

Y6Uloph.png

var sharp = new MemorySharp(ApplicationFinder.FromProcessName("Tutorial-i386").First());


var pReturnBlock = sharp.Memory.Allocate(0x4);

            sharp.Write<int>(pReturnBlock.BaseAddress, 0, false);




                 //"use32",
                //"mov [" + Codecave + 0x245360 + "] ,nop",
                //"jmp " + pReturnBlock,
                //"nop",
                //"nop",
                //"mov edx, " + Codecave.BaseAddress,
                //"mov ["+pReturnBlock.BaseAddress+"], eax ",
                //"retn"

 

this was a test I did not work out ...

now I do not know where my mistake , I just want to send NOP operation !

 


  • Back to top
  • Report

#2 ZenLulz Posted 14 April 2015 - 11:15 PM

ZenLulz

    Lead Developer

  • Administrators
  • 67 posts
  • LocationSwitzerland

Hello GnomeXFire !

 

The first step to do is to debug the code in order to be sure that the codecave is properly injected and written.

 

You should try edit your target application using a tool such as Cheat Engine to set up a breakpoint in your codecave to see if it triggers. :)

 

Cheers,

ZenLulz


ZenLulz

  • Back to top
  • Report




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users