I am using this exploit on msfconsole to exploit a VM with samba and the configuration is as follows:
Module options (exploit/linux/samba/sambacry) Payload options (linux/x64/meterpreter/reverse_tcp) 2 Linux x86_64 -> target
the rhost, rport, lhost, and lport are also set.
I run the exploit on kali linux on an aws ec2 instance. Each VM is in a different subnetwork, but I can ping one another with their respective private ip addresses.
Both VMs have no firewalls (security groups desabled allowing all inbound and outbound traffic)
The samba version I am using is 4.3.11 for ubuntu 4.4.0-1066-aws
Does anyones know the reason for me still getting "Exploit completed, but no session was created." ?