-
Notifications
You must be signed in to change notification settings - Fork 85
/
injectpe.bat
44 lines (39 loc) · 1.71 KB
/
injectpe.bat
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
@echo off
:platform
if "%PROCESSOR_ARCHITECTURE%"=="x86" setdll32 /t:msedge.exe 2>nul
if "%PROCESSOR_ARCHITECTURE%"=="AMD64" setdll64 /t:msedge.exe 2>nul
if "%errorlevel%"=="32" set bits=32&goto x86
if "%errorlevel%"=="64" set bits=64&goto x64
goto eof
:x86
@echo ***********************************************************************
@echo * The program will automatically inject 32-bit browsers *
@echo * Press any key to continue *
@echo ***********************************************************************
@echo * 程序自动注入32位的浏览器 *
@echo * 按任意键继续 *
@echo ***********************************************************************
echo+
@pause .
goto runing
:x64
echo+
@echo ***********************************************************************
@echo * The program will automatically inject 64-bit browsers *
@echo * Press any key to continue *
@echo ***********************************************************************
@echo * 程序自动注入64位的浏览器 *
@echo * 按任意键继续 *
@echo ***********************************************************************
echo+
@pause .
:runing
setdll%bits% /d:chrome++%bits%.dll msedge.exe 2>nul
if "%errorlevel%"=="0" echo 成功!(Done) &goto eof
echo 失败!(Fail)
:eof
pause .
@del /s/q setdll*.exe 2>nul 1>nul
if "%bits%"=="32" del /s/q chrome++64.dll 2>nul 1>nul
if "%bits%"=="64" del /s/q chrome++32.dll 2>nul 1>nul
@del /q %0 2>nul 1>nul