traffic-taffy 0.3__py3-none-any.whl → 0.3.5__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -47,6 +47,12 @@ def main():
47
47
  for key in contents["parameters"]:
48
48
  print(f" {key:<16} {contents['parameters'][key]}")
49
49
 
50
+ print("data info:")
51
+ timestamps = list(contents["dissection"].keys())
52
+ print(f" timestamps: {len(timestamps)}")
53
+ print(f" first: {timestamps[1]}") # skips 0 = global
54
+ print(f" last: {timestamps[-1]}")
55
+
50
56
 
51
57
  if __name__ == "__main__":
52
58
  main()
@@ -250,7 +250,7 @@ class PCAPDissector:
250
250
  self.timestamp = self.timestamp - self.timestamp % self.bin_size
251
251
  self.incr(self.TOTAL_COUNT, self.TOTAL_SUBKEY)
252
252
 
253
- if self.dissector_level == PCAPDissectorType.THROUGH_IP.value:
253
+ if self.dissector_level >= PCAPDissectorType.THROUGH_IP.value:
254
254
  eth = dpkt.ethernet.Ethernet(packet)
255
255
  # these names are designed to match scapy names
256
256
  self.incr("Ethernet.dst", eth.dst)
@@ -499,6 +499,14 @@ def dissector_add_parseargs(parser, add_subgroup: bool = True):
499
499
  help="Maximum number of packets to analyze",
500
500
  )
501
501
 
502
+ parser.add_argument(
503
+ "-b",
504
+ "--bin-size",
505
+ type=int,
506
+ default=3600,
507
+ help="Bin results into this many seconds",
508
+ )
509
+
502
510
  parser.add_argument(
503
511
  "-C",
504
512
  "--cache-pcap-results",
@@ -597,7 +605,7 @@ def main():
597
605
 
598
606
  pd = PCAPDissector(
599
607
  args.input_file,
600
- bin_size=0,
608
+ bin_size=args.bin_size,
601
609
  dissector_level=args.dissection_level,
602
610
  maximum_count=args.packet_count,
603
611
  cache_results=args.cache_pcap_results,
traffic_taffy/graph.py CHANGED
@@ -26,14 +26,6 @@ def parse_args():
26
26
  epilog="Exmaple Usage: ",
27
27
  )
28
28
 
29
- parser.add_argument(
30
- "-g",
31
- "--graph-elements",
32
- default=None,
33
- type=str,
34
- help="Graph these particular elements; the default is packet counts",
35
- )
36
-
37
29
  parser.add_argument(
38
30
  "-o",
39
31
  "--output-file",
@@ -49,14 +41,6 @@ def parse_args():
49
41
  help="Define verbosity level (debug, info, warning, error, fotal, critical).",
50
42
  )
51
43
 
52
- parser.add_argument(
53
- "-b",
54
- "--bin-size",
55
- type=int,
56
- default=1,
57
- help="Bin results into this many seconds",
58
- )
59
-
60
44
  parser.add_argument(
61
45
  "-i",
62
46
  "--interactive",
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: traffic-taffy
3
- Version: 0.3
3
+ Version: 0.3.5
4
4
  Summary: A tool for doing differential analysis of pcap files
5
5
  Home-page: https://github.com/hardaker/traffic-taffy
6
6
  Author: Wes Hardaker
@@ -9,6 +9,11 @@ Classifier: Programming Language :: Python :: 3
9
9
  Classifier: Operating System :: OS Independent
10
10
  Requires-Python: >=3.7
11
11
  Description-Content-Type: text/markdown
12
+ Requires-Dist: pandas
13
+ Requires-Dist: rich
14
+ Requires-Dist: seaborn
15
+ Requires-Dist: scapy
16
+ Requires-Dist: dpkt
12
17
 
13
18
  # Traffic Analysis of Fluctuating Flows (TAFFy)
14
19
 
@@ -6,16 +6,16 @@ pcap_compare/dissector.py,sha256=iEZzLHJ7HubM3-UbZR461irXkZcpM8u_Aoa7GzWUMEY,175
6
6
  pcap_compare/dissectorresults.py,sha256=LKoyX04Qjc6B7RnqtJgIWsyVnselJ9CygLkMAp3lhw0,647
7
7
  pcap_compare/graph.py,sha256=cioVq9JYNRVqzlRJSKLveGnGSEL9FkXDUyp-Y7osSkM,5935
8
8
  traffic_taffy/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
9
- traffic_taffy/cache_info.py,sha256=tmPmMJFhz74FDxLoqnQgki5qsUtoJBzkzk3w0ZAen0c,1369
9
+ traffic_taffy/cache_info.py,sha256=zpuuJcPzJzyma37YJE4FwKSaOBAmzImDj0Khdn2x1FI,1623
10
10
  traffic_taffy/compare.py,sha256=-PvazIzp1ABvtZpjb1tjG9KAcnZYO_PU29FJpDNwPus,11654
11
11
  traffic_taffy/dissectmany.py,sha256=QCqnIhtMMIqHXPVg4KOIcUYaIyaDR_DCIKLoD41E1C0,2528
12
- traffic_taffy/dissector.py,sha256=vDGN-DGfzzz9lbke13d9uSqRMrQYI9s-8Z6JnxXdo38,21914
12
+ traffic_taffy/dissector.py,sha256=M75VGvrv2M1NOJ2JkDaxemlxZWr10WswXN2sOTbcX9I,22085
13
13
  traffic_taffy/dissectorresults.py,sha256=LKoyX04Qjc6B7RnqtJgIWsyVnselJ9CygLkMAp3lhw0,647
14
14
  traffic_taffy/explore.py,sha256=QaRqr4UdpO72yxWMfg-WK9YkhQTXZwLzWX6K2qg18d0,6808
15
- traffic_taffy/graph.py,sha256=gpf_64XBH9rM7uLQhYA3p0PTButfiUvcmY5SNLnq4IA,6569
15
+ traffic_taffy/graph.py,sha256=GZsuppEbMeJA9mr3OH-n5ba5sNT7l35P3Qv-eh1MR3E,6221
16
16
  traffic_taffy/pcap_splitter.py,sha256=qDZ0Nd81fIteQRVElyKsD1ncBi4lg07cmx8KPl_q3rY,4585
17
- traffic_taffy-0.3.dist-info/METADATA,sha256=_xZeNWLeWktyeWhfxTwWw-RV9s1cI7j30o09sjALHtk,877
18
- traffic_taffy-0.3.dist-info/WHEEL,sha256=G16H4A3IeoQmnOrYV4ueZGKSjhipXx8zc8nu9FGlvMA,92
19
- traffic_taffy-0.3.dist-info/entry_points.txt,sha256=xabsmMHgr0Pek8ccdQoW6iAKqljueozDZW-q1hJ79eU,194
20
- traffic_taffy-0.3.dist-info/top_level.txt,sha256=wjeQaxXSKqUzrRtfbUlbSn8SoaL4VC73yudFAEtnIuo,14
21
- traffic_taffy-0.3.dist-info/RECORD,,
17
+ traffic_taffy-0.3.5.dist-info/METADATA,sha256=sA9UeWzu1nJyFxcNOXFJ6dJNFDeGA48URLd4TpwrTx0,985
18
+ traffic_taffy-0.3.5.dist-info/WHEEL,sha256=G16H4A3IeoQmnOrYV4ueZGKSjhipXx8zc8nu9FGlvMA,92
19
+ traffic_taffy-0.3.5.dist-info/entry_points.txt,sha256=xabsmMHgr0Pek8ccdQoW6iAKqljueozDZW-q1hJ79eU,194
20
+ traffic_taffy-0.3.5.dist-info/top_level.txt,sha256=wjeQaxXSKqUzrRtfbUlbSn8SoaL4VC73yudFAEtnIuo,14
21
+ traffic_taffy-0.3.5.dist-info/RECORD,,