forked from Tuhinshubhra/CMSeeK
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdweb.py
More file actions
21 lines (18 loc) · 674 Bytes
/
dweb.py
File metadata and controls
21 lines (18 loc) · 674 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/usr/bin/python3
# -*- coding: utf-8 -*-
# This is a part of CMSeeK, check the LICENSE file for more information
# Copyright (c) 2018 - 2020 Tuhinshubhra
# Dynamicweb version detection
# Rev 1
import cmseekdb.basic as cmseek
import re
def start(ga_content):
cmseek.statement('Detecting Dynamicweb version using generator meta tag [Method 1 of 1]')
regex = re.findall(r'Dynamicweb (.*)', ga_content)
if regex != []:
version = regex[0]
cmseek.success('Dynamicweb version ' + cmseek.bold + cmseek.fgreen + version + cmseek.cln + ' detected')
return version
else:
cmseek.error('Version detection failed!')
return '0'