From e8ad10604de3791977590cbac5ff244b0ed93ea3 Mon Sep 17 00:00:00 2001 From: Liviu-Mihail Concioiu Date: Thu, 5 Jan 2023 12:23:30 +0100 Subject: [PATCH] Adds detection for RedOS ref #7319 --- Parser/OperatingSystem.php | 3 ++- Tests/Parser/fixtures/oss.yml | 8 ++++++++ regexes/oss.yml | 7 +++++++ 3 files changed, 17 insertions(+), 1 deletion(-) diff --git a/Parser/OperatingSystem.php b/Parser/OperatingSystem.php index c1ceab4d2e..39be56d184 100644 --- a/Parser/OperatingSystem.php +++ b/Parser/OperatingSystem.php @@ -127,6 +127,7 @@ class OperatingSystem extends AbstractParser 'PS3' => 'PlayStation', 'PUR' => 'PureOS', 'RHT' => 'Red Hat', + 'RED' => 'RedOS', 'REV' => 'Revenge OS', 'ROS' => 'RISC OS', 'ROK' => 'Roku OS', @@ -200,7 +201,7 @@ class OperatingSystem extends AbstractParser 'ORD', 'TOS', 'RSO', 'DEE', 'FRE', 'MAG', 'FEN', 'CAI', 'PCL', 'HAS', 'LOS', 'DVK', 'ROK', 'OWR', 'OTV', 'KTV', 'PUR', 'PLA', 'FUC', 'PAR', 'FOR', 'MON', 'KAN', 'ZEN', 'LND', 'LNS', 'CHN', 'AMZ', 'TEN', 'CST', - 'NOV', 'ROU', 'ZOR', + 'NOV', 'ROU', 'ZOR', 'RED', ], 'Mac' => ['MAC'], 'Mobile Gaming Console' => ['PSP', 'NDS', 'XBX'], diff --git a/Tests/Parser/fixtures/oss.yml b/Tests/Parser/fixtures/oss.yml index 1c9c2c52ab..ece0350e5f 100644 --- a/Tests/Parser/fixtures/oss.yml +++ b/Tests/Parser/fixtures/oss.yml @@ -3670,3 +3670,11 @@ version: 16.1.1 platform: family: iOS +- + user_agent: Mozilla/5.0 (X11; RED OS; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.81 Safari/537.36 (Chromium GOST) + os: + name: RedOS + short_name: RED + version: + platform: x64 + family: GNU/Linux diff --git a/regexes/oss.yml b/regexes/oss.yml index 4b248c8816..a2d91249e8 100644 --- a/regexes/oss.yml +++ b/regexes/oss.yml @@ -5,6 +5,13 @@ # @license http://www.gnu.org/licenses/lgpl.html LGPL v3 or later ############### +########## +# RedOS (https://redos.red-soft.ru/) +########## +- regex: 'RED OS; Linux' + name: 'RedOS' + version: '' + ########## # RouterOS (https://help.mikrotik.com/docs/display/ROS/RouterOS) ##########