ragdog Posted July 19, 2008 Posted July 19, 2008 hiI search an example for change entry point in masm32 can your help me please?greets,ragdog
Killboy Posted July 19, 2008 Posted July 19, 2008 you kidding ? this is getting ridiculous seriously, do some research on your own for once... you cant always come up with a question and request source code you can copy one by one. there are tons of documents about the PE format, there are all sorts of MASM defines for the needed structs. that should get you started: http://win32assembly.online.fr/tut13.html http://win32assembly.online.fr/pe-tut2.html http://win32assembly.online.fr/pe-tut3.html http://win32assembly.online.fr/pe-tut4.html
xsp!d3r Posted July 19, 2008 Posted July 19, 2008 (edited) whoops Killboy is angry Edited July 19, 2008 by Xspider
ragdog Posted July 19, 2008 Author Posted July 19, 2008 (edited) It was a normal question My problem is not read the entrypoint,this problem is only save the new entrypoint in a Target exe Edited July 19, 2008 by ragdog
xsp!d3r Posted July 19, 2008 Posted July 19, 2008 but to read or save new entrypoint you should know the PE format and there are a lot of tutorials about that
Killboy Posted July 19, 2008 Posted July 19, 2008 My problem is not read the entrypoint,this problem is only save the new entrypoint in a Target exe It's not like I just ranted at you, I also posted a few useful links for you. If you would have taken a look at the very first link, there is even ready-made masm code for mapping and saving a file. If that's not what you wanted, you should rephrase your question in a more detailed way, I can't guess your thoughts can I I don't like being unfriendly to beginners or anything, but you have to do something yourself and not just rip stuff from other people's sources. Copying source doesn't bring you anywhere, as long as you don't learn from it. One day you want to have sources for a dll injector and a week later you don't know how to change an entrypoint.
ragdog Posted July 19, 2008 Author Posted July 19, 2008 (edited) the links what you posted use i allready.and the dll injector was not my code i have this found in web my problem is only change the entrypoint with MapViewOfFile not with hook in memoryI am new to the theme injection and PE therefore ,I have to inform me with these theme and also sought masm example in order to learnand i hope you have the understanding then I have a lot to ask if I am interested for a theme greets, Edited July 19, 2008 by ragdog
Killboy Posted July 19, 2008 Posted July 19, 2008 so what are you trying to do ? edit a file's entrypoint on disk or in a running process ? the second one doesn't really make sense but what do I know
ragdog Posted July 19, 2008 Author Posted July 19, 2008 (edited) i edit a file's entrypoint on disk with CreateFileMapping Edited July 19, 2008 by ragdog
human Posted July 19, 2008 Posted July 19, 2008 (edited) what? you can mod entry point with any program like winhex hiew etc if you know basics of pe header. with use of cff explorer,yoda or pe tools you can mod EP without knowing pe format.for example with inline patch.but so far as we can see you need to mod EP for code injection. odd and stupid way.and no you dont need to ask to learn, use google like we all do.we are not teachers.we can help but will not lead you by hand.you will never understand things fully if you dont solve them alone.and to update EP there is no need to map or ****ing read whole exe. just 1st 4kb and write them again after update. even you can do that with 2 byte buffer in 2 or 3 moves. Edited July 19, 2008 by human
Mouradpr Posted July 19, 2008 Posted July 19, 2008 (edited) .data StrFileName db "C:\My Documents\Pe File.exe",0.code invoke plOpenFile,PL_NO_OPEN_DIALOG,addr strFileName invoke plChangeEP, 00001000hsome bug Fixed By Me see the exemplePeLibrary_0.3c.rarexemple_radasm.rar Edited July 19, 2008 by Mouradpr
ragdog Posted July 19, 2008 Author Posted July 19, 2008 @human I learn for 5 days PE and injection I was just about the new entry point to save with CreateFileMapping @Mouradpr Thanks this is a good library greets, ragdog My Problem is solved
Teddy Rogers Posted July 20, 2008 Posted July 20, 2008 RagDog, do not be offended by what people have said, I am sure they did not mean any offence. I think if you clarified your question at the beginning the topic would have turned out better. Please don't let it put you off asking questions again... Ted.
human Posted July 20, 2008 Posted July 20, 2008 (edited) i learned code injection in 1h, for pe format you dont need to know all, you got msdn,luvsmeyer pe format.txt and tons of other.all is on google.i think this suits you and many others! Edited July 20, 2008 by Teddy Rogers Thats not going to help... :)
Recommended Posts