KEMBAR78
Network programming in python.. | PPT
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..

Network programming in python..

  • 1.
    Network programming in Python Masteringthe layers of protocol stack
  • 2.
    >>>dir(speaker) • Not adeveloper. • 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.
  • 3.
    Why Python? • Batteriesincluded. • Powerful third party libraries. • Python saves a lot of 'programmer’ time. • Simple Learning curve. http://xkcd.com/353/
  • 4.
  • 5.
  • 6.
    Let’s get tothe fun stuff!!
  • 7.
    PART - I •Core protocols(TCP, UDP, IPV4, IPV6) • TCP options, IP options • Packet headers • Byte order Essential Networking
  • 8.
    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
  • 9.
    PART - III •DNS • HTTP • FTP • SSL/TLS • SSH • POP/IMAP • Others Protocols
  • 10.
    PART - IV •Typical network errors & exception handling Network errors & Debugging
  • 11.
    PART - V •Scapy • Impacket • python-shodan • pymaltego • python-nmap • Others Third party libraries
  • 12.
    PART - VI •Intro to Raw Sockets • Port scanner using raw sockets - SYN Scan - ACK Scan - Other techniques Raw Sockets
  • 13.
    PART - VII •Some interesting scenario based scripts. (possibly using a WLAN to watch them in action) Scenario based scripts
  • 14.
    PART - VIII •Going beyond what's covered in the workshop Moving Forward..