Learning Python Network Programming

(Sean Pound) #1

screen scraping, HTML
about 100
data, displaying 102
HTML parsers 101
HTML, parsing with lxml 102, 103
script, writing 106
XPath conditions 105, 106
XPath, searching with 104, 105
zeroing in 103, 104
secure file transfer protocol (SFTP)
about 139
files, transferring through 139, 140
secure shell. See SSH
Secure Socket Layer (SSL) 117, 193
security
about 259
Cross-Site Request Forgery (CSRF) 260
Cross-Site Scripting (XSS) 259
Server Name Indication (SNI) support 196
simple echo client 216, 217
simple echo server
about 213-216
received data, handling 214
Simple Object Access Protocol (SOAP) 17
SMTP (Simple Mail Transfer Protocol)
about 112
e-mail message, composing 113
e-mail message, sending 114-116
e-mail, sending with 112
SNMP (Simple Network Management
Protocol)
about 143
data, fetching 143-146
SNMP packets, inspecting 146, 147
socket family 179
sockets
basics 177, 178
securing, with TLS/SSL 193-197
socket type 179
source port number 14
spoofing 43
SSH
about 134
accessing, Python used 134-136
SSH packets, inspecting 137, 138
ssl_wrap_socket() function
ca_certs parameter 195


certfile parameter 195
cert_reqs parameter 195
keyfile parameter 195
server_hostname parameter 195
sock parameter 195
ssl_version parameter 195
standard SSL client/server communication
inspecting 197-200
stateless protocol 44
static content 249
stat() method 121
status codes
about 32
reference 33
streaming API 99
subnet 10
subnet mask 9
synchronization primitive 230

T
TCP/IP networks
about 2
DNS 10, 11
IP addresses 2
IP addresses, assigning 4
IP addresses, on Internet 4
layer 4 13
layer 5 16
network interfaces 3
networks 7, 8
packets 5, 6
protocol stack 11, 12
routing, with IP 9, 10
TCP/IP networks, programming for
firewall 24, 25
IPv6 26, 27
Network Address Translation (NAT) 25, 26
TCP port forwarding 190-192
TCP sockets
client/server communications,
inspecting 182-184
client/server interaction,
inspecting 187, 188
TCP servers 185, 186
working with 179-181
Free download pdf