osi model Flashcards
Layer 1
Physical (stucture) Layer: Cabling (coax, fiber, wireless, hubs repeaters)
Layer 2
Datalink: Frames - arp, ethernet, ppp (comunication protocol between two routers directly without any host or any other networking in between), switch, bridge.
Layer 3
Network -Packet - ip, icmp (error reporting), ipSec, igmp (multicasting)
layer 4
Transport end to end connections- tcp udp
layer 5
Session - Synch and Send: api, socket connections, winSock
layer 6
presentation syntax layer: encyption occurs here. XDR, TLS, SSL and MIME
layer 7
applicationEnd User Layer - HTTP, FTP, IRC, SSH, DNS
1xx
Information response
2xx
Success response
3xx
Statuses showing a redirection.
4xx
Statuses showing a client-side error.
404 Not Found
403 Forbidden
400 Bad Request
401 Unauthorised
5xx
Statuses showing a server-side error.
500 Internal Server Error
503 Service Unavailable:
What is XSS?
Cross-Site Scripting (XSS) attacks are a type of injection, in which malicious scripts are injected into otherwise benign and trusted websites. XSS attacks occur when an attacker uses a web application to send malicious code, generally in the form of a browser side script, to a different end user. Inserted into blog post.
Input Validation/Output Sanitization, with focus on the latter
What is Cross-Site Request Forgery
when an attacker gets a victim’s browser to make requests, ideally with their credentials included, without their knowing. A solid example of this is when an IMG tag points to a URL associated with an action, e.g. http://foo.com/logout/.
Where do you get your security news from
packetstorm, rootsecure, cisa, threatPost, security week, fulldiclosure
Ports 20 and 21
File Transfer Protocol (FTP). FTP is for transferring files between a client and a server.
Port 22
SSh secure Shell
port 23
Telnet
port 25
Simple Mail Transfer Protocol - email
Port 53
Domain name system
Port 80
Http
Port 123
NTP
port 179
Border gateway protocol - large networlks that make up ther internet use this to broadcast which IP addresses they control
port 443
https
Port 3389
Remote Desktop Protocol
port 161
SNMP snmp3
Port 137-138
NetBios udp
port 139/ 445
SMB tcp
left to right ip packet headers
version, int header length, TOS (Diff service, ecn, length.
Identification, flags , fragment offset
TTL protocol (Linux/Unix is 64, Windows is 128) checksum
source address
destination address
options padding
tcp logical protocol
telnet SSH ftp smtp pop3 imap http bgp
UDP
DNS, SNMP, Syslog, NTP (listen on 514),
NTP
Port 123
NetBios udp
137-138
SNMP snmp3
161
Remote Desktop Protocol
3389
https
port 443
Border gateway protocol
port 179
Http
port 80
Domain name system
port 53
Simple Mail Transfer Protocol
port 25
Telnet
port 23
SSh secure Shell
Port 22
File Transfer Protocol (FTP)
Ports 20 and 21
SMB
port 139/ 445