This is a problem that I have beaten my head over for quite some time.
I want to embed malicious code into a program , and when a victim opens it it will give me access to a meterpreter session on the device, for this i use an application named Shellter, which is a program used to embed metasploit payloads into applications.
Here is the problem: I can't figure out my LHOST, when I try to exploit the meterpreter payload all I get is a failed to bind error( I think this is because My LHost is wrong)
I have tried to do the following things:
1) use ifconfig in kali linux, however none of the things it shows seem to be my LHOST:
`eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 10.0.2.15 netmask 255.255.255.0 broadcast 10.0.2.255
inet6 fe80::b348:618e:2b67:6265 prefixlen 64 scopeid 0x20<link>
ether 08:00:27:a8:6f:0d txqueuelen 1000 (Ethernet)
RX packets 11 bytes 1940 (1.8 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 25 bytes 2538 (2.4 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 1 (Local Loopback)
RX packets 14 bytes 818 (818.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 14 bytes 818 (818.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 `
2) I tried cmd ipconfig and used some IP's from there (mainly the ethernet and virtualbox hosts)
3)I typed ip into google (it was the same in kali and windows)
4) I also looked in my setting(in kali linux) and used the ip from there.
5) I looked A LOT on the internet but I could not find anything
ps:maybe I am using the wrong ports? pps: my kali linux says it has a wired connection
LHOST
is simple metasploit's way of saying "My localhost as it will be visible by the target of the attack". This may be different whether you and your target are on the same private net (will be a local net address) or are connecting through the internet (will be a public IP).