Results 1 to 3 of 3

Thread: Code Injection: Injecting an Entire C Compiled Application

  1. #1

    Code Injection: Injecting an Entire C Compiled Application

    Very interesting article!
    http://www.codeproject.com/KB/winsdk/CodeInject.aspx?msg=2470205#xx2470205xx

  2. #2
    <script>alert(0)</script> disavowed's Avatar
    Join Date
    Apr 2002
    Posts
    1,281
    much easier to inject a compiled application if you make it a dll and just add it to the target's import table.

  3. #3
    Or just calling LoadLibrary (via CreateRemoteThread if working remotely) on the exe itself. In the absence of a relocation table, the resulting image (which obviously won't be loaded at 0x00400000) will have dangling references but these can usually be fixed easy enough with some static analysis.

    I guess this article is a fairly educational journey through some important topics, but practically, disavowed is right - compile as a DLL for the win.
    www.ring3circus.com
    Diary of a programmer, journal of a hacker.

Similar Threads

  1. LINK: Grafting Compiled Code: The Ultimate in Code Reuse
    By Cthulhu in forum Advanced Reversing and Programming
    Replies: 4
    Last Post: November 10th, 2007, 03:40
  2. Code Injection Errors
    By mark_E in forum OllyDbg Support Forums
    Replies: 35
    Last Post: December 14th, 2004, 07:27
  3. Code Injection (plz help)
    By Nick in forum The Newbie Forum
    Replies: 17
    Last Post: November 15th, 2002, 19:15
  4. Replies: 10
    Last Post: November 9th, 2002, 04:50
  5. Code Injection
    By Hoof Arted in forum Malware Analysis and Unpacking Forum
    Replies: 6
    Last Post: June 18th, 2002, 06:35

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •