Commands for common services Flashcards

Commands to interact with common services and utilities

1
Q

How to connect to a host with xfreerdp?

A

xfreerdp /u:[uname] /p:[passwd] /v:[hostname]

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
1
Q

How to connect to a smtp server?

A

telnet [hostname] [port]

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

How to check if a user exists on the system with smtp?

A

VRFY [username]

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

How to list commands on an smtp server?

A

EHLO

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Whats the IMAP command to login?

A

1 LOGIN username password

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Whats the IMAP command to list all directories?

A

LIST “” *

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Whats the IMAP command to Create a mailbox with a specified name?

A

CREATE “[inbox name]”

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Whats the IMAP command to delete a mailbox?

A

DELETE “[inbox name]”

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Whats the IMAP command to rename a mailbox?

A

RENAME “[inbox name]” “[new inbox name]”

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

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?

A

LSUB “” *

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Whats the IMAP command to select a mailbox so that messages in the mailbox can be accessed

A

SELECT [inbox name]

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Whats the IMAP command to unselect the current mailbox?

A

UNSELECT INBOX

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Whats the IMAP command to retrieve data associated with a message in the mailbox?

A

FETCH [ID] all

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Whats the IMAP command to removes all messages with the Deleted flag set.

A

CLOSE

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Whats the IMAP command to close the connection with the IMAP server?

A

LOGOUT

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Whats the POP3 command to identify the user?

A

USER [username]

16
Q

Whats the POP3 command to authenticate the user?

A

PASS [password]

17
Q

Whats the POP3 command to request the number of saved emails from the server?

A

STAT

18
Q

Whats the POP3 command to request from the server the number and size of all emails?

A

LIST

19
Q

Whats the POP3 command to request the server to deliver the requested email by ID.

A

RETR [id]

20
Q

Whats the POP3 command to request the server to delete the requested email by ID.

A

DELE [id]

21
Q

Whats the POP3 command to request the server to display the server capabilities?

A

CAPA

22
Q

Whats the POP3 command to request the server to reset the transmitted information?

A

RSET

23
Q

Whats the POP3 command to close the connection with the POP3 server?

A

QUIT?

24
Q

How can you connect to a service running SSL/TLS?

A

openssl s_client [hostname]:[protocol]