`sudo make load` does not work
Prerequisites
- [x] Running the latest version
- [x] I checked the documentation and found no answer
- [x] I checked to make sure that this issue has not already been filed
- [x] Made sure to run the
sudo make startupcommand first - [x] Made sure everything runs without errors until
sudo make load - [x] Made sure that the
keyloggercommand itself runs fine
Expected Behavior
That the keylogger would start after running sudo make load.
Current Behavior
I am getting this error: make: *** No rule to make target 'load'. Stop.
Context
- Operating System: Mac OS 12.2
This error is typically when make is either unable to find the Makefile, the target in the Makefile, or doesn't have the proper permissions. Can you ensure there are no changes to the Makefile (like spaces instead of tabs), you're in the repository root, and you have permissions to the file?
If that's still not working, here's a few other things you can try:
- Provide your version of
makeby runningmake -v - Check that the
keylogger.plistfile is in your/Library/LaunchDaemonsfolder after runningsudo make startup - Check that running the
launchctl load /Library/LaunchDaemons/keylogger.plistworks on its own
I haven't tested this on macOS 12 so perhaps there could be an issue there, but it seems more like something related to make.
Thanks for your response!
I am running versions GNU Make 3.81.
This is the content in the keylogger.plist file:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>keylogger</string>
<key>ProgramArguments</key>
<array>
<string>/usr/local/bin/keylogger</string>
</array>
<key>RunAtLoad</key>
<true/>
<key>KeepAlive</key>
<true/>
</dict>
</plist>
I am not sure but I think that that means it does run it at startup and the sudo make load is only making sure the Daemon is starting right now too, correct?
(Makefile is unedited btw)