HyperDbg/hyperdbg/hyperdbg-cli/hyperdbg-cli.cpp
2020-04-02 02:45:29 -07:00

53 lines
1.5 KiB
C++

#include <Windows.h>
#include <conio.h>
#include <iostream>
#include "Definitions.h"
#include "Configuration.h"
#pragma comment(lib, "HPRDBGCTRL.lib")
// Header file of HPRDBGCTRL
// Exports
extern "C"
{
__declspec (dllimport) int __cdecl HyperdbgLoad();
__declspec (dllimport) int __cdecl HyperdbgUnload();
__declspec (dllimport) void __stdcall HyperdbgSetTextMessageCallback(Callback handler);
}
void PrintAppearance() {
printf("\n"
" _ _ _ _____ ____ _ _ \n"
" | | | |_ _ _ __ ___ _ ____ _(_)___ ___ _ __ | ___| __ ___ _ __ ___ / ___| ___ _ __ __ _| |_ ___| |__ \n"
" | |_| | | | | '_ \\ / _ \\ '__\\ \\ / / / __|/ _ \\| '__| | |_ | '__/ _ \\| '_ ` _ \\ \\___ \\ / __| '__/ _` | __/ __| '_ \\ \n"
" | _ | |_| | |_) | __/ | \\ V /| \\__ \\ (_) | | | _|| | | (_) | | | | | | ___) | (__| | | (_| | || (__| | | |\n"
" |_| |_|\\__, | .__/ \\___|_| \\_/ |_|___/\\___/|_| |_| |_| \\___/|_| |_| |_| |____/ \\___|_| \\__,_|\\__\\___|_| |_|\n"
" |___/|_| \n"
"\n\n");
}
int main()
{
// Print Hypervisor From Scratch Message
PrintAppearance();
HyperdbgLoad();
printf("Press any key to exit vmx ...");
_getch();
HyperdbgUnload();
printf("Press any key to exit...");
_getch();
exit(0);
return 0;
}