Git Product home page Git Product logo

onebytewallhack's Introduction

OneByteWallhack

CS:GO wallhack achieved by patching one byte of game memory. Written in Python 3.

This does the same as r_drawothermodels 2 command but without touching the cvar, so it's VAC - safe.

How it works

This program patches assembly code produced by compiling the following line of the game code:

int extraFlags = 0;
if ( r_drawothermodels.GetInt() == 2 )
{	
    extraFlags |= STUDIO_WIREFRAME;	
}

The r_drawothermodels check is modified to make the if expression evaluate to true when r_drawothermodels cvar is set to default value (1).

onebytewallhack's People

Contributors

danielkrupinski avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

onebytewallhack's Issues

Q&A

Do I need to manually update the offsets or until you update it?

replays

Hey, thought I use Issues section to ask this, but people shouldn't be able to see this thing when watching a replay, right? If I understand correctly

sv_cheats 1

how can i use same process to make sv_cheats 1

A friend is experiencing an issue with executing OneByteWallHack in CMD

So my friend is trying to run OneByteWallHack.py in CMD.
However it gives this error

Traceback (most recent call last):
  File "OneByteWallhack.py", line 8, in <module>
    clientModule = pm.read_bytes(client.lpBaseOfDll, client.SizeOfImage)
AttributeError: 'NoneType' object has no attribute 'lpBaseOfDll'

Any help?

Nice work!

U did a very good job with this patch, but how do u get this binary code ?

Secure mode

Do I need to switch to Untrusted mode when using it for not getting VAC?

Pattern

Anyone find the pattern for wireframe or completly removed ?

first time i try to py like noob...

import pymem

import pymem.process

dwEntityList = (0x4CE44EC)

dwLocalPlayer = (0xCD3764)

dwGlowObjectManager = (0x5224748)

m_iGlowIndex = (0xA3F8)

m_iTeamNum = (0xF4)

pm = pymem.Pymem("csgo.exe")

client = pymem.process.module_from_name(pm.process_handle, "client_panorama.dll").lpBaseOfDll

def main():

print("Glow is launched.")

while True:

    glow_manager = pm.read_int(client + dwGlowObjectManager)


    for i in range(1, 32):  # Entities 1-32 are reserved for players. 

        entity = pm.read_uint(client + (dwEntityList + i * 0x10))

        
        if entity:

            entity_team_id = pm.read_uint(entity + m_iTeamNum)
            entity_glow = pm.read_int(entity + m_iGlowIndex)

            
            if entity_team_id == 2:  # Terrorist

                pm.write_float(glow_manager + ((entity_glow * 0x38) + 0x4), float(1))   # R 

                pm.write_float(glow_manager + ((entity_glow * 0x38) + 0x8), float(0))   # G

                pm.write_float(glow_manager + ((entity_glow * 0x38) + 0xC), float(0))   # B

                pm.write_float(glow_manager + ((entity_glow * 0x38) + 0x10), float(1))  # Alpha


            
            elif entity_team_id == 3:  # Counter-terrorist

                pm.write_float(glow_manager + entity_glow * 0x38 + 0x4, float(0))   # R

                pm.write_float(glow_manager + entity_glow * 0x38 + 0x8, float(1))   # G

                pm.write_float(glow_manager + entity_glow * 0x38 + 0xC, float(0))   # B

                pm.write_float(glow_manager + entity_glow * 0x38 + 0x10, float(1))  # Alpha
            
            pm.write_int(glow_manager + ((entity_glow * 0x38) + 0x24), 1)           # Enable glow
            pm.write_int(glow_manager + ((entity_glow * 0x38) + 0x25), 0)          

if name == 'main':

main()

How did you do it?

I became very interested in your project here and was interested in finding out how you were able to find the addresses of the specific lines of code to patch.

Is it possible to change the Color?

I have programmed a GUI version for this hack and the radar hack and I would like to know if it is possible to change the color of the WH... If yes, please respond!

AdjustTokenPrivileges Error

The following error resulted when I ran the script:

PS C:\Users\Nick\Desktop\python> python wallhack.py
AdjustTokenPrivileges error: 0x00000006

Traceback (most recent call last):
  File "C:\Users\Nick\Desktop\python\wallhack.py", line 4, in <module>
    pm = pymem.Pymem('csgo.exe')
  File "C:\Users\Nick\AppData\Local\Programs\Python\Python39\lib\site-packages\pymem\__init__.py", line 45, in __init__
    self.open_process_from_name(process_name)
  File "C:\Users\Nick\AppData\Local\Programs\Python\Python39\lib\site-packages\pymem\__init__.py", line 198, in open_process_from_name
    self.open_process_from_id(self.process_id)
  File "C:\Users\Nick\AppData\Local\Programs\Python\Python39\lib\site-packages\pymem\__init__.py", line 220, in open_process_from_id
    raise pymem.exception.CouldNotOpenProcess(self.process_id)
pymem.exception.CouldNotOpenProcess: Could not open process: 125916

Tried in cmd prompt with admin too

Error executing the hack on Linux

Hello! I am getting this error by running sudo python OneByteWallhack.py. This is the error:
File "OneByteWallhack.py", line 9
address = client.lpBaseOfDll + re.search(rb'\x83\xF8.\x8B\x45\x08\x0F',
^
SyntaxError: invalid syntax

How can i solve it?

Thnx

FlashBang / Skeleton

Can U make a code to display players skeletons & remove flashbang ,BTW great thanks! really simple way ,Tried making this using cheat engine but didn't find anything

update

Can you explain the process of reverse engineering the game and finding the right memory address?

How do I encode and decode commands used in the CS:GO console

How do I encode and decode commands used in the CS:GO console (example: \x83\xF8.\x8B\x45\x08\x0F - ...)

Original: Как кодировать и декодировать команды, используемые в консоли CS:GO (пример: \x83\xF8.\x8B\x45\x08\x0F - ...)

not working ...

Traceback (most recent call last):
File "OneByteWallhack.py", line 10, in
clientModule).start() + 2
AttributeError: 'NoneType' object has no attribute 'start'

vac bypass

not working with vac bypass. can I know why and what should I do?

cs2

Does it work in cs2?

Sv_pure? and Bhop?

Is it possible to bypass sv_pure with onebyte like the wallhack, radar and cl_showpos etc, im a newbie so would apreticate help alot!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.