Adding Functions Gunz.exe

Results 1 to 2 of 2
  1. #1
    Novice JoshA56 is offline
    MemberRank
    Apr 2010 Join Date
    3Posts

    Adding Functions Gunz.exe

    I want to add the following code into Gunz.exe

    Code:
    shell "program.exe"
    I was thinking of somehow editing the EP to a codecave where the code could be executed, then jumping back to the original EP, but I'm not sure how that would be done.

    Any help would be appreciated, thanks.
    Last edited by JoshA56; 24-04-10 at 11:20 PM.


  2. #2
    Account Upgraded | Title Enabled! belette321 is offline
    MemberRank
    Jan 2007 Join Date
    Canada, QuebecLocation
    361Posts

    Re: Adding Functions Gunz.exe

    You need to do it in asm ... JMP to code cave then ...
    Code:
    PUSH Gunz.********                       ;  ASCII "program.exe"
    PUSH 5                                   ; /ShowState = SW_SHOW
    LEA ECX,DWORD PTR SS:[ESP+14]            ; |
    PUSH ECX                                 ; |CmdLine
    CALL DWORD PTR DS:[<&KERNEL32.WinExec>]  ; \WinExec
    Then JMP back up to your code ...

    ezpz <3
    Basic ASM stuf :)
    Last edited by belette321; 03-05-10 at 01:59 AM.



Advertisement