From d4d9415d24744f841db57ab3169f42a32a4b59e3 Mon Sep 17 00:00:00 2001 From: "neko.py" Date: Sun, 10 Mar 2019 20:27:08 -0700 Subject: [PATCH] Add pause for interactivity 1. Now the system pauses in case the executable was run directly --- main.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/main.cpp b/main.cpp index a27b52d..014302d 100644 --- a/main.cpp +++ b/main.cpp @@ -4,6 +4,7 @@ #include #include #include +#include void print_bytes(const DWORD length, const LPBYTE bytes) { if (length == 0) @@ -36,5 +37,8 @@ int main(int argc, char* argv[]) } CredFree(creds); + std::cout << "Press any key to continue..." << std::endl; + std::cout.flush(); + _getch(); return 0; }