Network programming in python..
-
Upload
bharath-kumar -
Category
Technology
-
view
1.552 -
download
12
Transcript of Network programming in python..
Network programming in Python
Mastering the layers of protocol stack
>>>dir(speaker)
• Not a developer.
• Security guy who codes from time to time
• Been using Python for over four years.
• Interested Networks & Software exploitation
• In love with Python & Assembly ;)
• Sucks at making power points.
Why Python?
• Batteries included.
• Powerful third party libraries.
• Python saves a lot of 'programmer’ time.
• Simple Learning curve.
http://xkcd.com/353/
Some Python tools..
http://www.dirk-loss.de/python-tools.htm
Python’s popularity
Let’s get to the fun stuff!!
PART - I
• Core protocols(TCP, UDP, IPV4, IPV6)• TCP options, IP options• Packet headers• Byte order
Essential Networking
PART - II
• Socket address structures• Socket options• TCP Sockets, UDP Sockets• Name functions, Byte order functions• Basic scripts(day time, echo, time out)• Simple port scanner
Elementary Sockets
PART - III
• DNS• HTTP• FTP• SSL/TLS• SSH• POP/IMAP• Others
Protocols
PART - IV
• Typical network errors & exception handling
Network errors & Debugging
PART - V
• Scapy• Impacket• python-shodan• pymaltego• python-nmap• Others
Third party libraries
PART - VI
• Intro to Raw Sockets• Port scanner using raw sockets
- SYN Scan- ACK Scan- Other techniques
Raw Sockets
PART - VII
• Some interesting scenario based scripts.
(possibly using a WLAN to watch them in action)
Scenario based scripts
PART - VIII
• Going beyond what's covered in the workshop
Moving Forward..