Posted: Tue Apr 26, 2022 5:04 pm Post subject: Create single line assembler
I'm trying to create a single line assembler, I was wondering if anyone could point me in the right direction as I want to achieve pretty much the same effect that the auto assembler does, simple asm in -> shellcode out.
Intel and AMD publish documentation for you to make one yourself. Depending on what programming language you're using, there may already be a good library you can use.
Disassembly as well as reading and writing another process's memory like the AutoAssembler does are separate issues. _________________
I don't know where I'm going, but I'll figure it out when I get there.
Intel and AMD publish documentation for you to make one yourself. Depending on what programming language you're using, there may already be a good library you can use.
Disassembly as well as reading and writing another process's memory like the AutoAssembler does are separate issues.
I'm using Java, I couldn't find any libraries to do this, so was wondering if there was a simple dll or something I could import.
I only need to assemble very few commands. (mov, movd, call)
The libraries don't have to be written in Java for you to use them. See JNI
You could write it yourself if you're willing to learn how instructions are encoded.
See "Intel Architectures Software Developer's Manuals Volume 2" for all the information you need. Particularly opcodes, operands (modR/M and SIB bytes), RIP-relative addressing (64-bit), and the REX prefix (64-bit).
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum