Exemple #1
0
report = Report(title="PCAP Analysis", position=10)
report.save()

report.add_section()

#
# Table: Pcap info
#

table = WiresharkInfoTable.create('pcap-info')

table.add_column('Attribute', datatype='string', iskey=True)
table.add_column('Value', datatype='string')

report.add_widget(tables.TableWidget, table, 'PCAP Info', width=12, height=200)

#
# Table: Process Pcap files
#

table = WiresharkTable.create('pcap', resample=True,
                              resolution='1m', resolutions=['1s', '1m'])

table.add_column('pkttime', datatype=Column.DATATYPE_TIME, iskey=True,
                 field='frame.time_epoch')
table.add_column('iplen', field='ip.len')

table.add_column('iplen-bits', synthetic=True,
                 compute_expression='8*{iplen}',
                 resample_operation='sum')
report = Report(title="PCAP Analysis", position=10)
report.save()

report.add_section()

#
# Table: Pcap info
#

table = WiresharkInfoTable.create('pcap-info')

table.add_column('Attribute', datatype='string', iskey=True)
table.add_column('Value', datatype='string')

report.add_widget(tables.TableWidget, table, 'PCAP Info', width=12, height=200)

#
# Table: Process Pcap files
#

table = WiresharkTable.create('pcap', resample=True,
                              resolution='1m', resolutions=['1s', '1m'])

table.add_column('pkttime', datatype=Column.DATATYPE_TIME, iskey=True,
                 field='frame.time_epoch')
table.add_column('iplen', field='ip.len')

table.add_column('iplen-bits', synthetic=True,
                 compute_expression='8*{iplen}',
                 resample_operation='sum')