OneByteRadar icon indicating copy to clipboard operation
OneByteRadar copied to clipboard

I made some improvements

Open Baptiste-A opened this issue 4 years ago • 25 comments

Hello,

I really like your cheat so I made improvements (only for usability) :

  • some exception catching
  • ability to enable and disable the cheat while in game (press p)
import pymem
import re
from pynput import keyboard
from termcolor import colored

running = False

try:  # checks if csgo is opened
    pm = pymem.Pymem('csgo.exe')

    def on_press(key):  # starts key listener
        try:
            k = key.char  # single-char keys
        except:
            k = key.name  # other keys
        if k in ['p']:  # keys of interest
            global running
            if not running:  # if cheat wasn't running, runs it
                print(colored('Running...', 'green'))
                running = True
            elif running:  # if cheat was running, stops it
                print(colored('Not running...', 'red'))
                running = False

            # --------------------------- cheat himself -------------------------------------
            pm = pymem.Pymem('csgo.exe')

            client = pymem.process.module_from_name(pm.process_handle,
                                                    'client.dll')

            clientModule = pm.read_bytes(client.lpBaseOfDll, client.SizeOfImage)
            address = client.lpBaseOfDll + re.search(rb'\x80\xB9.{5}\x74\x12\x8B\x41\x08',
                                                     clientModule).start() + 6

            pm.write_uchar(address, 0 if pm.read_uchar(address) != 0 else 2)

            pm.close_process()
            # ---------------------------- end of cheat -------------------------------------

    listener = keyboard.Listener(on_press=on_press)
    listener.start()  # start to listen on a separate thread
    listener.join()  # remove if main thread is polling self.keys

except pymem.exception.ProcessNotFound:  # if csgo isn't running,
                                         # catches the error and prints something readable
    print(colored("CS:GO isn't running...", 'red'))

Baptiste-A avatar Nov 20 '20 11:11 Baptiste-A

Your code looks really great! Maybe you could make a pull request. I believe you have a mistake at the bottom except part, you have an over-indented comment right under the except: # catches the error and prints something readable . But if it works, it's good enough for me.

zlataovce avatar Dec 12 '20 19:12 zlataovce

Your code looks really great! Maybe you could make a pull request. I believe you have a mistake at the bottom except part, you have an over-indented comment right under the except: # catches the error and prints something readable . But if it works, it's good enough for me.

thanks man, I indented it too much on purpose in order for it to align to the one above it since it's the following. The code works very well, I use it on my smurf account almost every day and no VAC ban yet

Baptiste-A avatar Dec 12 '20 20:12 Baptiste-A

From my experience, VAC tends to be very delayed with bans. It took my account 3 months to get banned.

Maybe we could collaborate on a project :) Keep up the great work!

zlataovce avatar Dec 15 '20 18:12 zlataovce

From my experience, VAC tends to be very delayed with bans. It took my account 3 months to get banned.

Maybe we could collaborate on a project :) Keep up the great work!

We will see... I will keep you guys up to date with my VAC situation. Yes of course, I'll appreciate it :)

Baptiste-A avatar Dec 15 '20 21:12 Baptiste-A

hi does this still work or it's outdated now??

vivxk avatar Jan 11 '21 07:01 vivxk

hi does this still work or it's outdated now??

Hello, yep still working like a charm :)

Baptiste-A avatar Jan 11 '21 07:01 Baptiste-A

ok thx mate :)

vivxk avatar Jan 11 '21 07:01 vivxk

hello, I didn't found it, it was already in danielkrupinski's code

Baptiste-A avatar Jan 11 '21 19:01 Baptiste-A

hello, I didn't found it, it was already in danielkrupinski's code

You didnt get banned yet?

markito12 avatar Jan 14 '21 14:01 markito12

hello, I didn't found it, it was already in danielkrupinski's code

You didnt get banned yet?

Not yet :)

Baptiste-A avatar Jan 14 '21 18:01 Baptiste-A

you get banned?

ghost avatar May 21 '21 13:05 ghost

you get banned?

Nope

Baptiste-A avatar May 21 '21 13:05 Baptiste-A

I'm making my own cheat in python, and learning more about this language, thanks for you and all community what made projects like this as public!

ghost avatar May 21 '21 13:05 ghost

I'm making my own cheat in python, and learning more about this language, thanks for you and all community what made projects like this as public!

Np dude but I didn’t made most of the job

Baptiste-A avatar May 21 '21 13:05 Baptiste-A

hi, how can i contact you? I need your help

Sniferrrr avatar May 29 '21 22:05 Sniferrrr

Baptiste-A, hi, how can i contact you? I need your help

Sniferrrr avatar May 29 '21 22:05 Sniferrrr

Baptiste-A, hi, how can i contact you? I need your help

Hello, I don’t think I’ll be able to help you much because I didn’t code the cheat itself

Baptiste-A avatar May 30 '21 04:05 Baptiste-A

you get banned?

Nope

does this inject into cs like any other normal cheat? (example osiris) or is it different since its on python?

talk2g avatar Jul 28 '21 16:07 talk2g

you get banned?

Nope

does this inject into cs like any other normal cheat? (example osiris) or is it different since its on python?

No, it doesn’t inject anything, it just reads the game data stored in the ram

Baptiste-A avatar Jul 28 '21 16:07 Baptiste-A

@Baptiste-A that means vac cant detect it? since nothing is being modified at all? or m i wrong

talk2g avatar Jul 28 '21 16:07 talk2g

@Baptiste-A that means vac cant detect it? since nothing is being modified at all? or m i wrong

The only thing that is being modified is the red dots on your radar but it’s client side so I dont think il will be detected soon

Baptiste-A avatar Jul 28 '21 16:07 Baptiste-A

thx for help

talk2g avatar Jul 28 '21 18:07 talk2g

@Baptiste-A were you banned for this?

GabrielDourado37 avatar Apr 13 '24 12:04 GabrielDourado37

No, but i'll not try it on cs2 if I were you ...

Baptiste-A avatar Apr 21 '24 09:04 Baptiste-A

has anyone tried it on cs2?

vivxk avatar Apr 21 '24 11:04 vivxk