Commands for common services Flashcards
Commands to interact with common services and utilities
How to connect to a host with xfreerdp?
xfreerdp /u:[uname] /p:[passwd] /v:[hostname]
How to connect to a smtp server?
telnet [hostname] [port]
How to check if a user exists on the system with smtp?
VRFY [username]
How to list commands on an smtp server?
EHLO
Whats the IMAP command to login?
1 LOGIN username password
Whats the IMAP command to list all directories?
LIST “” *
Whats the IMAP command to Create a mailbox with a specified name?
CREATE “[inbox name]”
Whats the IMAP command to delete a mailbox?
DELETE “[inbox name]”
Whats the IMAP command to rename a mailbox?
RENAME “[inbox name]” “[new inbox name]”
Whats the IMAP command to get a subset of names from the set of names that the User has declared as being active or subscribed?
LSUB “” *
Whats the IMAP command to select a mailbox so that messages in the mailbox can be accessed
SELECT [inbox name]
Whats the IMAP command to unselect the current mailbox?
UNSELECT INBOX
Whats the IMAP command to retrieve data associated with a message in the mailbox?
FETCH [ID] all
Whats the IMAP command to removes all messages with the Deleted flag set.
CLOSE
Whats the IMAP command to close the connection with the IMAP server?
LOGOUT