keylogger icon indicating copy to clipboard operation
keylogger copied to clipboard

`sudo make load` does not work

Open Producdevity opened this issue 3 years ago • 4 comments

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 startup command first
  • [x] Made sure everything runs without errors until sudo make load
  • [x] Made sure that the keylogger command 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

Producdevity avatar Feb 26 '22 19:02 Producdevity

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 make by running make -v
  • Check that the keylogger.plist file is in your /Library/LaunchDaemons folder after running sudo make startup
  • Check that running the launchctl load /Library/LaunchDaemons/keylogger.plist works 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.

caseyscarborough avatar Feb 27 '22 21:02 caseyscarborough

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)

Producdevity avatar Feb 27 '22 23:02 Producdevity