Skip to contentSkip to conversation

self modifying code

DISCUSSION Jason Roberts 1 participant 1 message Nov 3, 2003

lore
Share & tools
lore
#0 lore raw

Hi all--
I'd like to be able to implement this cool trick called smc. It's used mostly by crackers and virus coders, but has also been used in JIT compilers.

I know the *basic* steps:
1) mov reg1, code-to-write
2) mov [addr-to-write-to], reg1

how can I do this in nasm?
Thanks
pb

_________________________________________________________________
See when your friends are online with MSN Messenger 6.0. Download it now FREE! http://msnmessenger-download.com