danielkrupinski / Osiris

Cross-platform game hack for Counter-Strike 2 with Panorama-based GUI.
MIT License
3.31k stars 961 forks source link

[LINUX] Is it not working or am I not sure how to activate it? #4244

Open Hhk78 opened 5 months ago

Hhk78 commented 5 months ago

I inject the cheat but nothing changes in the game.

➜  ~ cd git/Osiris/build/Source 
➜  Source git:(master) ✗ ls
CMakeFiles  cmake_install.cmake  inj  libOsiris.so  Makefile
➜  Source git:(master) ✗ sudo gdb -batch-silent -p $(pidof cs2) -ex "call (void*)dlopen(\"$PWD/libOsiris.so\", 2)"
[sudo] password for h: 
➜  Source git:(master) ✗ 

It doesn't give any output either. Is it not working or am I not sure how to activate it??

(i am using translate)

totkyle commented 5 months ago

having the same issue here.

snipcola commented 5 months ago

I got it working by compiling https://github.com/kubo/injector and then doing:

./cmd/injector -n cs2 ../Osiris/build/Source/libOsiris.so

Although not sure how safe this is.

totkyle commented 5 months ago

i tried doing this but it says could not find the process: cs2

snipcola commented 5 months ago

You can try replace -n cs2 with -p $(pidof cs2), and see if maybe that helps.

Hhk78 commented 5 months ago
➜  Source git:(master) ✗ sudo injector -n cs2 ./libOsiris.so
targeting process "cs2" with pid 72354
"./libOsiris.so" successfully injected
➜  Source git:(master) ✗ sudo injector -p $(pidof cs2) libOsiris.so 
targeting process with pid 72354
"libOsiris.so" successfully injected

I did what you said, but do I still need to do anything else to enable cheating in the game?

totkyle commented 5 months ago

You can try replace -n cs2 with -p $(pidof cs2), and see if maybe that helps.

i tried -p $(pidof cs2) but it didnt work, then i found the pid myself and went -p 4718 and then it said could not inject "libOsiris.so" dlopen failed: /home/arhan/injector/cmd/tanku.so: cannot open shared object file: No such file or directory