Skip to content
This repository was archived by the owner on Dec 28, 2023. It is now read-only.

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

Open
Hydrogen37 opened this issue Sep 12, 2021 · 29 comments
Labels
question Further information is requested wontfix This will not be worked on

Comments

@Hydrogen37
Copy link

Hydrogen37 commented Sep 12, 2021

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

@Lyceion
Copy link
Member

Lyceion commented Sep 12, 2021

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
Copy link
Author

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

@imdecoder
Copy link

@Lyceion update for m1 pls

@Lyceion
Copy link
Member

Lyceion commented Sep 21, 2021

@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
Copy link

can you share discord channel? @Lyceion

@Lyceion
Copy link
Member

Lyceion commented Sep 21, 2021

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
Copy link

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
Copy link
Member

Lyceion commented Sep 21, 2021

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
Copy link

TheArmKing commented Sep 21, 2021

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

@imdecoder
Copy link

This is for linux only @TheArmKing

@TheArmKing
Copy link

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
Copy link
Author

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
Copy link

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
Copy link

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

@Hydrogen37
Copy link
Author

Hydrogen37 commented Sep 24, 2021

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
Copy link

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
Copy link

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
Copy link

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
Copy link

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
Copy link

@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
Copy link

it freezes upon injection for m1 Mac using fakePh0e injector

@antofung
Copy link

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
Copy link

kotleni commented Oct 16, 2022

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

It's just support libs injecting.

@kotleni
Copy link

kotleni commented Oct 29, 2022

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
Copy link

kotleni commented Oct 30, 2022

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
Copy link

kotleni commented Oct 30, 2022

Yes, you have Discord?

@kotleni
Copy link

kotleni commented Oct 30, 2022

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

@PHILKAULTRA
Copy link

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
Copy link

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

@candestan candestan added the question Further information is requested label Sep 22, 2023
@candestan candestan added the wontfix This will not be worked on label Sep 22, 2023
@lysep-corp lysep-corp locked as off-topic and limited conversation to collaborators Sep 22, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
question Further information is requested wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

10 participants