Skip to content

Commit

Permalink
restore tcp/udp packet previews (#546)
Browse files Browse the repository at this point in the history
* add sorted pcap for TCP previewing

* Fix tcp-out background color
  • Loading branch information
enzok authored Jul 27, 2021
1 parent c14f5a4 commit 5d5ba06
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 11 deletions.
4 changes: 2 additions & 2 deletions data/html/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ pre {
.tcp-out pre {
padding: 0;
border: 0;
background-color: white;
/*background-color: white;*/
color: #d9534f;
}
.tcp-in {
Expand All @@ -257,7 +257,7 @@ pre {
.tcp-in pre {
padding: 0;
border: 0;
background-color: white;
/*background-color: white;*/
color: #5bc0de;
}
#filter-toggle {
Expand Down
8 changes: 1 addition & 7 deletions modules/processing/network.py
Original file line number Diff line number Diff line change
Expand Up @@ -1049,19 +1049,13 @@ def run(self):
if os.path.exists(self.pcap_path):
results["pcap_sha256"] = File(self.pcap_path).get_sha256()

"""
if proc_cfg.network.sort_pcap:
sorted_path = self.pcap_path.replace("dump.", "dump_sorted.")
sort_pcap(self.pcap_path, sorted_path)
# Sorted PCAP file hash.
if os.path.exists(sorted_path):
results["sorted_pcap_sha256"] = File(sorted_path).get_sha256()
pcap_path = sorted_path
else:
pcap_path = self.pcap_path
else:
pcap_path = self.pcap_path
"""

pcap_path = self.pcap_path
results.update(Pcap(pcap_path, ja3_fprints, self.options).run())
# buf = Pcap(self.pcap_path, ja3_fprints).run()
Expand Down
4 changes: 2 additions & 2 deletions web/static/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ pre {
.tcp-out pre {
padding: 0;
border: 0;
background-color: white;
/*background-color: white;*/
color: #d9534f;
}
.tcp-in {
Expand All @@ -266,7 +266,7 @@ pre {
.tcp-in pre {
padding: 0;
border: 0;
background-color: white;
/*background-color: white;*/
color: #5bc0de;
}
#filter-toggle {
Expand Down

0 comments on commit 5d5ba06

Please sign in to comment.