SMTP

HELO MYname
MAIL FROM:<x@x.x>
RCPT TO:<x@x.x>
RCPT TO:<x@x.x>
DATA
...
.

POP3

user username
pass userpass
list
retr nr
dele nr
quit

IMAP

IMAP RFC 3501

C: a0001 LOGIN USER PASS
S: a0001 OK LOGIN Ok.

C: a0002 LIST "" ""
S: * LIST (Noselect) "." ""
S: a0002 OK LIST completed

C: a0003 LSUB "" "*"
S: * LSUB (Marked HasChildren) "." "INBOX"
S: * LSUB (Unmarked HasNoChildren) "." "INBOX.Drafts"
S: * LSUB ...

C: a0004 SELECT "INBOX.test"
S: * FLAGS (Draft Answered Flagged Deleted Seen Recent)
S: * OK [PERMANENTFLAGS (* Draft Answered Flagged Deleted Seen)] Limited
S: * 1 EXISTS
S: * 0 RECENT
S: * OK [UIDVALIDITY 1129647005] Ok
S: * OK [MYRIGHTS "acdilrsw"] ACL
S: a0004 OK [READ-WRITE] Ok

C: a0005 FETCH 1:4 (UID FLAGS)
S: * 1 FETCH (UID 1049 FLAGS (Seen))
S: * 2 FETCH (UID 1113 FLAGS (Seen))
S: * 3 FETCH (UID 1114 FLAGS (Seen))

C: a0006 SEARCH UNSEEN
S: * SEARCH 9

C: a0007 UID FETCH 9 BODY.PEEK[]
S: * 1 FETCH (UID 9 BODY[] {14111}

C: A008 LOGOUT
S: * BYE ...

HTTP

GET /index.html HTTP/1.1
Host: www.example.com
User-Agent: telnet
Accept: text/xml,application/xml,application/xhtml+xml,text/html,text/plain
Accept-Language: de,en
Referer: http://foo.examle.com

Configurate Modem

e.g. with minicom

ATD[''NR'']
Dial Nr
ATL[''0'']
ATL[''1'']
ATL[''2'']
ATL[''3'']

Speaker Volume Level [x]
ATX[''3'']
ATX[''4'']
[3]=Ignores busy and honours dial-tone, [4]=Honours busy and dial-tone
ATM[''0'']
ATM[''1'']
ATM[''2'']
[0]=Speaker off, [1]=Speaker on while dialling, [2]=Speaker on
AT&W
Save

IP

IPV4

ipv4 MaskConstant Parts
/32Everything, only one machine (255.255.255.255)
/24Everything but the last block (255.255.255.0)
/8Only the first block (255.0.0.0)
/0Nothing, all machines (0.0.0.0)

IPV6

IPV6 An IPV6 address consists of 8 blocks with 4 Hex numbers (which are 16 bits). The whole address has 128 bits. In each Block you can skip the leading 0 and one complete 0 area can be written as ::.

A single IPV6 address:

2001:1db8:85a3:28d3:1319:8a2e:3374:7344/128

A network where all addresses in the same network only differ in the last Hex number

2001:1db8:85a3:28d3:1319:8a2e:3374:7340/124

A smaller number behind the / is a larger network

2001:1db8:85a3:28d3:1319:8a2e:3374:0000/112
2001:1db8:85a3:28d3:1319:8a2e:3374:0/112
2001:1db8:85a3:28d3:1319:8a2e:3374::/112

2001:1db8:85a3:28d3:1319:8a2e::/96

2001:1db8:85a3:28d3:1319::/80

2001:1db8:85a3:28d3::/64

2001:1db8:85a3::/48

2001:1db8::/32

2001::/16

fd00::/8

A normal uplink provider gets a /32, normal people get a /64 network.

Special addresses No address:

::/128

Localhost

:1/128

Link local, each interfaces generates this automatically.

fe80::/64

Successor for the private IPV4 addresses, deprecated

fec0::/10

Successor of the successor of the private IPV4 addresses. Formed like this

fd00::/8
fd9e:21a7:a92c:2323::1
^^~~ [[~]] September 08, 2016, at 09:30 PM [[~]] September 08, 2016, at 09:30 PM ^^^^

Here is fd the prefix for local generated ULAs, 9e:21a7:a92c a random value for your network and is a Subnet for you.

Similar, but assigned globally.

fc00::/8

Multicast

ff00::/8

Examples:

# host -t AAAA www.google.com
www.google.com has IPv6 address 2a00:1450:4005:808::1012


# ifconfig
eth0 Link encap:Ethernet Hardware Adresse 00:1e:8c:ab:cd:12
inet Adresse:10.0.0.4 Bcast:10.0.0.255 Maske:255.255.255.0
inet6-Adresse: fe80::21e:8cff:feab:cd12/64

# ping6 -I eth0 fe80::21e:8cff:feab:cd12

nmap

Find all ssh servers

nmap -p 22 --open -sV 192.168.178.0/24