Add generation helper (#1)
This commit is contained in:
parent
4967503184
commit
a518d52250
1 changed files with 37 additions and 0 deletions
37
hazedumper/generate.bat
Normal file
37
hazedumper/generate.bat
Normal file
|
@ -0,0 +1,37 @@
|
|||
@ECHO off
|
||||
|
||||
IF NOT EXIST hazedumper.exe (
|
||||
:: Verbose
|
||||
ECHO Download latest release of hazedumper
|
||||
|
||||
:: Download latest release
|
||||
for /f "tokens=1,* delims=:" %%A in ('curl -ks https://api.github.com/repos/frk1/hazedumper-rs/releases/latest ^| find "browser_download_url"') do (
|
||||
curl -kOL %%B
|
||||
)
|
||||
|
||||
:: Unzip the file
|
||||
PowerShell -nologo -noprofile -command "& { $shell = New-Object -COM Shell.Application; $target = $shell.NameSpace('%CD%'); $zip = $shell.NameSpace('%CD%\Windows.zip'); $target.CopyHere($zip.Items(), 16); }"
|
||||
|
||||
:: Move the binary to the current directory
|
||||
MOVE .\Windows\*.exe .\
|
||||
|
||||
:: Delete unnecessary file and directory
|
||||
DEL Windows*
|
||||
RMDIR Windows\
|
||||
)
|
||||
|
||||
IF NOT EXIST config.json (
|
||||
:: Verbose
|
||||
ECHO Download latest config file for CS:GO
|
||||
|
||||
:: Download
|
||||
curl -kOL https://raw.githubusercontent.com/frk1/hazedumper/master/config.json
|
||||
)
|
||||
|
||||
:: Verbose
|
||||
ECHO Generate offsets using hazedumper (be sure CS:GO is open and at least on menu screen)
|
||||
|
||||
:: Generate files
|
||||
.\hazedumper.exe
|
||||
|
||||
EXIT /b
|
Reference in a new issue