Code Monkey home page Code Monkey logo

cmseek's Introduction

Logo
version Python Version GitHub stars GitHub license Twitter

What is a CMS?

A content management system (CMS) manages the creation and modification of digital content. It typically supports multiple users in a collaborative environment. Some noteable examples are: WordPress, Joomla, Drupal etc.

Release History

- Version 1.1.3 [25-07-2020]
- Version 1.1.2 [19-05-2019]
- Version 1.1.1 [01-02-2019]
- Version 1.1.0 [28-08-2018]
- Version 1.0.9 [21-08-2018]
- Version 1.0.8 [14-08-2018]
- Version 1.0.7 [07-08-2018]
...

Changelog File

Functions Of CMSeek:

  • Basic CMS Detection of over 180 CMS
  • Drupal version detection
  • Advanced Wordpress Scans
    • Detects Version
    • User Enumeration
    • Plugins Enumeration
    • Theme Enumeration
    • Detects Users (3 Detection Methods)
    • Looks for Version Vulnerabilities and much more!
  • Advanced Joomla Scans
    • Version detection
    • Backup files finder
    • Admin page finder
    • Core vulnerability detection
    • Directory listing check
    • Config leak detection
    • Various other checks
  • Modular bruteforce system
    • Use pre made bruteforce modules or create your own and integrate with it

Requirements and Compatibility:

CMSeeK is built using python3, you will need python3 to run this tool and is compitable with unix based systems as of now. Windows support will be added later. CMSeeK relies on git for auto-update so make sure git is installed.

Installation and Usage:

It is fairly easy to use CMSeeK, just make sure you have python3 and git (just for cloning the repo) installed and use the following commands:

  • git clone https://github.com/Tuhinshubhra/CMSeeK
  • cd CMSeeK
  • pip/pip3 install -r requirements.txt

For guided scanning:

  • python3 cmseek.py

Else:

  • python3 cmseek.py -u <target_url> [...]

Help menu from the program:

USAGE:
       python3 cmseek.py (for guided scanning) OR
       python3 cmseek.py [OPTIONS] <Target Specification>

SPECIFING TARGET:
      -u URL, --url URL            Target Url
      -l LIST, --list LIST         Path of the file containing list of sites
                                   for multi-site scan (comma separated or one-per-line)

MANIPULATING SCAN:
      -i cms, --ignore--cms cms    Specify which CMS IDs to skip in order to
                                   avoid flase positive. separated by comma ","

      --strict-cms cms             Checks target against a list of provided
                                   CMS IDs. separated by comma ","

      --skip-scanned               Skips target if it's CMS was previously detected.

RE-DIRECT:
      --follow-redirect            Follows all/any redirect(s)
      --no-redirect                Skips all redirects and tests the input target(s)

USER AGENT:
      -r, --random-agent           Use a random user agent
      --googlebot                  Use Google bot user agent
      --user-agent USER_AGENT      Specify a custom user agent

OUTPUT:
      -v, --verbose                Increase output verbosity

VERSION & UPDATING:
      --update                     Update CMSeeK (Requires git)
      --version                    Show CMSeeK version and exit

HELP & MISCELLANEOUS:
      -h, --help                   Show this help message and exit
      --clear-result               Delete all the scan result
      --batch                      Never ask you to press enter after every site in a list is scanned

EXAMPLE USAGE:
      python3 cmseek.py -u example.com                           # Scan example.com
      python3 cmseek.py -l /home/user/target.txt                 # Scan the sites specified in target.txt (comma separated)
      python3 cmseek.py -u example.com --user-agent Mozilla 5.0  # Scan example.com using custom user-Agent Mozilla is 5.0 used here
      python3 cmseek.py -u example.com --random-agent            # Scan example.com using a random user-Agent
      python3 cmseek.py -v -u example.com                        # enabling verbose output while scanning example.com

Checking For Update:

You can check for update either from the main menu or use python3 cmseek.py --update to check for update and apply auto update.

P.S: Please make sure you have git installed, CMSeeK uses git to apply auto update.

Detection Methods:

CMSeek detects CMS via the following:

  • HTTP Headers
  • Generator meta tag
  • Page source code
  • robots.txt
  • Directory check

Supported CMSs:

CMSeeK currently can detect 170+ CMS. Check the list here: cmss.py file which is present in the cmseekdb directory. All the cmss are stored in the following way:

 cmsID = {
   'name':'Name Of CMS',
   'url':'Official URL of the CMS',
   'vd':'Version Detection (0 for no, 1 for yes)',
   'deeps':'Deep Scan (0 for no 1 for yes)'
 }

Scan Result:

All of your scan results are stored in a json file named cms.json, you can find the logs inside the Result\<Target Site> directory, and as of the bruteforce results they're stored in a txt file under the site's result directory as well.

Here is an example of the json report log:

Json Log

Bruteforce Modules:

CMSeek has a modular bruteforce system meaning you can add your custom made bruteforce modules to work with cmseek. A proper documentation for creating modules will be created shortly but in case you already figured out how to (pretty easy once you analyze the pre-made modules) all you need to do is this:

  1. Add a comment exactly like this # <Name Of The CMS> Bruteforce module. This will help CMSeeK to know the name of the CMS using regex

  2. Add another comment ### cmseekbruteforcemodule, this will help CMSeeK to know it is a module

  3. Copy and paste the module in the brutecms directory under CMSeeK's directory

  4. Open CMSeeK and Rebuild Cache using R as the input in the first menu.

  5. If everything is done right you'll see something like this (refer to screenshot below) and your module will be listed in bruteforce menu the next time you open CMSeeK.

Cache Rebuild Screenshot

Need More Reasons To Use CMSeeK?

If not anything you can always enjoy exiting CMSeeK (please don't), it will bid you goodbye in a random goodbye message in various languages.

Also you can try reading comments in the code those are pretty random and weird!!!

Screenshots:

Main Menu
Main Menu
Scan Result
Scan Result
WordPress Scan Result
WordPress Scan Result

Guidelines for opening an issue:

Please make sure you have the following info attached when opening a new issue:

  • Target
  • Exact copy of error or screenshot of error
  • Your operating system and python version

Issues without these informations might not be answered!

Disclaimer:

Usage of CMSeeK for testing or exploiting websites without prior mutual consistency can be considered as an illegal activity. It is the final user's responsibility to obey all applicable local, state and federal laws. Authors assume no liability and are not responsible for any misuse or damage caused by this program.

License:

CMSeeK is licensed under GNU General Public License v3.0

Follow Me @r3dhax0r:

Twitter

cmseek's People

Contributors

andrejro2 avatar coltoneakins avatar cyborgx0x avatar edu4rdshl avatar elointz avatar h4ckzard avatar hellodarkness avatar nickstadb avatar noraj avatar rolltechinc avatar roushikk avatar sendelufa avatar tuhinshubhra avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

cmseek's Issues

Force Close

Trying deepscaan
Scaning Site
User Agent
Force close

Trying Bruteforce CMS
Press 3
Force close

Sorry for no proff but this is what happend to me.
Any advice?

wp bruteforce can't work

tried with some sites with wp 4.9.6

[i] Checking for WordPress
[*] WordPress Confirmed... Checking for WordPress login form
[❌] Couldn't find login form... CMSeeK is quitting

PHP-Nuke

PHP-Nuke is an older CMS that is no longer in development, but plenty of websites still use it and it's still listed as an option in website install helpers like Softaculous and promoted by popular hosts like SiteGround. Obviously it's a terrible CMS to use in modern times, but it's still alive and unwell.

For a list of target websites:
https://trends.builtwith.com/websitelist/PHP-Nuke

[Suggestion] Return result in JSON

Hi,

Just some suggestion, let say i'm calling cmsseek.scan(domain) and it will return in json format.

Example :

from cmseek import scan

cmseek.scan(domain)
return json

There is any idea for this enhancement?

Thanks

Incorrect cms detection

The source and header detection methods detect CMS by certain fields.If a page contains these fields, but they are not actually CMS related, the page could be mistaken for using the CMS. Such as google "wp-content", you will get a page that contains a lot of "wp-content".
google_wp
cms_detect

api key

bro, hello.
nice product.
i tested on opencart - seems it does not work.
where to add key from wpvulndb?

UnboundLocalError: local variable 'joomcnf' referenced before assignment

Hello,

I'm having an error with the Bruteforce Module.
Please find the trace of this issue :

[i] Checking for Joomla
Traceback (most recent call last):
File "cmseek.py", line 185, in
cms_brute()
File "/newtools/CMSeeK/cmsbrute/joom.py", line 97, in start
if joomcnf != '1':
UnboundLocalError: local variable 'joomcnf' referenced before assignment

I take this opportunity to congratulate you for this work πŸ‘

scan only choosen CMS

Hi, there is argument --ignore-cms - what is good, but useful function can be also some kind of opposite to this. "scan only selected version/s"

PS: thank for --batch (however, its not working with -u, must "reinstall" script from zero)

need hit ENTER after each domain check from list ?

Hi, IΒ΄m using command
python3 cmseek.py -l list.txt --follow-redirect
but after each domain-check script asking me "Press [ENTER] to continue"

Is some argument to run script for multiple domains just one after another without confirming ? IΒ΄m checking many domains..

sslv3 alert handshake failure

Hello, Using CMSeek 1.1.1, got this error :

[+] CMS Detection And Deep Scan [+]

[i] Scanning Site: https://n0where.net/
[x] Aborting CMSeek! Couldn't connect to site
Error: <urlopen error [SSL: SSLV3_ALERT_HANDSHAKE_FAILURE] sslv3 alert handshake failure (_ssl.c:720)>

[Feature Request] HTTP Authentication

Hey, I am requesting if you could add various HTTP authentication methods, like Basic, Digest, and NTLM... and maybe others like OAuth 1, 2 and Kerberos if possible.

Problem with wpvdbres

I was trying option 1 on a WordPress website and caught this error below:

[Γ’] Detected CMS: WordPress
[Γ’] CMS URL: https://wordpress.org
Traceback (most recent call last):
File "cmseek.py", line 63, in
core.main_proc(site,cua)
File "/home/diego/Programas/CMSeeK/cmseekdb/core.py", line 156, in main_proc
advanced.deep(c22[1], site, cua, '0', scode)
File "/home/diego/Programas/CMSeeK/cmseekdb/dnv.py", line 186, in deep
if wpvdbres == '1':
UnboundLocalError: local variable 'wpvdbres' referenced before assignment

SyntaxError: Non-ASCII character

Traceback (most recent call last):
File "cmseek.py", line 9, in
import cmseekdb.basic as cmseek # All the basic functions
File "/root/Desktop/CMSeeK/cmseekdb/basic.py", line 67
SyntaxError: Non-ASCII character '\xc3' in file /root/Desktop/CMSeeK/cmseekdb/basic.py on line 67, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details

[Feature Request] Batch Mode

Thanks for a good tool. How about include in your roadmap a feature to run as batch mode.
With the flag someone could use in their script to run CMSeek and accept all default answer.

CMSeek showing error

[x] CMS Detection failed, if you know the cms please help me improve CMSeeK by reporting the cms along with the target by creating an issue

'ascii' codec can't encode character

[!] No luck with headers... Continuing with source code [!] Generator meta tag not found! (Procceeding with scan 2.2 of 2.2) Traceback (most recent call last): File "cmseek.py", line 87, in <module> core.main_proc(site,cua) File "/root/soft/CMSeeK/cmseekdb/core.py", line 156, in main_proc cmseek.error("Couldn't detect cms... :( \n Sorry master didn't mean to dissapoint but bye for now \n Can't handle this much disappintment \n\n") File "/root/soft/CMSeeK/cmseekdb/basic.py", line 149, in error print(bold + red + "[\u274c] " + msg) UnicodeEncodeError: 'ascii' codec can't encode character '\u274c' in position 10: ordinal not in range(128)

/root/.pyenv/versions/3.6.6/bin/python3 cmseek.py

pyenv
python 3.6.6
ubuntu 16.04

Drupal json output

Hello,

I think's i have find a issue :

python3 cmseek.py -u drupal.com -r


[+] CMS Scan Results [+]

┏━Target: www.drupal.com
┃
┠── CMS: Drupal
┃ β”‚
┃ β”œβ”€β”€ Version: 8
┃ ╰── URL: https://drupal.org
┃
┠── Result: /home/user/CMSeeK/Result/drupal.com/cms.json
┃
┗━Scan Completed in 2.16 Seconds, using 2 Requests


cat /home/user/CMSeeK/Result/drupal.com/cms.json

Output :
{ "cms_id": "dru", "cms_name": "", "cms_url": "", "detection_param": "header", "last_scanned": "2018-08-27 12:38:12.692850", "url": "http://drupal.com/" }

As you can see "cms_name" and "cms_url" is empty.

update

go fix this python script ineed talking you

datetime in requirements.txt

datetime was added as a requirement in 0c5734f

datetime is a part of the Python Standard Library and it is useless to add it in the requirements.txt file.

Error: <urlopen error [Errno -2] Name or service not known>

Linux parrot 4.17.0-parrot8-amd64 #1 SMP Parrot 4.17.8-1parrot8 (2018-08-11) x86_64 GNU/Linux

β”Œβ”€[max@parrot]─[~/Desktop/new/CMSeeK]
└──╼ $python3 cmseek.py -l sites.txt


| |/| [__ |___ |___ |/ by @r3dhax0r
|
__ | | | | |___ | _ Version 1.1.0 ForumZ

[+] CMS Detection And Deep Scan [+]

[i] Scanning Site: http://avtofiltry-shop.ruavto-finam.ruavtofinam.ruavtofinance24.ruavtofinance48.ruavto-finance.ruavtofinance.ruavtofinans116.ruavtofinans24.ruavtofinans31.ruavto-finans.ruavtofinans.ruavto-fina.ruavtofind.ruavtofininvest.ruavtofin.ruavtofint.ru
[x] Aborting CMSeek! Couldn't connect to site
Error: <urlopen error [Errno -2] Name or service not known>

Press [ENTER] to continue

[βœ”] Finished Scanning all targets.. result has been saved under respective target directories

CMSeeK says ~ sayonara
β”Œβ”€[max@parrot]─[~/Desktop/new/CMSeeK]
└──╼ $

P.S.: file sites.txt:
avtofiltry-shop.ru
avto-finam.ru
avtofinam.ru
avtofinance24.ru
avtofinance48.ru
avto-finance.ru
avtofinance.ru
avtofinans116.ru
avtofinans24.ru
avtofinans31.ru

P.P.S python3 cmseek.py -u example.com <------ performs excellently!

WordPress Version Detection

I tested this tool against my blog at https-4n6ir-com and CMSeeK isn't able to detect the wp version. I ran wpscan against the same, and it detected a version 'identified from advanced fingerprinting'.

issue

[] CMS Detected, CMS ID: wp, Detection method: header
[
] 2 Usernames were enumerated
[!] Skipping version vulnerability scan as WordPress Version wasn't detected
Traceback (most recent call last):
File "cmseek.py", line 118, in
core.main_proc(site,cua)
File "/root/Desktop/newtools/CMSeeK/cmseekdb/core.py", line 107, in main_proc
advanced.start(cms, site, cua, ga, scode, ga_content)
File "/root/Desktop/newtools/CMSeeK/deepscans/core.py", line 10, in start
wpscan.start(id, url, ua, ga, source)
File "/root/Desktop/newtools/CMSeeK/deepscans/wp/init.py", line 101, in start
vulnss = len(result['vulnerabilities'])
TypeError: string indices must be integers

A wierd error...

Python: 3.6.5
Error: Traceback (most recent call last):
File "cmseek.py", line 117, in
core.main_proc(site,cua)
File "/root/CMSeeK/cmseekdb/core.py", line 101, in main_proc
advanced.start(cms, site, cua, ga, scode, ga_content)
File "/root/CMSeeK/deepscans/core.py", line 14, in start
joomscan.start(id, url, ua, ga, source)
File "/root/CMSeeK/deepscans/joom/init.py", line 76, in start
cmseek.result('Target: ',url)
File "/root/CMSeeK/cmseekdb/basic.py", line 147, in result
print(bold + fgreen + "[\u2714] " + stm + cln + msg)
UnicodeEncodeError: 'ascii' codec can't encode character '\u2714' in position 10: ordinal not in range(128)

CMSeek showing error

Hey @Tuhinshubhra

While running cmseek on wp and jomla I am getting an error whereas running the joomscan and wpscan is working fine.
Error:

File "cmseek.py", line 136, in <module>
    core.main_proc(site,cua)
  File "/home/tools/CMSeeK/cmseekdb/core.py", line 132, in main_proc
    result.target(site)
  File "/home/tools/CMSeeK/cmseekdb/result.py", line 12, in target
    print(' \u250f\u2501Target: ' + cmseek.bold + cmseek.red + target + cmseek.cln)
UnicodeEncodeError: 'ascii' codec can't encode characters in position 1-2: ordinal not in range(128)

Can you please help me to fix this?
Thanks

help

Traceback (most recent call last):
File "cmseek.py", line 17, in
import cmseekdb.core as core
File "/root/CMSeeK/cmseekdb/core.py", line 23, in
import cmseekdb.generator as generator
File "/root/CMSeeK/cmseekdb/generator.py", line 31
global ga, ga_content
^
SyntaxError: name 'ga' is assigned to before global declaration

phpBB

By some definitions phpBB may not technically be a CMS out of the box, but plenty of people use it as one and it is certainly at least a user-generated content management system. It's an extremely popular forum platform and is categorized as a CMS by Open Source CMS. Virtually every website builder/install helper comes with packages for it. Many times it is placed in the subdirectory, such as www.example.com/forum, but it is also often placed in a subdomain of its own, such as forum.example.com.

Some target websites:
https://forums.veeam.com/
http://forum.vfb.de/
https://bb.steelguitarforum.com/
http://www.ultimatebootcd.com/forums/
https://www.reactos.org/forum/

Bruteforce Wordpress Traceback

Traceback (most recent call last):leries
File "cmseek.py", line 110, in
cms_brute()
File "/root/CMSeeK/cmsbrute/wp.py", line 80, in start
if passfound == '0':
UnboundLocalError: local variable 'passfound' referenced before assignment

ignore in Results

After some scans I found that there are some CMS or URLS which taking much time. So I deleted them from list.txt and ran batch scan again. But it starts again from first url. Can you add some argument --ignore-if-in-results ?

Thanks

local variable 'wpvdbres' referenced before assignment

[+] Deep Scan Results [+]

[βœ”] Detected CMS: WordPress
[βœ”] CMS URL: https://wordpress.org
Traceback (most recent call last):
File "cmseek.py", line 45, in
core.main_proc(site,cua)
File "/Users/x/CMSeeK_CMSDetectionandExploitation/cmseekdb/core.py", line 123, in main_proc
advanced.deep(c22[1], site, cua, '1', scode)
File "/Users/x/CMSeeK_CMSDetectionandExploitation/cmseekdb/dnv.py", line 184, in deep
if wpvdbres == '1':
UnboundLocalError: local variable 'wpvdbres' referenced before assignment

change result directory

see BlackArch/blackarch#2245

The result directory path should be changed to working_dir + '/Result' instead of cmseek_dir + '/Result', the fix a permission issue where the tool cant write to a privileged directory.

Ignore certificate error

Hello, @Tuhinshubhra. Thank you for sharing the CMSeeK!
I found that if a target http server uses self-signed certificate, CMSeeK couldn't scan.

informations:

  • Target: A self signed https server
  • Exact copy of error
    $python cmseek.py -u https://localhost:8443
    
    
     _____ _____ _____         _____
    |     |     |   __|___ ___|  |  | by @r3dhax0r
    |   --| | | |__   | -_| -_|    -|
    |_____|_|_|_|_____|___|___|__|__| Version 1.0.8
    
    
     [+]  CMS Detection And Deep Scan  [+] 
    
    
    [i] Scanning Site: https://localhost:8443/
    [x] Aborting CMSeek! Couldn't connect to site 
        Error: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate (_ssl.c:1045)>
    
    
    [i] Log saved in: /path/to/CMSeeK/Result/localhost:8443/cms.json
    
    
      _/\_  totsiens ~~ CMSeeK 
  • Your operating system
    $ cat /etc/issue
    Arch Linux \r (\l)
    
    $uname -r
    4.17.14-arch1-1-ARCH
    
    $python -V
    Python 3.7.0

Following patch works for me.

diff --git a/cmseek.py b/cmseek.py
index 9f9b260..4a3c694 100644
--- a/cmseek.py
+++ b/cmseek.py
@@ -48,6 +48,10 @@ elif args.random_agent is not None:
     cua = cmseek.randomua('random')
 else:
     cua = None
+
+import ssl
+ssl._create_default_https_context = ssl._create_unverified_context
+
 if args.url is not None:
     s = args.url
     target = cmseek.process_url(s)

Thanks!

Request: Remove re-direction confirmation prompt

I would love to write a module for SpiderFoot to use CMSeeK, but to do that it should be able to run CMSeeK from the command line in a completely hands-off way. Right now, if I run cmseek.py example.com, I will get prompted if it's the URL I want to scan when there is a re-direct. Could you perhaps introduce a -y flag or similar, which just assumes that I want to follow the re-direction?

Great tool and keep up the good work!

Thanks.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.