Create a directory for machine on the Desktop and a directory containing the scans with nmap.
Task 2 - Reconnaissance
suecho"10.10.51.196 kenobi.thm">>/etc/hostsmkdirthm/kenobi.thmcdthm/kenobi.thm# At the end of the room# To clean up the last line from the /etc/hosts filesed-i'$ d'/etc/hosts
I prefer to start recon by pinging the target, this allows us to check connectivity and get OS info.
Sending these three ICMP packets, we see that the Time To Live (TTL) is ~64 secs. this indicates that the target is a *nix system (probably Linux), while Windows systems usually have a TTL of 128 secs.
2.1 - Scan the machine with nmap, how many ports are open?
Samba is the standard Windows interoperability suite of programs for Linux and Unix. It allows end users to access and use files, printers and other commonly shared resources on a companies intranet or internet. Its often referred to as a network file system.
Samba is based on the common client/server protocol of Server Message Block (SMB). SMB is developed only for Windows, without Samba, other computer platforms would be isolated from Windows machines, even if they were part of the same network.
PORTSTATESERVICE139/tcpopennetbios-ssn445/tcpopenmicrosoft-dsHostscriptresults:|smb-enum-shares:|account_used:guest|\\10.10.51.196\IPC$:|Type:STYPE_IPC_HIDDEN|Comment:IPCService (kenobi server (Samba, Ubuntu))|Users:1|MaxUsers:<unlimited>|Path:C:\tmp|Anonymousaccess:READ/WRITE|Currentuseraccess:READ/WRITE|\\10.10.51.196\anonymous:|Type:STYPE_DISKTREE|Comment:|Users:0|MaxUsers:<unlimited>|Path:C:\home\kenobi\share|Anonymousaccess:READ/WRITE|Currentuseraccess:READ/WRITE|\\10.10.51.196\print$:|Type:STYPE_DISKTREE|Comment:PrinterDrivers|Users:0|MaxUsers:<unlimited>|Path:C:\var\lib\samba\printers|Anonymousaccess:<none>|_Currentuseraccess:<none>
3 shares
On most distributions of Linux smbclient is already installed. Lets inspect one of the shares.
3.2 - Once you're connected, list the files on the share. What is the file can you see?
Your earlier nmap port scan will have shown port 111 running the service rpcbind. This is just a server that converts remote procedure call (RPC) program number into universal addresses. When an RPC service is started, it tells rpcbind the address at which it is listening and the RPC program number its prepared to serve.