Learning Python Network Programming

(Sean Pound) #1

Interacting with Remote Systems


A typical SAMBA packet format has been shown in the following screenshot. The
important field of this packet is the NT_STATUS field. Typically, if the connection is
successful, then it will show STATUS_SUCESS. Otherwise, it will print a different code.
This is shown in the following screenshot:


Summary


In this chapter, we have come across several network protocols and Python libraries,
which are used for interacting with remote systems. SSH and SFTP are used for
securely connecting and transferring files to the remote hosts. FTP is still used as
a simple file transfer mechanism. However, it's not secure due to user credentials
being transferred over the wire as plain-text. We also examined Python libraries for
dealing with SNMP, LDAP, and SAMBA packets.


In the next chapter, one of the most common networking protocols—that is, DNS
and IP—will be discussed. We will explore TCP/IP networking using Python scripts.

Free download pdf