mirror of https://github.com/x64dbg/GleeBug
26 lines
659 B
C++
26 lines
659 B
C++
#include <cstdio>
|
|
#include "MyDebugger.h"
|
|
|
|
int main()
|
|
{
|
|
#ifdef _WIN64
|
|
wchar_t szFilePath[256] = L"c:\\test64.exe";
|
|
#else //x86
|
|
wchar_t szFilePath[256] = L"C:\\Users\\JOAO\\Favorites\\Desktop\\crackmes\\chakravyuha\\_sol\\CHAKRAVYUHA.exe";
|
|
#endif //_WIN64
|
|
wchar_t szCommandLine[256] = L"";
|
|
wchar_t szCurrentDir[256] = L"C:\\Users\\JOAO\\Favorites\\Desktop\\crackmes\\chakravyuha\\_sol\\";
|
|
MyDebugger dbg;
|
|
if (dbg.Init(szFilePath, szCommandLine, szCurrentDir))
|
|
{
|
|
puts("Debugger::Init success!");
|
|
dbg.Start();
|
|
puts("Debugger::Start finished!");
|
|
}
|
|
else
|
|
{
|
|
puts("Debugger::Init failed!");
|
|
}
|
|
system("pause");
|
|
return 0;
|
|
} |