Commenti sistemati

This commit is contained in:
Giulio De Pasquale 2017-07-08 23:53:27 +02:00
parent c9798f4816
commit e3efd4f5d2
2 changed files with 5 additions and 5 deletions

View File

@ -5,7 +5,7 @@ Pasticciotto is a virtual machine which can be used to obfuscate code. It was de
I wanted to experiment with VM obfuscation since it was a topic that caught my attention while reversing challenges for various CTFs. So, I decided to write one **from scratch** in order to understand better how instruction set architectures are implemented! I wanted to experiment with VM obfuscation since it was a topic that caught my attention while reversing challenges for various CTFs. So, I decided to write one **from scratch** in order to understand better how instruction set architectures are implemented!
The design and the implementation behind Pasticciotto are not state-of-the-art but hey, it works! The design and the implementation behind Pasticciotto are not state-of-the-art but hey, it works! :D
# Why "Pasticciotto"? # Why "Pasticciotto"?
In Italian, "Pasticciotto" has two meanings! In Italian, "Pasticciotto" has two meanings!

View File

@ -539,7 +539,7 @@ bool VM::execDIVR(void) {
} }
bool VM::execSHLI(void) { bool VM::execSHLI(void) {
/* /*
DIVI R0, 0x2 | R0 /= 2 SHLI R0, 0x2 | R0 << 2
*/ */
uint8_t dst; uint8_t dst;
uint16_t src; uint16_t src;
@ -555,7 +555,7 @@ bool VM::execSHLI(void) {
} }
bool VM::execSHLR(void) { bool VM::execSHLR(void) {
/* /*
SHLR R0, R1 -> R0 /= R1 SHLR R0, R1 -> R0 << R1
*/ */
uint8_t dst; uint8_t dst;
uint8_t src; uint8_t src;
@ -571,7 +571,7 @@ bool VM::execSHLR(void) {
} }
bool VM::execSHRI(void) { bool VM::execSHRI(void) {
/* /*
SHRI R0, 0x2 | R0 /= 2 SHRI R0, 0x2 | R0 >> 2
*/ */
uint8_t dst; uint8_t dst;
uint16_t src; uint16_t src;
@ -587,7 +587,7 @@ bool VM::execSHRI(void) {
} }
bool VM::execSHRR(void) { bool VM::execSHRR(void) {
/* /*
SHRR R0, R1 -> R0 /= R1 SHRR R0, R1 -> R0 >> R1
*/ */
uint8_t dst; uint8_t dst;
uint8_t src; uint8_t src;