From a818b3e9bcf1c7d953816a0759a4512d51368f22 Mon Sep 17 00:00:00 2001 From: _xeroxz Date: Sun, 13 Jun 2021 02:14:56 +0000 Subject: [PATCH] Update README.md --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.md b/README.md index 9ab9d91..3e510fe 100644 --- a/README.md +++ b/README.md @@ -38,6 +38,12 @@ const auto vm_entry_rva = std::strtoull( parser.get< std::string >( "vmentry" ). const auto image_base = umtils->image_base( parser.get< std::string >( "bin" ).c_str() ); const auto image_size = NT_HEADER( module_base )->OptionalHeader.SizeOfImage; vm::ctx_t vmctx( module_base, image_base, image_size, vm_entry_rva ); + +if ( !vmctx.init() ) +{ + std::printf( "[!] failed to init vm::ctx_t... make sure all cli arguments are correct!\n" ); + return -1; +} ``` ***Figure 1. Taken from VMProfiler CLI Project*** \ No newline at end of file