Skip to content

Commit

Permalink
Merge pull request #329 from CybercentreCanada/debian_pcap
Browse files Browse the repository at this point in the history
Debian Buster patch for correctly identifying pcaps
  • Loading branch information
cccs-kevin authored Aug 23, 2021
2 parents 5091a61 + 67db48d commit f249702
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions assemblyline/common/identify.py
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@
['ar', r'ar archive'],
['xz', r'^XZ compressed data'],
['zip', r'^zip archive data'],
['tcpdump', r'^tcpdump'],
['tcpdump', r'^(tcpdump|pcap)'],
['pdf', r'^pdf document'],
['bmp', r'^pc bitmap'],
['gif', r'^gif image data'],
Expand Down Expand Up @@ -372,7 +372,7 @@
['java', r'jar |java'],
['code',
r'Autorun|HTML |KML |LLVM |SGML |Visual C|XML |awk|batch |bytecode|perl|php|program|python'
r'|ruby|scheme|script text exe|shell script|tcl'],
r'|ruby|color scheme|script text exe|shell script|tcl'],
['network', r'capture'],
['unknown', r'CoreFoundation|Dreamcast|KEYBoard|OSF/Rose|Zope|quota|uImage'],
['unknown', r'disk|file[ ]*system|floppy|tape'],
Expand Down
4 changes: 2 additions & 2 deletions test/test_identify.py
Original file line number Diff line number Diff line change
Expand Up @@ -581,7 +581,7 @@ def test_tag_to_extension(tag, ext):
('ar', r'ar archive'),
('xz', r'^XZ compressed data'),
('zip', r'^zip archive data'),
('tcpdump', r'^tcpdump'),
('tcpdump', r'^(tcpdump|pcap)'),
('pdf', r'^pdf document'),
('bmp', r'^pc bitmap'),
('gif', r'^gif image data'),
Expand Down Expand Up @@ -664,7 +664,7 @@ def test_sl_to_tl(sl, tl):
('java', r'jar |java'),
('code',
r'Autorun|HTML |KML |LLVM |SGML |Visual C|XML |awk|batch |bytecode|perl|php|program|python'
r'|ruby|scheme|script text exe|shell script|tcl'),
r'|ruby|color scheme|script text exe|shell script|tcl'),
('network', r'capture'),
('unknown', r'CoreFoundation|Dreamcast|KEYBoard|OSF/Rose|Zope|quota|uImage'),
('unknown', r'disk|file[ ]*system|floppy|tape'),
Expand Down

0 comments on commit f249702

Please sign in to comment.