All Appendix 2 Flashcards
RIP Port
UDP 520
UDP 520
RIP
What does rusers stand for
Remote Users Service
What does rusers do
rusers displays information about users currently logged into remote systems
What is the difference between rusers and rwho
rusers displays information only for the current host while rwho displays information for the entire network
How does rusers work
When you run rusers on a network, it sends out a broadcast request to all machines on the network running the rusersd daemon, these machines will respond with a list of currently logged in users along with their idle times
Rusers port
UDP 513
UDP 513
Rusers and Rwho
What does Rwho stand for
Remote Who Service
What does rwho do
rwho displays information about users logged into remtoe systems on a network
Rwho port
UDP 513
How can SMTP be used to enumerate users
Certain SMTP commands such as VRFY and EXPN can be used to validate whether a specific email/username exists on the server through obsering response status codes
What are the two commands responsible for SMTP user enumeration
VRFY and EXPN
What is Finger
Finger is a utility that provides information about users on a system, it can display details such as full name, home dir, login shell, etc.
Where is information from Finger derived from
Lots of the information comes from the /etc/passwd file
What happens if no user is specified on a finger query
It can return a list of all users on the system including login names and other details
Finger port
TCP 79
TCP 79
Finger
What is an FTP access control mechanism
/etc/ftpusers
What does /etc/ftpusers do
It is a list of users that cannot access the ftp server
What is anonymous user on FTP
Anonymous user is used to allow everyone on the internal network to share files and data without accessing each others computer
Does Anonymous user require authentication/password for FTP
No
What is a security configuration in FTP to prevent identifying authors of files
hide_ids=YES means the UID and GID of files will be overwritten meaning it is more difficult to identify which rights these files have and to prevent user enumeration
What is a vulnerability of allow file upload to an FTP server
If we can upload files this may allow for LFI vulnerabilities to make system commands and RCE (remote code execution)
FTP Ports
20-21
FTP conf file
/etc/vsftpd.conf
What is SMTP
SMTP is a protocol used for sending emails in an IP network, it can be used between an email client and an outgoing mail server or between two SMTP servers
SMTP Port
TCP 25
What do newer SMTP servers listen on
TCP 587
What is an essential function of SMTP
Blocking spam by using authentication mechanisms that allow only authorised users to send emails
What is ESMTP
It is an extension of SMTP, aptly called Extended STP which uses SSL and TLS
How can we enumerate usernames on SMTP
Using the EXPN and VRFY queries
What does EXPN do
The client checks if a mailbox is available for messaging
What does VRFY query do
The client checks if a mailbox is available for mail transfer
What is Code 252 in VRFY
User that does not exist
What is Code 250 in VRFY
Requested mail action completed
How can we connect to an SMTP server
Telnet 25
What is Mail Relaying
Mail Relaying is the process where an SMTP server forwards an email from one server to another that is not directly responsible for either the sender or recipient, such as when emails need to be transferred across different domains and servers
In essence what is Mail Relaying
Any transfer of an email that is not directly the recipient or sender but rather an intermediary server
What does NFS stand for
Network File System
What does NFS do
It is a file system that has the same purpose as SMB - to access file systems over network as if they were local
What are the versions of NFS
NFSv2, NFSv3 and NFSv4
What is NFSv2
It is older but supported by many systems and was initially operated over UDP
What is NFSv3
It has more features including variable file size and better error reporting, but it is not compatible with NFSv2 clients
What is NFSv4
It includes Kerberos, supports ACLs and provides performance improvements and higher security