add local offsets
This commit is contained in:
parent
93e01d2637
commit
d71860ca68
3 changed files with 31 additions and 6 deletions
16
hack.py
16
hack.py
|
@ -1,4 +1,4 @@
|
||||||
from json import loads
|
from json import loads, load
|
||||||
from time import sleep
|
from time import sleep
|
||||||
|
|
||||||
from pymem import Pymem
|
from pymem import Pymem
|
||||||
|
@ -10,7 +10,7 @@ class Hack():
|
||||||
|
|
||||||
def __init__(self) -> None:
|
def __init__(self) -> None:
|
||||||
# Loading offsets
|
# Loading offsets
|
||||||
self.offsets = self._find_offsets()
|
self.offsets = self._find_offsets(True)
|
||||||
self.vmap = self._find_keys()
|
self.vmap = self._find_keys()
|
||||||
|
|
||||||
self.pm = self._find_process(True)
|
self.pm = self._find_process(True)
|
||||||
|
@ -18,10 +18,14 @@ class Hack():
|
||||||
self.wait_time = 0.01
|
self.wait_time = 0.01
|
||||||
self.timeout = self.wait_time * 50
|
self.timeout = self.wait_time * 50
|
||||||
|
|
||||||
def _find_offsets(self) -> dict[str, int]:
|
def _find_offsets(self, offline: bool = False) -> dict[str, int]:
|
||||||
hazedumper_data = get(
|
if offline:
|
||||||
"https://raw.githubusercontent.com/frk1/hazedumper/master/csgo.min.json")
|
with open("hazedumper/csgo.min.json", "r") as f:
|
||||||
serial_data = loads(hazedumper_data.text)
|
serial_data = load(f)
|
||||||
|
else:
|
||||||
|
hazedumper_data = get(
|
||||||
|
"https://raw.githubusercontent.com/frk1/hazedumper/master/csgo.min.json")
|
||||||
|
serial_data = loads(hazedumper_data.text)
|
||||||
|
|
||||||
return serial_data["signatures"] | serial_data["netvars"] | {
|
return serial_data["signatures"] | serial_data["netvars"] | {
|
||||||
"entity_size": 0x10,
|
"entity_size": 0x10,
|
||||||
|
|
20
hazedumper/README.md
Normal file
20
hazedumper/README.md
Normal file
|
@ -0,0 +1,20 @@
|
||||||
|
# Instructions
|
||||||
|
|
||||||
|
To update local files (in case online offset aren't up-to-date) :
|
||||||
|
|
||||||
|
1. Download [hazedumper](https://github.com/frk1/hazedumper-rs/releases/latest)
|
||||||
|
|
||||||
|
2. Unzip the .exe to a folder
|
||||||
|
|
||||||
|
3. Download [config file](https://raw.githubusercontent.com/frk1/hazedumper/master/config.json)
|
||||||
|
to the same folder
|
||||||
|
|
||||||
|
4. Open CS:GO (wait for the menu screen)
|
||||||
|
|
||||||
|
5. Open powershell in the same folder and type
|
||||||
|
|
||||||
|
```powershell
|
||||||
|
.\hazedumper.exe
|
||||||
|
```
|
||||||
|
|
||||||
|
6. The file has been generated, copy/paste `csgo.min.json` to [this folder](.)
|
1
hazedumper/csgo.min.json
Normal file
1
hazedumper/csgo.min.json
Normal file
|
@ -0,0 +1 @@
|
||||||
|
{"timestamp":1680312005,"signatures":{"anim_overlays":10640,"clientstate_choked_commands":19760,"clientstate_delta_ticks":372,"clientstate_last_outgoing_command":19756,"clientstate_net_channel":156,"convar_name_hash_table":197024,"dwClientState":5894556,"dwClientState_GetLocalPlayer":384,"dwClientState_IsHLTV":19784,"dwClientState_Map":652,"dwClientState_MapDirectory":392,"dwClientState_MaxPlayer":904,"dwClientState_PlayerInfo":21184,"dwClientState_State":264,"dwClientState_ViewAngles":19856,"dwEntityList":81788868,"dwForceAttack":52616700,"dwForceAttack2":52616712,"dwForceBackward":52616784,"dwForceForward":52616772,"dwForceJump":86752592,"dwForceLeft":52616796,"dwForceRight":52616640,"dwGameDir":6532480,"dwGameRulesProxy":87225708,"dwGetAllClasses":14729100,"dwGlobalVars":5893728,"dwGlowObjectManager":87403120,"dwInput":86365592,"dwInterfaceLinkList":10076532,"dwLocalPlayer":14592356,"dwMouseEnable":86217208,"dwMouseEnablePtr":86217160,"dwPlayerResource":52609392,"dwRadarBase":86207132,"dwSensitivity":14609280,"dwSensitivityPtr":14609280,"dwSetClanTag":580224,"dwViewMatrix":81726964,"dwWeaponTable":86369908,"dwWeaponTableIndex":12908,"dwYawPtr":14608656,"dwZoomSensitivityRatioPtr":14631808,"dwbSendPackets":905906,"dwppDirect3DDevice9":680640,"find_hud_element":655032464,"force_update_spectator_glow":4036346,"interface_engine_cvar":260764,"is_c4_owner":4091664,"m_bDormant":237,"m_bIsLocalPlayer":13864,"m_flSpawnTime":66496,"m_pStudioHdr":10576,"m_pitchClassPtr":86216944,"m_yawClassPtr":14608656,"model_ambient_min":5902740,"set_abs_angles":1996528,"set_abs_origin":1996080},"netvars":{"cs_gamerules_data":0,"m_ArmorValue":71628,"m_Collision":800,"m_CollisionGroup":1140,"m_Local":12236,"m_MoveType":604,"m_OriginalOwnerXuidHigh":12756,"m_OriginalOwnerXuidLow":12752,"m_SurvivalGameRuleDecisionTypes":4904,"m_SurvivalRules":3328,"m_aimPunchAngle":12348,"m_aimPunchAngleVel":12360,"m_angEyeAnglesX":71632,"m_angEyeAnglesY":71636,"m_bBombDefused":10688,"m_bBombPlanted":2469,"m_bBombTicking":10640,"m_bFreezePeriod":32,"m_bGunGameImmunity":39312,"m_bHasDefuser":71644,"m_bHasHelmet":71616,"m_bInReload":12981,"m_bIsDefusing":39292,"m_bIsQueuedMatchmaking":116,"m_bIsScoped":39284,"m_bIsValveDS":124,"m_bSpotted":2365,"m_bSpottedByMask":2432,"m_bStartedArming":13312,"m_bUseCustomAutoExposureMax":2521,"m_bUseCustomAutoExposureMin":2520,"m_bUseCustomBloomScale":2522,"m_clrRender":112,"m_dwBoneMatrix":9896,"m_fAccuracyPenalty":13120,"m_fFlags":260,"m_flC4Blow":10656,"m_flCustomAutoExposureMax":2528,"m_flCustomAutoExposureMin":2524,"m_flCustomBloomScale":2532,"m_flDefuseCountDown":10684,"m_flDefuseLength":10680,"m_flFallbackWear":12768,"m_flFlashDuration":66672,"m_flFlashMaxAlpha":66668,"m_flLastBoneSetupTime":10536,"m_flLowerBodyYawTarget":39644,"m_flNextAttack":11648,"m_flNextPrimaryAttack":12872,"m_flSimulationTime":616,"m_flTimerLength":10660,"m_hActiveWeapon":12040,"m_hBombDefuser":10692,"m_hMyWeapons":11784,"m_hObserverTarget":13212,"m_hOwner":10716,"m_hOwnerEntity":332,"m_hViewModel":13064,"m_iAccountID":12248,"m_iClip1":12916,"m_iCompetitiveRanking":6788,"m_iCompetitiveWins":7048,"m_iCrosshairId":71736,"m_iDefaultFOV":13116,"m_iEntityQuality":12220,"m_iFOV":12788,"m_iFOVStart":12792,"m_iGlowIndex":66696,"m_iHealth":256,"m_iItemDefinitionIndex":12218,"m_iItemIDHigh":12240,"m_iMostRecentModelBoneCounter":9872,"m_iObserverMode":13192,"m_iShotsFired":66528,"m_iState":12904,"m_iTeamNum":244,"m_lifeState":607,"m_nBombSite":10644,"m_nFallbackPaintKit":12760,"m_nFallbackSeed":12764,"m_nFallbackStatTrak":12772,"m_nForceBone":9868,"m_nModelIndex":600,"m_nTickBase":13376,"m_nViewModelIndex":10704,"m_rgflCoordinateFrame":1092,"m_szCustomName":12364,"m_szLastPlaceName":13764,"m_thirdPersonViewAngles":12776,"m_vecOrigin":312,"m_vecVelocity":276,"m_vecViewOffset":264,"m_viewPunchAngle":12336,"m_zoomLevel":13280}}
|
Reference in a new issue