""" Network Visualization and Exploration Tool CS6393 Final Project Network forensics tool that takes a pcap file, parses the network data into a sqlite database, generates JSON, and allows the data to be visualized using the D3.js library. """ from netviz import dao, parser, utils import web # parse the command line args args = utils.getargs() # initialize the database print "\nInitializing database..." database = dao.DAO("sqlite.db", True) # parse pcap into sqlite db print "\nParsing %s and inserting into database..." % args.pcap total = parser.parse(database, args.pcap) database.populate_info(args.pcap, args.network, total) print "\nParsing and database population complete, you may start the server now."
def GET(self): database = dao.DAO("sqlite.db") return database.get_info(True)
def GET(self): database = dao.DAO("sqlite.db") return database.get_timeline_data()
def GET(self): database = dao.DAO("sqlite.db") return database.get_destination_data()
def GET(self, src, dst): database = dao.DAO("sqlite.db") return database.get_sources_detail(src, dst)
def GET(self): database = dao.DAO("sqlite.db") return database.get_sources_data()
def GET(self, proto, src): database = dao.DAO("sqlite.db") return database.get_protocol_details(src, proto)
def GET(self): database = dao.DAO("sqlite.db") return database.generate_data_for_protocol_chart()