Added bytecode parser according to c0vm-writeup.pdf
We can now parse a bytecode file to find int_pool, string_pool, function_pool, and native_pool.
This commit is contained in:
@@ -4,3 +4,6 @@ console.log("Reading in sample bytecode file:");
|
||||
console.log(parser.getBytes("../test/test.bc0"));
|
||||
console.log("That was the sample bytecode file" +
|
||||
" -- it probably took up your whole terminal screen.");
|
||||
var file = parser.parse("../test/test.bc0");
|
||||
console.log(file);
|
||||
console.log(file.function_pool[0].code);
|
||||
|
||||
Reference in New Issue
Block a user