diff --git a/CHANGELOG b/CHANGELOG index b4c018bb..82794a9f 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -15,6 +15,7 @@ Version 1.1.0 [] - Vanilla - uKnowva - XenForo + - XMB - Version detection added for: - Burning Board - Discourse @@ -26,6 +27,7 @@ Version 1.1.0 [] - SMF - Vanilla - uKnowva + - XMB - New detection methods added for: - phpwind Version 1.0.9 [21-08-2018] diff --git a/VersionDetect/detect.py b/VersionDetect/detect.py index f869676b..0bb0c790 100644 --- a/VersionDetect/detect.py +++ b/VersionDetect/detect.py @@ -177,3 +177,7 @@ def start(id, url, ua, ga, source, ga_content): import VersionDetect.uknva as uknvaverdetect uknvaver = uknvaverdetect.start(ga_content) return uknvaver + elif id == 'xmb': + import VersionDetect.xmb as xmbverdetect + xmbver = xmbverdetect.start(source) + return xmbver diff --git a/VersionDetect/xmb.py b/VersionDetect/xmb.py new file mode 100644 index 00000000..576144a7 --- /dev/null +++ b/VersionDetect/xmb.py @@ -0,0 +1,28 @@ +#!/usr/bin/python3 +# -*- coding: utf-8 -*- +# This is a part of CMSeeK, check the LICENSE file for more information +# Copyright (c) 2018 Tuhinshubhra + +# XMB version detection +# Rev 1 + +import cmseekdb.basic as cmseek +import re + +def start(source): + regex = re.findall(r'' in hstring or 'Powered by XMB' in hstring: + # XMB + return ['1', 'xmb'] + #################################################### # REGEX DETECTIONS STARTS FROM HERE #