Sorry for the cheesy thread title, but I had no idea what to put there.
But anyway, I recently came across more virtual machines, and honestly, when you get to the jist of it, they aren't all that difficult to understand nor implement.
For instance, this guy here wrote his own C compiler for the C89 standard, and made it work for his own custom virtual CPU, for which he wrote several "emulators"(emulator;virtual machine it's all the same in this context) in C, Java and finally, Javascript. This actually gave me an idea to implement some VMs in Javascript as well, I mean you can run the thing in your browser.
Now, Virtual Machines like VirtualBox, VMWare and QEMU are different, they try to emulate a whole computer with the peripherals and also takes advantage of a CPU's special virtualization options for HW virtualization, they are indeed harder to write and understand and I myself couldn't even begin to comprehend VirtualBox's code.
But we aren't interested in those(or at least I am not) right now, we just want to emulate a CPU, or even create our own, the sky is the limit.
Showing posts with label machine. Show all posts
Showing posts with label machine. Show all posts
Tuesday, August 4, 2015
Friday, August 15, 2014
CarpVM, a Virtual Machine in C
Finally, somebody went and wrote it. Link to GitHub. This VM can be used as an obfuscation technique. I was building my own, but things got sidetracked. But this one is on another level.
Labels:
c,
c programming language,
carp,
carpvm,
engineering,
github,
machine,
re,
reverse,
reverse engineering,
virtual,
virtual machine,
vm
Saturday, July 5, 2014
Some insight about Process Virtual Machines.
So, I understood more about Process VMs, simply last night, I was all of a sudden aware out of the blue of how it works, roughly.
I also found a sample VM implementation, the one which is supposedly used in packers/protectors, albeit probably not as advanced, but still worth the read. Here's the link http://syprog.blogspot.com/2011/12/simple-virtual-machine.html
Anyway, I guess it's sort of a misconception that a VM executes anything, it does not, the VM instructions are simply "interpreted" i.e if the instruction is MOV REG_DEST, REG_SRC, you are the one that must handle this operation.
I might write my own VM implementation, just to learn more.
I also found a sample VM implementation, the one which is supposedly used in packers/protectors, albeit probably not as advanced, but still worth the read. Here's the link http://syprog.blogspot.com/2011/12/simple-virtual-machine.html
Anyway, I guess it's sort of a misconception that a VM executes anything, it does not, the VM instructions are simply "interpreted" i.e if the instruction is MOV REG_DEST, REG_SRC, you are the one that must handle this operation.
I might write my own VM implementation, just to learn more.
Labels:
insight,
interpreting,
machine,
olly,
ollydbg,
packer,
packing,
process,
process vm,
protector,
rce,
re,
reverse engineering,
securom,
simple,
virtual machine,
vm
Subscribe to:
Posts (Atom)