Jump to content

Mac File locations not EXACTLY working.


Recommended Posts

To start off I'm still learning Bash, so the answer may be very simple (I'm hoping that is gap in my education)

I have a very helpful bash script that I used to remove malware from customer's Macs. The script works great. However when attempted to convert the script to DuckyScript I noted that the "~" does not show up in the terminal window, sending the command to the wrong folder. 

QUACK STRING  ls ~/Library/LaunchAgents/ >> $lootdir/LaunchAgentsUSER.txt

My question is there a better way to write this? 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...