Posted April 2, 201411 yr HelloI have problem with injection 64 bit dll into 64 bit exe file , in case i don't know what i should to do ?any one can help me with information , sources or some thing that solve my problemThanks
April 2, 201411 yr Hi,Look at VirtualAllocEx + CreateRemoteThread, just start a new thread at LoadLibraryW and provide a newly allocated page as argument.Its not much different from x32.Greetings,Mr. eXoDia
April 2, 201411 yr Author Thanks Dear Mr.eXoDia & Dear Dreamer for replyBut i means Code Injection via Dll Directly to PE File not to ProcessLook Likes Armadillo and many other protectors and packers
April 3, 201411 yr Author https://github.com/fancycode/MemoryModule Thanks for reply but i mean static dll injection , for example , injecting some asm code to show message box to x64 PE file as new section , change oep to new section and rebuild file to run without any error or etc
April 3, 201411 yr That is not called "injection". Theoretically, everything is the same as in 32-bit world. The biggest difference is that you pass arguments to function in registers, not on stack. What did you try and what exactly did not work?
April 3, 201411 yr Author i had build 32 bit code injection to PE but in 64 bit in need some references and information
April 3, 201411 yr Again - what exactly did you try and what exactly does not work? Attached is simple demo I made in 10 minutes using HIEW as a hex editor and to assemble x64 code.x64_adding_code.zip
April 3, 201411 yr Author Thanks for Demo , I Have used Code Project PE-Inject in Win32 but i does not works in 64 bit Applicationshttp://www.codeproject.com/Articles/12532/Inject-your-code-to-a-Portable-Executable-file#PEViewerDownloadLink Would you please share demo src code ?
April 3, 201411 yr Is this for your payware EXE packer/protector?Looks to me for that article, you need to read up on the differences between x64 PE header and x86.... If it was me, I would just use TitanEngine for such things, plus a decent x64 assembler like AsmJit. Edited April 3, 201411 yr by mudlord
April 4, 201411 yr If you wanna execute your DllMain with the executable start: use CFF Explorer (import adder, add a random import). Greetings
April 5, 201411 yr I think he means inserting a DLL like how Armadillo works internally, or ASProtect.
April 5, 201411 yr Ah! Then you need to understand the decryption/encryption of the file inside the executable and you also need to patch some crc checks.
April 7, 201411 yr I think Gladiator is meaning this in a protection sense, so this applies to unprotected apps.Might be for a x64 port of his protector?
Create an account or sign in to comment