Explain RHost, LHost, and Port.
I'm a complete beginner who wants to learn pen testing. I'm having trouble understanding these 3 specific IP's: the remote host, local host, and PORTS.
In my own understanding the remote host is the target's IP address and the local host is your IP address but if your target is outside of your network you will use your public IP address and if your target is inside in your network you will use the local IP right?
But I don't understand what PORTS are.
In many YouTube tutorials they are just inputting "6666", "4444". Can someone explain to me what is the use and where can I find what my PORT is?
The .rhosts File The .rhosts file is the user equivalent of the /etc/hosts.equiv file. It contains a list of host-user combinations, rather than hosts in general. If a host-user combination is listed in this file, the specified user is granted permission to log in remotely from the specified host without having to supply a password.
Note that a .rhosts file must reside at the top level of a user's home directory. .rhost files located in subdirectories are not consulted.
Users can create .rhosts files in their home directories. Using the .rhosts file is another way to allow trusted access between their own accounts on different systems without using the /etc/hosts.equiv file. LHOST is simply 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) A port is a virtual point where network connections start and end. ... Ports allow computers to easily differentiate between different kinds of traffic: emails go to a different port than webpages, for instance, even though both reach a computer over the same Internet connection.