Skip to content

Commit

Permalink
Added CMS and Version detection for Al Mubda (issue #47)
Browse files Browse the repository at this point in the history
  • Loading branch information
Tuhinshubhra committed Nov 27, 2018
1 parent 3c055c3 commit f42a9da
Show file tree
Hide file tree
Showing 6 changed files with 37 additions and 1 deletion.
1 change: 1 addition & 0 deletions .scan_id
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0
1 change: 1 addition & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ Version 1.1.1 []
- Cosmoshop
- CS Cart
- CubeCart
- Al Mubda
- Version detection added for:
- Magento
- Commerce Server
Expand Down
22 changes: 22 additions & 0 deletions VersionDetect/abda.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
#!/usr/bin/python3
# -*- coding: utf-8 -*-
# This is a part of CMSeeK, check the LICENSE file for more information
# Copyright (c) 2018 Tuhinshubhra

# Al Mubda version detection
# Rev 1

import cmseekdb.basic as cmseek
import re

def start(source):
cmseek.statement("Detecting Al Mubda version using source code [Method 1 of 1]")
regex = re.findall(r'Powered by Al Mubda version (\d.*?)</a>', source)
if regex != []:
if regex[0] != '' and regex[0] != ' ':
version = regex[0]
cmseek.success('Al Mubda version ' + cmseek.bold + cmseek.fgreen + version + cmseek.cln + ' detected')
return version

cmseek.error('Version detection failed!')
return '0'
4 changes: 4 additions & 0 deletions VersionDetect/detect.py
Original file line number Diff line number Diff line change
Expand Up @@ -233,3 +233,7 @@ def start(id, url, ua, ga, source, ga_content):
import VersionDetect.coms as comsverdetect
comsver = comsverdetect.start(url, ua)
return comsver
elif id == 'abda':
import VersionDetect.abda as abdaverdetect
abdaver = abdaverdetect.start(source)
return abdaver
7 changes: 7 additions & 0 deletions cmseekdb/cmss.py
Original file line number Diff line number Diff line change
Expand Up @@ -948,3 +948,10 @@
'vd':'0',
'deeps':'0'
}

abda = {
'name':'Al Mubda',
'url':'http://www.almubda.net/',
'vd':'1',
'deeps':'0'
}
3 changes: 2 additions & 1 deletion cmseekdb/sc.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,8 @@ def check(s, site): ## Check if no generator meta tag available
'https://cdn.mycomandia.com/uploads/comandia_(.*?)/r/(.*?)//js/(functions|main).js:-cmdia',
'<script(.*?)cosmoshop_functions.js(.*?)</script>:-cosmos',
'.cm-noscript(.*?)</script>:-csc',
'<link(.*?)cubecart.common.css(.*?)>:-cubec'
'<link(.*?)cubecart.common.css(.*?)>:-cubec',
'<a href(.*?)http://www.almubda.net(.*?)Powered by Al Mubda(.*?)</a>:-abda'
]
# so here's the story, i've been watching hunter x hunter for last 2 weeks and i just finished it.
# In the following lines you'll find some weird variable names, those are characters from hxh.
Expand Down

0 comments on commit f42a9da

Please sign in to comment.