ButOSX icon indicating copy to clipboard operation
ButOSX copied to clipboard

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

Open Hydrogen37 opened this issue 3 years ago • 29 comments

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

Hydrogen37 avatar Sep 12 '21 07:09 Hydrogen37

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.

Lyceion avatar Sep 12 '21 08:09 Lyceion

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

Hydrogen37 avatar Sep 13 '21 04:09 Hydrogen37

@Lyceion update for m1 pls

imdecoder avatar Sep 21 '21 18:09 imdecoder

@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.)

Lyceion avatar Sep 21 '21 18:09 Lyceion

can you share discord channel? @Lyceion

imdecoder avatar Sep 21 '21 18:09 imdecoder

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

Lyceion avatar Sep 21 '21 18:09 Lyceion

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? 😅

imdecoder avatar Sep 21 '21 18:09 imdecoder

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 [email protected] i'm gonna send you one when i arrive home. Also you can speak Turkish. I'm also Turkish.

Lyceion avatar Sep 21 '21 18:09 Lyceion

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

TheArmKing avatar Sep 21 '21 19:09 TheArmKing

This is for linux only @TheArmKing

imdecoder avatar Sep 22 '21 21:09 imdecoder

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

TheArmKing avatar Sep 23 '21 07:09 TheArmKing

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

Hydrogen37 avatar Sep 23 '21 10:09 Hydrogen37

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 avatar Sep 23 '21 13:09 imdecoder

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

imdecoder avatar Sep 23 '21 19:09 imdecoder

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

Hydrogen37 avatar Sep 24 '21 14:09 Hydrogen37

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 avatar Sep 24 '21 15:09 TheArmKing

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.

TheArmKing avatar Sep 25 '21 12:09 TheArmKing

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 avatar Oct 13 '21 22:10 Garsiya777

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 avatar Oct 13 '21 22:10 Garsiya777

@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

Garsiya777 avatar Oct 13 '21 22:10 Garsiya777

it freezes upon injection for m1 Mac using fakePh0e injector

antofung avatar Aug 27 '22 09:08 antofung

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

antofung avatar Aug 28 '22 14:08 antofung

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

It's just support libs injecting.

kotleni avatar Oct 16 '22 22:10 kotleni

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 avatar Oct 29 '22 14:10 kotleni

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).
  1. 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 avatar Oct 30 '22 06:10 kotleni

Yes, you have Discord?

kotleni avatar Oct 30 '22 07:10 kotleni

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

kotleni avatar Oct 30 '22 07:10 kotleni

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:

PHILKAULTRA avatar Apr 24 '23 11:04 PHILKAULTRA

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

katanapiggy avatar May 21 '23 11:05 katanapiggy