Skip to content

Commit

Permalink
feat(checker): add rtmpdump (#2649)
Browse files Browse the repository at this point in the history
Signed-off-by: Fabrice Fontaine <fabrice.fontaine@orange.com>
  • Loading branch information
ffontaine authored Feb 6, 2023
1 parent 16a8d02 commit 02e4438
Show file tree
Hide file tree
Showing 5 changed files with 43 additions and 0 deletions.
1 change: 1 addition & 0 deletions cve_bin_tool/checkers/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,7 @@
"raptor",
"rdesktop",
"rtl_433",
"rtmpdump",
"rsync",
"rsyslog",
"rust",
Expand Down
20 changes: 20 additions & 0 deletions cve_bin_tool/checkers/rtmpdump.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Copyright (C) 2023 Orange
# SPDX-License-Identifier: GPL-3.0-or-later


"""
CVE checker for rtmpdump
https://www.cvedetails.com/product/37077/Rtmpdump-Project-Rtmpdump.html?vendor_id=16341
"""
from __future__ import annotations

from cve_bin_tool.checkers import Checker


class RtmpdumpChecker(Checker):
CONTAINS_PATTERNS: list[str] = []
FILENAME_PATTERNS: list[str] = []
VERSION_PATTERNS = [r"v([0-9]+\.[0-9]+)\r?\nRTMP"]
VENDOR_PRODUCT = [("rtmpdump_project", "rtmpdump")]
Binary file not shown.
Binary file not shown.
22 changes: 22 additions & 0 deletions test/test_data/rtmpdump.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Copyright (C) 2023 Orange
# SPDX-License-Identifier: GPL-3.0-or-later

mapping_test_data = [
{"product": "rtmpdump", "version": "2.4", "version_strings": ["v2.4\nRTMPDump"]}
]
package_test_data = [
{
"url": "http://rpmfind.net/linux/rpmfusion/free/fedora/development/rawhide/Everything/aarch64/os/Packages/r/",
"package_name": "rtmpdump-2.4-22.20190330.gitc5f04a5.fc37.aarch64.rpm",
"product": "rtmpdump",
"version": "2.4",
"other_products": [],
},
{
"url": "http://ftp.fr.debian.org/debian/pool/main/r/rtmpdump/",
"package_name": "rtmpdump_2.4%2B20151223.gitfa8646d.1-1%2Bb1_amd64.deb",
"product": "rtmpdump",
"version": "2.4",
"other_products": [],
},
]

0 comments on commit 02e4438

Please sign in to comment.