I am new to security and pen testing. I am using metasploit to generate my payload. I have generated a payload using generate -t exe -f shell.exe. But I cant find the location of the shell.exe anywhere in kali linux. I have tried find / -name 'shell.exe'. But still no luck.

closed as off-topic by forest, kasperd, multithr3at3d, Teun Vink, Matthew Jul 31 '18 at 15:06

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "This question does not appear to be about Information security within the scope defined in the help center." – forest, kasperd, multithr3at3d, Teun Vink, Matthew
If this question can be reworded to fit the rules in the help center, please edit the question.


You're going to want to give the -f flag a fully qualified path

generate -t exe -f /root/shell.exe

should drop it in your root directory

You can read more about Generating Payloads on the Offensive Security Website

Here is an example they give

generate -b '\x00' -e x86/shikata_ga_nai -f /root/msfu/filename.txt

Not the answer you're looking for? Browse other questions tagged or ask your own question.