From 7599e3e3de5c1fd265f6c3436cdb4037f2ce6f9f Mon Sep 17 00:00:00 2001 From: a Date: Mon, 12 Sep 2022 04:24:56 -0700 Subject: [PATCH] added warning for executables that are not 64bit --- src/main.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/main.cpp b/src/main.cpp index 12365a7..877ad09 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -56,7 +56,13 @@ int __cdecl main(int argc, const char* argv[]) { return -1; } + // only support 64bit executables... auto img = reinterpret_cast*>(module_data.data()); + if (img->get_nt_headers()->file_header.machine != win::machine_id::arm64) { + std::printf("[!] only 64bit executables are supported...\n"); + return -1; + } + auto image_size = img->get_nt_headers()->optional_header.size_image; const auto image_base = img->get_nt_headers()->optional_header.image_base;