network programming with umit project

16
Network Programming with Project Narendran Thangarajan @naren_live PyCon India 2011

Upload: narendran-thangarajan

Post on 18-Dec-2014

940 views

Category:

Technology


0 download

DESCRIPTION

My talk at PyconIndia 2011. Since the talk was "dominated" by demonstrations, the slides would be just an index to what I actually talked there :)

TRANSCRIPT

Page 1: Network Programming with Umit project

Network Programming with Project

Narendran Thangarajan

@naren_live

PyCon India 2011

Page 2: Network Programming with Umit project

Outline

Why Network Programming

Network Scanning Umit Network Scanner

Nmap Packet Manipulator

Scapy UMPA

PyPcap Creating a new protocol

Future Directions

Page 3: Network Programming with Umit project

”Network is the computer”- Mitch Kapor

Page 4: Network Programming with Umit project

Why Network Programming?

The future of computing is Mobile and Cloud Computing.

With thinner clients and resources getting centralized, almost every file access is going to burden the network.

In future, we might reach a point where the loss due to a one-minute network failure will cause a loss greater than earthquakes or cyclones.

Page 5: Network Programming with Umit project

We need data.. Enough data to predict a network failure

Page 6: Network Programming with Umit project

Network Scanning

Second of the three data gathering steps. Footprinting – Scanning - Enumeration Procedure of finding active hosts on the

network. Used for :

Network Security Assessment Purpose of attacking Research/Study

Page 7: Network Programming with Umit project

Nmap - Backend

Terminal-based security scanner originally written by Gordon Lyon.

Discovers hosts and services – Creates a ”map”

Basic Host scanning + determine OS + Names and versions of services running in the remote host + type of device.

Examples

Page 8: Network Programming with Umit project

Umit Network Scanner – Frontend

GUI based Network Scanner

Began as a project for GSoC 2005

Inspired other scanners like Zenmap

What could we do?

Scanning Schedule scans View Network Topology Create Profiles Create our own Plugins

Page 9: Network Programming with Umit project

Packet Manipulator - Frontend

Protocol Analyzer Can capture packets from any interface Decodes the packet based on the protocols

supported by the backend

Page 10: Network Programming with Umit project

Scapy

Python package for Send, sniff, dissect and forge network packets

Whats so special? Create ANY packet Flexibility Detailed decoding of the received packets Fast Packet Design

Page 11: Network Programming with Umit project

Scapy - Demo

Basic Packet construction Stacking Layers Sending Packets Receiving Packets Traceroute Graph the traces

Page 12: Network Programming with Umit project

UMPA – Backend L1

Umit Manipulation of Packets Art Umit's Packet Generation and Manipulation

Library Under Development Example : sample.py

Page 13: Network Programming with Umit project

Libpcap

Father of Packet capture libraries Implemented in C Initially created for tcpdump Maintained by tcpdump organization Almost all the python packet libraries use

libpcap as the backend

Page 14: Network Programming with Umit project

Future Directions

Solve Connectivity problems – Internet shortages, ISP service blockages.

A small disconnection could lead to huge losses in future.

Internet Connectivity Monitor

Page 15: Network Programming with Umit project

Thus we have networked with Python

Thank You!!Thank You!!

Page 16: Network Programming with Umit project

Queries?

Email : [email protected]

Twitter : naren_live

Google : Narendran Thangarajan :P