This repository has been archived on 2023-09-02. You can view files and clone it, but cannot push or open issues or pull requests.
csh/hazedumper/generate.bat

35 lines
1,011 B
Batchfile
Raw Normal View History

2023-04-02 22:02:36 +02:00
@ECHO off
IF NOT EXIST hazedumper.exe (
ECHO Download latest release of hazedumper
:: Download latest release
2023-04-02 22:11:07 +02:00
FOR /f "tokens=1,* delims=:" %%A IN ('curl -ks https://api.github.com/repos/frk1/hazedumper-rs/releases/latest ^| find "browser_download_url"') do (
2023-04-02 22:02:36 +02:00
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 (
ECHO Download latest config file for CS:GO
:: Download
curl -kOL https://raw.githubusercontent.com/frk1/hazedumper/master/config.json
)
ECHO Generate offsets using hazedumper (be sure CS:GO is open and at least on menu screen)
:: Generate files
.\hazedumper.exe
EXIT /b