You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
sudo gdb -batch -ex "attach $(pidof cs2)" -ex "call (void*)dlopen("$PWD/libOsiris.so", 2)" -ex "detach" -ex "quit"
What this command does:
sudo gdb — launches GDB (GNU Debugger) with superuser privileges.
-batch — runs GDB in "batch" mode, meaning no user interaction is required.
-ex "attach $(pidof cs2)" — attaches GDB to the CS2 (Counter-Strike 2) game process by its PID (obtained using pidof cs2).
-ex "call (void*)dlopen("$PWD/libOsiris.so", 2)" — calls the dlopen function to load the libOsiris.so library, located in the current working directory.
-ex "detach" — detaches from the process after the injection is performed.
-ex "quit" — quits GDB after execution.
This command allows you to inject the specified library into the game process.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
sudo gdb -batch -ex "attach $(pidof cs2)" -ex "call (void*)dlopen("$PWD/libOsiris.so", 2)" -ex "detach" -ex "quit"
What this command does:
sudo gdb — launches GDB (GNU Debugger) with superuser privileges.
-batch — runs GDB in "batch" mode, meaning no user interaction is required.
-ex "attach $(pidof cs2)" — attaches GDB to the CS2 (Counter-Strike 2) game process by its PID (obtained using pidof cs2).
-ex "call (void*)dlopen("$PWD/libOsiris.so", 2)" — calls the dlopen function to load the libOsiris.so library, located in the current working directory.
-ex "detach" — detaches from the process after the injection is performed.
-ex "quit" — quits GDB after execution.
This command allows you to inject the specified library into the game process.
Beta Was this translation helpful? Give feedback.
All reactions