This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CLIENT/SERVER MODEL | |
It is quite simple to build a very basic client/server model using nc. On one console, start nc listening on a specific port for a connection. For example: | |
$ nc -l 1234 | |
nc is now listening on port 1234 for a connection. On a second console (or a second machine), connect to the machine and port being listened on: | |
$ nc 127.0.0.1 1234 | |
There should now be a connection between the ports. Anything typed at the second console will be concatenated to the first, and vice-versa. After the connection has been set up, nc does not really care which side is being used as a ‘server’ and which |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
openssl s_client -crlf -connect imap.gmail.com:993 | |
tag login [email protected] passwordhere | |
tag list "" "*" | |
tag select "inbox" | |
tag fetch 1:3 body[header] | |
tag fetch 3 body[header] | |
tag fetch 3 body[text] | |
tag fetch 2 all | |
tag fetch 2 fast | |
tag fetch 2 full |