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