P
P
Pilllow2019-11-14 18:14:49
C++ / C#
Pilllow, 2019-11-14 18:14:49

How to turn C code or Masm into a set of bytes?

Hello, tell me how you can compile c or mas code without turning it into an executable file or dll. That is, I want all instructions to be translated into bytes without adding anything extra (PE header, etc.)
I want to overwrite other bytes of an already executable file with these bytes.
It just takes too long to overwrite the instructions in ollydbg each time.

Answer the question

In order to leave comments, you need to log in

4 answer(s)
V
Vladimir Korotenko, 2019-11-14
@Pilllow

www.vividmachines.com/shellcode/shellcode.html

S
Sergey Gornostaev, 2019-11-14
@sergey-gornostaev

Just compile without linking.

P
pfemidi, 2019-11-17
@pfemidi

Well, since OllyDbg appears here, why not look at the Multiline Ultimate Assembler plugin ?

P
Pilllow, 2019-11-17
@Pilllow

I solved the problem. I use fasm, it translates assembler commands into bytes without any problems, without adding anything extra

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question