Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I made some improvements #4

Open
Baptiste-A opened this issue Nov 20, 2020 · 25 comments
Open

I made some improvements #4

Baptiste-A opened this issue Nov 20, 2020 · 25 comments

Comments

@Baptiste-A
Copy link

Baptiste-A commented Nov 20, 2020

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'))
@zlataovce
Copy link

zlataovce commented Dec 12, 2020

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.

@Baptiste-A
Copy link
Author

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

@zlataovce
Copy link

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!

@Baptiste-A
Copy link
Author

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 :)

@vivxk
Copy link

vivxk commented Jan 11, 2021

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

@Baptiste-A
Copy link
Author

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

Hello, yep still working like a charm :)

@vivxk
Copy link

vivxk commented Jan 11, 2021

ok thx mate :)

@Baptiste-A
Copy link
Author

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

@markito12
Copy link

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

You didnt get banned yet?

@Baptiste-A
Copy link
Author

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

You didnt get banned yet?

Not yet :)

@ghost
Copy link

ghost commented May 21, 2021

you get banned?

@Baptiste-A
Copy link
Author

you get banned?

Nope

@ghost
Copy link

ghost commented May 21, 2021

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!

@Baptiste-A
Copy link
Author

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

@Sniferrrr
Copy link

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

@Sniferrrr
Copy link

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

@Baptiste-A
Copy link
Author

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

@talk2g
Copy link

talk2g commented Jul 28, 2021

you get banned?

Nope

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

@Baptiste-A
Copy link
Author

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

@talk2g
Copy link

talk2g commented Jul 28, 2021

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

@Baptiste-A
Copy link
Author

@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

@talk2g
Copy link

talk2g commented Jul 28, 2021

thx for help

@GabrielDourado37
Copy link

@Baptiste-A were you banned for this?

@Baptiste-A
Copy link
Author

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

@vivxk
Copy link

vivxk commented Apr 21, 2024

has anyone tried it on cs2?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants