Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. hook functions in another process

hook functions in another process

Scheduled Pinned Locked Moved C / C++ / MFC
question
8 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    RicoH
    wrote on last edited by
    #1

    Hi, I know it is possible to hook a function which is exported in a dll, but I was wondering if it is possible to hook a function in an exe? thanx Don't think you are, know you are...

    J A 2 Replies Last reply
    0
    • R RicoH

      Hi, I know it is possible to hook a function which is exported in a dll, but I was wondering if it is possible to hook a function in an exe? thanx Don't think you are, know you are...

      J Offline
      J Offline
      jmkhael
      wrote on last edited by
      #2

      Do you have the source of that exe? Papa while (TRUE) Papa.WillLove ( Bebe ) ;

      R 1 Reply Last reply
      0
      • J jmkhael

        Do you have the source of that exe? Papa while (TRUE) Papa.WillLove ( Bebe ) ;

        R Offline
        R Offline
        RicoH
        wrote on last edited by
        #3

        Yes, I do have the source of that exe. What I would like to do is make some sort of program that hooks several functions of the specific exe so I can extract internal information. We have lots of version of this exe and we can't put lots of debugging information in them... Don't think you are, know you are...

        J 1 Reply Last reply
        0
        • R RicoH

          Yes, I do have the source of that exe. What I would like to do is make some sort of program that hooks several functions of the specific exe so I can extract internal information. We have lots of version of this exe and we can't put lots of debugging information in them... Don't think you are, know you are...

          J Offline
          J Offline
          jmkhael
          wrote on last edited by
          #4

          -You can export these functions from the exe or -Call a common function that is exported into the dll and giving you the amount of info you need Or Make own your own debugging thread and check the CreateRemoteThread family API Papa while (TRUE) Papa.WillLove ( Bebe ) ;

          R 1 Reply Last reply
          0
          • J jmkhael

            -You can export these functions from the exe or -Call a common function that is exported into the dll and giving you the amount of info you need Or Make own your own debugging thread and check the CreateRemoteThread family API Papa while (TRUE) Papa.WillLove ( Bebe ) ;

            R Offline
            R Offline
            RicoH
            wrote on last edited by
            #5

            The problem is that I can't modify the sources of the original exe.:( That's why I was wondering if it is possible the hook an 'internal' function, given that you know the name of it (if this is even relevant). Don't think you are, know you are...

            J 1 Reply Last reply
            0
            • R RicoH

              The problem is that I can't modify the sources of the original exe.:( That's why I was wondering if it is possible the hook an 'internal' function, given that you know the name of it (if this is even relevant). Don't think you are, know you are...

              J Offline
              J Offline
              jmkhael
              wrote on last edited by
              #6

              In fact it is, but its a delicate process. Saying you have several versions of the exe, so a reverse engineering method (patching and calling a code from an exe) is somehow difficult or even not feasible if you dont want to modify the code So a CreateRemoteThread is a better way to deal with this problem, with a Stack handling method in order to see what function is being called so you dump its parameters Papa while (TRUE) Papa.WillLove ( Bebe ) ;

              R 1 Reply Last reply
              0
              • J jmkhael

                In fact it is, but its a delicate process. Saying you have several versions of the exe, so a reverse engineering method (patching and calling a code from an exe) is somehow difficult or even not feasible if you dont want to modify the code So a CreateRemoteThread is a better way to deal with this problem, with a Stack handling method in order to see what function is being called so you dump its parameters Papa while (TRUE) Papa.WillLove ( Bebe ) ;

                R Offline
                R Offline
                RicoH
                wrote on last edited by
                #7

                I'll have a look at the CreateRemoteThread thingy... Thanx Don't think you are, know you are...

                1 Reply Last reply
                0
                • R RicoH

                  Hi, I know it is possible to hook a function which is exported in a dll, but I was wondering if it is possible to hook a function in an exe? thanx Don't think you are, know you are...

                  A Offline
                  A Offline
                  Alexander M
                  wrote on last edited by
                  #8

                  everything is possible! tell me what's ur software's purpose and i'll tell u how to do it. Don't try it, just do it! ;-)

                  1 Reply Last reply
                  0
                  Reply
                  • Reply as topic
                  Log in to reply
                  • Oldest to Newest
                  • Newest to Oldest
                  • Most Votes


                  • Login

                  • Don't have an account? Register

                  • Login or register to search.
                  • First post
                    Last post
                  0
                  • Categories
                  • Recent
                  • Tags
                  • Popular
                  • World
                  • Users
                  • Groups