Thread: apending '.exe's or '.dll's to '.exe's

  1. #1
    Registered User canine's Avatar
    Join Date
    Sep 2001
    Posts
    125

    apending '.exe's or '.dll's to '.exe's

    using WIN32api how can i apend an app to another so it runs whenever what you appended it to opens?
    In a perfect world every dog would have a home and every home would have a dog.
    Visit My Web Site, Canine Programming
    I use Win32 API

  2. #2
    Registered User
    Join Date
    Jan 2002
    Posts
    363
    I'm not entirely sure what your asking, but look up CreateProcess.
    I think thats what you want.
    If you own a piece of land and there is an volcano on it and it ruins a
    nearby town, do you have to pay for the property damage?

  3. #3
    Registered User canine's Avatar
    Join Date
    Sep 2001
    Posts
    125
    i don't think so i mean for example if you want a dll appended or written to the end of notepad and so whenever notepad opened that dll would execute
    In a perfect world every dog would have a home and every home would have a dog.
    Visit My Web Site, Canine Programming
    I use Win32 API

  4. #4
    Registered User
    Join Date
    Jan 2002
    Posts
    363
    I think you'd actually have to change the exe's actual code to do that.
    Or have another program residing in memory watching until the programme is run.
    If you own a piece of land and there is an volcano on it and it ruins a
    nearby town, do you have to pay for the property damage?

  5. #5
    Registered User canine's Avatar
    Join Date
    Sep 2001
    Posts
    125

    huh?

    sorry im sort of a beginer(im only 12) how do you make a program "reside in memory"?
    thanks for your time and effort anyway.
    it sounds like a big thing, if it can't be awnsered in a post thats fine!
    In a perfect world every dog would have a home and every home would have a dog.
    Visit My Web Site, Canine Programming
    I use Win32 API

  6. #6
    ‡ †hë Ö†hÈr sîÐè ‡ Nor's Avatar
    Join Date
    Nov 2001
    Posts
    299
    Why do you want to know something that can only have harmful results?

    I have only seen this done with trojan stile viruses.
    Please post a valid reason for your question.
    Try to help all less knowledgeable than yourself, within
    the limits provided by time, complexity and tolerance.
    - Nor

  7. #7
    Registered User canine's Avatar
    Join Date
    Sep 2001
    Posts
    125
    it might be a stupid way, but i like to experiment, appending a keylogger to explorer on MY computer. if you have a better way please tell me. I am not trying to make a virus!
    In a perfect world every dog would have a home and every home would have a dog.
    Visit My Web Site, Canine Programming
    I use Win32 API

  8. #8
    ‡ †hë Ö†hÈr sîÐè ‡ Nor's Avatar
    Join Date
    Nov 2001
    Posts
    299
    Sorry but I have never worked on anything like that.
    At best guess you would have to make the original app a resource of the appended one and run it from there. But I don't know how to go about doing that.
    Try to help all less knowledgeable than yourself, within
    the limits provided by time, complexity and tolerance.
    - Nor

  9. #9
    &TH of undefined behavior Fordy's Avatar
    Join Date
    Aug 2001
    Posts
    5,793
    If you want a keyhooker as you have said, then appeding code to an existing exe is not the way to proceed......

    Look up SetWindowsHookEx() on MSDN.......

    Also..this is not that simple as you need to know how to create dll's and be pretty happy with what processes are and how they can communicate

  10. #10
    Registered User canine's Avatar
    Join Date
    Sep 2001
    Posts
    125
    well i geuss ill have to look up more on thedlls and SetHooKeyEx but even with all that how would i make it always be running?
    In a perfect world every dog would have a home and every home would have a dog.
    Visit My Web Site, Canine Programming
    I use Win32 API

  11. #11
    &TH of undefined behavior Fordy's Avatar
    Join Date
    Aug 2001
    Posts
    5,793
    Originally posted by canine
    well i geuss ill have to look up more on thedlls and SetHooKeyEx but even with all that how would i make it always be running?
    Numerous ways.......The "Run" key in the registry, the startup folder, services..............

Popular pages Recent additions subscribe to a feed