-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathcompile.bat
More file actions
48 lines (38 loc) · 1.01 KB
/
Copy pathcompile.bat
File metadata and controls
48 lines (38 loc) · 1.01 KB
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
36
37
38
39
40
41
42
43
44
45
46
47
48
:: =====================================================
:: Vicious DLL Injector, ver.1.0
:: © Jan Hodermarsky (HardC0re, JohnHoder), 2015-2017
:: =====================================================
@echo off
if not exist .\res\res.rc goto over1
echo "Compiling resources ..."
rc.exe /v .\res\res.rc
cvtres.exe /machine:ix86 .\res\res.res
:over1
if exist %1.obj del injector.obj
if exist %1.exe del injector.exe
ml.exe /c /coff /Cp /I"C:\masm32\include" .\src\injector.asm
if errorlevel 1 goto errasm
if not exist .\res\res.obj goto nores
echo "Linking ..."
link.exe /SUBSYSTEM:WINDOWS .\injector.obj .\res\res.obj /LIBPATH:"C:\masm32\lib" /OUT:"injector.exe"
if errorlevel 1 goto errlink
goto TheEnd
:nores
echo "Linking without resources ..."
link.exe /SUBSYSTEM:WINDOWS .\injector.obj
if errorlevel 1 goto errlink
goto TheEnd
:errlink
echo _
echo Link error
goto errexit
:errasm
echo _
echo Assembly Error
goto errexit
:TheEnd
injector.exe
goto eeexit
:errexit
pause
:eeexit