lysep-corp / ButOSX

CSGO Cheat Base for MacOSX. Written in C++ & Objective C. Menu Powered by ImGui. Includes Apple TouchBar API.
MIT License
70 stars 14 forks source link

M1 Macbook Air base model, not injecting due to osxinj not working on big sur #31

Open Hydrogen37 opened 3 years ago

Hydrogen37 commented 3 years ago

@Lyceion do you have a big sur injector? osxinj might have been depricated after catalina

Lyceion commented 3 years ago

I'm using osxinj on big sur without any problem. Just compiled one from it's official repo.

About M1; yeah, osxinj doesn't support m1 native. I can't provide any but as we tested, ButOSX works on m1 macbooks.

Hydrogen37 commented 3 years ago

@Lyceion do you have a version of osxinj that you can send me that I can use?

imdecoder commented 3 years ago

@Lyceion update for m1 pls

Lyceion commented 3 years ago

@Lyceion update for m1 pls

Already works for m1. (if you have a m1 injector which doesn't about me)

WORKS ON M1 IF YOU HAVE INJECTOR WHICH I DONT PROVIDE

Proof from discord: DE91A836-9E78-45A9-81B3-9A5D99F68BCE

(Censored bc i'm sharing screenshot without their permission. I'm not sure they want to expose theirselfs.)

imdecoder commented 3 years ago

can you share discord channel? @Lyceion

Lyceion commented 3 years ago

can you share discord channel? @Lyceion

Not public anymore. Sorry... But you can search other injectors which doesn't use process hjacking method can probably inject. (Which the method osxinj uses.)

imdecoder commented 3 years ago

can you share discord channel? @Lyceion

Not public anymore. Sorry... But you can search other injectors which doesn't use process hjacking method can probably inject. (Which the method osxinj uses.)

Thanks man, i search "libButOSX.dylib" file can you send me? 😅

Lyceion commented 3 years ago

can you share discord channel? @Lyceion

Not public anymore. Sorry... But you can search other injectors which doesn't use process hjacking method can probably inject. (Which the method osxinj uses.)

Thanks man, i search "libButOSX.dylib" file can you send me? 😅

Removed from github because of uc rules. If you have uc account you can download from https://www.unknowncheats.me/forum/downloads.php?do=file&id=33979 . If you don't, mail me from lyceion@protonmail.com i'm gonna send you one when i arrive home. Also you can speak Turkish. I'm also Turkish.

TheArmKing commented 3 years ago

You can refer to this for injecting on M1: https://aixxe.net/2016/09/shared-library-injection

imdecoder commented 3 years ago

This is for linux only @TheArmKing

TheArmKing commented 3 years ago

This is for linux only @TheArmKing

With a few adjustments it can be made to work on macOS as well. You will need lldb instead of gdb

Hydrogen37 commented 3 years ago

when I try to compile osxinj in xcode, it gives 2 errors: Architecture not supported Implicit declaration of function 'close' is invalid in C99 Using M1 Macbook Air

imdecoder commented 3 years ago

I fixed "Implicit declaration of function 'close' is invalid in C99" problem. @Hydrogen37 @Lyceion @TheArmKing You need to include a library at the top of the mach_inject file.

Add #include <unistd.h> // for close after #include <fcntl.h> // for open code. However, there is still "Architecture not supported" error.

imdecoder commented 3 years ago

@Lyceion Hocam M1'de çalışan injectoru buldum. Ancak şimdide "libButOSX.dylib" çalışmıyor.

Hydrogen37 commented 3 years ago

I fixed "Implicit declaration of function 'close' is invalid in C99" problem. @Hydrogen37 @Lyceion @TheArmKing You need to include a library at the top of the mach_inject file.

Add #include <unistd.h> // for close after #include <fcntl.h> // for open code. However, there is still "Architecture not supported" error.

Thank you. did what you said, indeed fixed the C99 problem. Architecture not supported problem still unable to fix. @Lyceion

TheArmKing commented 3 years ago

Fixing the C99 issue on osxinj won't help. However, this alternate method can be used to inject on M1 (via Terminal with lldb installed):

#thanks to aixxe.net/2016/09/shared-library-injection
sudo lldb --batch \
  -o "attach --name csgo_osx64" \
  -o "expr void* \$library = (void*)dlopen(\"/path/to/cheat.dylib\", 10)" \
  -o "detach" \
  -o "quit"

Taken from https://github.com/fakePh0e/osxGlow/blob/main/load.command

TheArmKing commented 3 years ago

ButOSX does not work with this injector :(

It will. Make sure you are running it correctly - the path to the dylib is correct and that the dylib is x86_64, not arm64.

Garsiya777 commented 3 years ago

Hi, I'm excited about your work and I want to use your cheat, but how do I get an injection on M1? Please tell me I don't have an x code

Garsiya777 commented 3 years ago

Here is the error

module: 0xA9405790 bootstrapfn: 0x87B6D90 pid: 7823 image name: /Users/M/Desktop/osxinj/bootstrap.dylib mach_inject: found threadEntry image at: 0x1087b6000 with size: 28384 wrote param with size 48 mach_inject failing.. (os/kern) invalid argument MM@MacBook-Pro-M osxinj %

Garsiya777 commented 3 years ago

@Lyceion update for m1 pls

Already works for m1. (if you have a m1 injector which doesn't about me)

WORKS ON M1 IF YOU HAVE INJECTOR WHICH I DONT PROVIDE

Proof from discord:

DE91A836-9E78-45A9-81B3-9A5D99F68BCE

(Censored bc i'm sharing screenshot without their permission. I'm not sure they want to expose theirselfs.)

HI, please help me with the injection on m1

antofung commented 2 years ago

it freezes upon injection for m1 Mac using fakePh0e injector

antofung commented 2 years ago
Screen Shot 2022-08-29 at 12 48 41 am Screen Shot 2022-08-29 at 12 48 46 am

injection now works but crashes here. see the debug

kotleni commented 2 years ago

And you can use this project: https://github.com/kotleni/csgo-run

It's just support libs injecting.

kotleni commented 2 years ago

And you can use this project: https://github.com/kotleni-reverse/csgo-run. It's just support libs injecting.

Hi @kotleni . I went to the project you linked, but was unable to figure out how to make it work. I downloaded the zip file, and then copy and pasted the Makefile code for OSX in terminal. This process was successful as it made the csgo_osx64 Unix Executable File. However, I started experiencing issues from this point forward. I don't know how to inject this file at all. I have read the readme.md file given and tried many different injecting options as well, but I feel like I am doing it wrong. Can you please tell me what I need to write in terminal so that I can inject the file? Thank you so much.

  1. You can replace original file csgo_osx64 in csgo game directory (Like: Steam -> CSGO -> Game settings (Gear icon) -> Additional -> Open game directory).
  2. Set game custom command line arguments to -inj <lib> -injdelay <secs> (recommended 70 secs). (Like: Steam -> CSGO -> Game settings (Gear icon) -> General -> Command line arguments)

And you can see it video: https://youtu.be/NVNAeQIqQIo

kotleni commented 2 years ago

And you can use this project: https://github.com/kotleni-reverse/csgo-run.

It's just support libs injecting.

Hi @kotleni . I went to the project you linked, but was unable to figure out how to make it work. I downloaded the zip file, and then copy and pasted the Makefile code for OSX in terminal. This process was successful as it made the csgo_osx64 Unix Executable File. However, I started experiencing issues from this point forward. I don't know how to inject this file at all. I have read the readme.md file given and tried many different injecting options as well, but I feel like I am doing it wrong. Can you please tell me what I need to write in terminal so that I can inject the file? Thank you so much.

  1. You can replace original file csgo_osx64 in csgo game directory (Like: Steam -> CSGO -> Game settings (Gear icon) -> Additional -> Open game directory).

  2. Set game custom command line arguments to -inj <lib> -injdelay <secs> (recommended 70 secs). (Like: Steam -> CSGO -> Game settings (Gear icon) -> General -> Command line arguments)

And you can see it video: https://youtu.be/NVNAeQIqQIo

@kotleni Wow, ok got it thank you so much. I just want to ensure that replacing the original file will not cause a ban. I have 3 more questions for you.

  1. Is there a way to inject without replacing the original file like the ButOSX dylib but with the original game file?

  2. Also, where did you get the ButOSX dylib file? Can you send it to me, please?

  3. I have been using fakePh0e injector, which has been working so far as a simple glow hack, but after the new CS:GO update a couple of days ago, I can still inject without any issues, but the glow hack doesn't work. Is there a way this can be updated, perhaps?

Thank you once again.

I used this modified file, and I didn't get banned. And all custom external injectors is broken now on MacOS.

It's works for me now, after game updating. 👀

kotleni commented 2 years ago

Yes, you have Discord?

kotleni commented 2 years ago

Okay, you can text me for help: kotleni#7119

PHILKAULTRA commented 1 year ago

Fixing the C99 issue on osxinj won't help. However, this alternate method can be used to inject on M1 (via Terminal with lldb installed):

#thanks to aixxe.net/2016/09/shared-library-injection
sudo lldb --batch \
  -o "attach --name csgo_osx64" \
  -o "expr void* \$library = (void*)dlopen(\"/path/to/cheat.dylib\", 10)" \
  -o "detach" \
  -o "quit"

Taken from https://github.com/fakePh0e/osxGlow/blob/main/load.command

I have this error - error: attach failed: more than one process named csgo_osx64:

katanapiggy commented 1 year ago

hi, i downloaded everything needed, i put it into the launch preferences and when i click play, with turns blue and says stop. it stays stuck, and i have to forcequit to rejoin