Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ Version 1.1.0 []
- FUDforum
- IPB Forum
- miniBB
- mvnForum
- MyBB
- myUPB
- NodeBB
Expand All @@ -34,6 +35,7 @@ Version 1.1.0 []
- Discuz!
- FUDforum
- miniBB
- mvnForum
- MyBB
- myUPB
- NodeBB
Expand Down
4 changes: 4 additions & 0 deletions VersionDetect/detect.py
Original file line number Diff line number Diff line change
Expand Up @@ -209,3 +209,7 @@ def start(id, url, ua, ga, source, ga_content):
import VersionDetect.myupb as myupbverdetect
myupbver = myupbverdetect.start(source)
return myupbver
elif id == 'mvnf':
import VersionDetect.mvnf as mvnfverdetect
mvnfver = mvnfverdetect.start(source)
return mvnfver
25 changes: 25 additions & 0 deletions VersionDetect/mvnf.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
#!/usr/bin/python3
# -*- coding: utf-8 -*-
# This is a part of CMSeeK, check the LICENSE file for more information
# Copyright (c) 2018 Tuhinshubhra

# mvnForum version detection
# Rev 1

import cmseekdb.basic as cmseek
import re

def start(source):
regex = re.search(r'Powered by(.*?)mvnForum (\d.*?)<\/a>', source)
if regex != None:
try:
version = regex.group(2)
cmseek.success('mvnForum version ' + cmseek.bold + cmseek.fgreen + version + cmseek.cln + ' detected')
return version
except Exception as e:
cmseek.error('Version detection failed!')
return '0'


cmseek.error('Version detection failed!')
return '0'
6 changes: 6 additions & 0 deletions cmseekdb/cmss.py
Original file line number Diff line number Diff line change
Expand Up @@ -800,4 +800,10 @@
'url':'http://www.myupb.com',
'vd':'1',
'deeps':'0'
}
mvnf = {
'name':'mvnForum',
'url':'https://sourceforge.net/projects/mvnforum/',
'vd':'1',
'deeps':'0'
}
9 changes: 9 additions & 0 deletions cmseekdb/sc.py
Original file line number Diff line number Diff line change
Expand Up @@ -359,10 +359,19 @@ def check(s, site): ## Check if no generator meta tag available
# NoNonsense Forum
return ['1', 'nnf']

elif '/mvnplugin/mvnforum/' in hstring:
# mvnForum
return ['1', 'mvnf']

####################################################
# REGEX DETECTIONS STARTS FROM HERE #
####################################################

mvn_regex = re.search(r'Powered by(.*?)mvnForum(.*?)</a>', hstring)
if mvn_regex != None:
# mvnForum
return ['1', 'mvnf']

mupb_regex = re.search(r'Powered by myUPB(.*?)</a>', hstring)
if mupb_regex != None:
# myUPB
Expand Down