-
Notifications
You must be signed in to change notification settings - Fork 2
/
debug.cmd
35 lines (30 loc) · 910 Bytes
/
debug.cmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
@ECHO OFF
REM --------------------------------------------------------------------
SET BIN=%CD%\bin
SET FILENAME=keygen
REM --------------------------------------------------------------------
REM --------------------------------------------------------------------
SET DBGPATH=\Programs\Development\RCE\Debuggers\OllyDBG
FOR %%i IN (C X Y Z) DO (
IF EXIST %%i:%DBGPATH%. SET DBGPATH=%%i:%DBGPATH%
)
SET DBGEXE=%DBGPATH%\asphx.exe
IF NOT EXIST %DBGEXE%. (
ECHO NO DEBUGGER FOUND! CHECK PATH IN DEBUG.CMD
ECHO DBG=%DBGEXE%
GOTO ERROR
)
REM --------------------------------------------------------------------
IF EXIST %BIN%\%FILENAME%.exe. (
START /D"%DBGPATH%" %DBGEXE% "%BIN%\%FILENAME%.exe"
GOTO FINISH
)
SET /P CHOISE=Compile it first. Launch make.cmd? (y/n)
IF %CHOISE%==y (
START /D"%CD%" make.cmd
GOTO FINISH
)
:ERROR
PAUSE>nul
:FINISH
EXIT