[
  {
    "path": "README.md",
    "content": "# WhatCMS.sh\nCMS Detection and Exploit Kit based on **[Whatcms.org](https://whatcms.org)** API.\n\n## Introduction\nWhatcms.sh can currently detect the use of more than **330 different CMS** applications and services to later indicate a list of valid security audit tools for the detected CMS.\n\nYou need the whatcms.org API to use the tool:\n+ [Get API key](https://whatcms.org/Subscriptions)\n\n## Use\n\n``Usage: ``*``./whatcms.sh example.com``*\n```\n-h          Display help message\n-wh         Check hosting details\n--tools     Display tools information\n```\n\n![alt](https://media.giphy.com/media/2xPMQtvkDOLg49dgGt/giphy.gif)\n\n## Information\n\n### Detected CMSs\n\n[CMS list](https://whatcms.org/Content-Management-Systems)\n\n### Included tools\n\nTOOLS | UTILITY | REPO URL\n--- | --- | ---\nDumb0 | Username Scrapper Tool | https://github.com/0verl0ad/Dumb0/ \nCMSsc4n | Identify Tool | https://github.com/n4xh4ck5/CMSsc4n \nPuppet | Identify Tool | https://github.com/Poil/puppet-websites-facts \npyfiscan | Identify Tool | https://github.com/fgeek/pyfiscan \nXAttacker | Exploit Tool |  https://github.com/Moham3dRiahi/XAttacker\nbeecms | Exploit Tool | https://github.com/CHYbeta/cmsPoc \nCMSXPL | Exploit Tool | https://github.com/tanprathan/CMS-XPL \nJMassExploiter | Exploit Tool | https://github.com/anarcoder/JoomlaMassExploiter \nWPMassExploiter | Exploit Tool | https://github.com/anarcoder/WordPressMassExploiter \nCMSExpFram | Exploit Tool | https://github.com/Q2h1Cg/CMS-Exploit-Framework \nLotusXploit | Exploit Tool | https://github.com/Hood3dRob1n/LotusCMS-Exploit \nBadMod | Exploit Tool | https://github.com/MrSqar-Ye/BadMod \nM0B | Exploit Tool | https://github.com/mobrine-mob/M0B-tool \nLetMeFuckIt | Exploit Tool | https://github.com/onthefrontline/LetMeFuckIt-Scanner \nmagescan | Exploit Tool | https://github.com/steverobbins/magescan \nPRESTA | Exploit Tool | https://github.com/AlisamTechnology/PRESTA-modules-shell-exploit \nEktronE | Exploit Tool | https://github.com/tomkallo/Ektron_CMS_8.02_exploit \nXBruteForcer | Brute Force Tool | https://github.com/Moham3dRiahi/XBruteForcer \nCoMisSion | Analyze Tool | https://github.com/Intrinsec/comission \ndroopescan | Analyze Tool | https://github.com/droope/droopescan \nCMSmap | Analyze Tool | https://github.com/Dionach/CMSmap \nJoomScan | Analyze Tool | https://github.com/rezasp/joomscan \nVBScan | Analyze Tool | https://github.com/rezasp/vbscan \nJoomlaScan | Analyze Tool | https://github.com/drego85/JoomlaScan \nc5scan | Analyze Tool | https://github.com/auraltension/c5scan \nT3scan | Analyze Tool | https://github.com/Oblady/T3Scan \nmoodlescan | Analyze Tool | https://github.com/inc0d3/moodlescan \nSPIPScan | Analyze Tool | https://github.com/PaulSec/SPIPScan \nWPHunter | Analyze Tool | https://github.com/aryanrtm/WP-Hunter \nWPSeku | Analyze Tool | https://github.com/m4ll0k/WPSeku \nACDrupal | Analyze Tool | https://github.com/mrmtwoj/ac-drupal \nPlown | Analyze Tool | https://github.com/unweb/plown \nconscan | Analyze Tool | https://github.com/nullsecuritynet/tools/tree/master/scanner/conscan \nCMSScanner | Analyze Tool | https://github.com/CMS-Garden/cmsscanner \ncmsExplorer | Analyze Tool | https://code.google.com/archive/p/cms-explorer\nWPScan | Analyze Tool | https://github.com/wpscanteam/wpscan \nMooScan | Analyze Tool | https://github.com/vortexau/mooscan \nScanners | Analyze Tool | https://github.com/b3o1/Scanners \nLiferayScan | Analyze Tool | https://github.com/bcoles/LiferayScan \nInfoLeak | Analyze Tool | https://github.com/SIWECOS/InfoLeak-Scanner \njoomlavs | Analyze Tool | https://github.com/rastating/joomlavs \nWAScan | Analyze Tool | https://github.com/m4ll0k/WAScan \nRedHawk | Analyze Tool | https://github.com/Tuhinshubhra/RED_HAWK \nHostileSBF | Analyze Tool | https://github.com/nahamsec/HostileSubBruteforcer \n"
  },
  {
    "path": "whatcms.sh",
    "content": "#!/bin/bash\n\n#SET YOUR WHATCMS API KEY HERE\ncmsapikey=\n\n#Banner function\nbanner()\n{\n\techo \"\"\n\techo \"-------------------------------------------------------------\"\t\n\techo \"\"\n\techo \"\"\n\techo -e \"\\e[1;36m██╗    ██╗██╗  ██╗ █████╗ ████████╗ ██████╗███╗   ███╗███████╗\"\n\techo -e \"██║    ██║██║  ██║██╔══██╗╚══██╔══╝██╔════╝████╗ ████║██╔════╝\"\n\techo -e \"██║ █╗ ██║███████║███████║   ██║   ██║     ██╔████╔██║███████╗\"\n\techo -e \"██║███╗██║██╔══██║██╔══██║   ██║   ██║     ██║╚██╔╝██║╚════██║\"\n\techo -e \"╚███╔███╔╝██║  ██║██║  ██║   ██║   ╚██████╗██║ ╚═╝ ██║███████║\"\n\techo -e \" ╚══╝╚══╝ ╚═╝  ╚═╝╚═╝  ╚═╝   ╚═╝    ╚═════╝╚═╝     ╚═╝╚══════╝\\e[0m\"\n    echo \"\"\n    echo \"\"                                                          \n\techo -e \"   CMS Detection and Exploit Kit based on \\e[1mWhatCMS.org\\e[0m API\"\n\techo \"\"\n\techo -e \"\\e[1m  --------------------\\e[0m\"\n\techo -e \"\\e[1m |\\e[0m \\e[1;36mCMS database: 331\\e[0m  \\e[1m|\\e[0m\"\n\techo -e \"\\e[1m |\\e[0m \\e[1;36mTools database: 44\\e[0m \\e[1m|\\e[0m\"\n\techo -e \"\\e[1m  --------------------\\e[0m\"\n\techo -e \"                                           \\e[2;3;36mdeveloped by HATI\\e[0m\"\n\techo \"-------------------------------------------------------------\"\n}\n\n#APIKEYcheck\napikeycheck()\n{\n\tif [[ -z $cmsapikey ]];then\n\t\techo \"\"\n\t\techo -e \" \\e[38;5;196;1m[#] API Key not found.\\e[0m\"\n\t\techo -e \" \\e[1m[-] Set your WhatCMS API Key on the source code\\e[0m\"\n\t\techo \"\"\n\t\texit 0\n\tfi\n}\n\n#TrashDel\ntrashdel()\n{\n\techo \" \" > tmpver\n\trm tmpver\n\techo \" \" > tmptools2\n\trm tmptools2\n\techo \" \" > tmpgit\n\trm tmpgit\n\techo \" \" > tmptools\n\trm tmptools\n\techo \" \" > tmp\n\trm tmp\n\techo \" \" > cmstmp\n\trm cmstmp\n}\n\n#DomainCheck function\ndomaincheck()\n{\n\tif [[ -z $1 ]];then\n\t\techo \"\"\n\telse\n\t\tverify=$(echo $1 | grep -c -P '^(?!:\\/\\/)(?=.{1,255}$)((.{1,63}\\.){1,127}(?![0-9]*$)[a-z0-9-]+\\.?.*)')\n\t\tif [ $verify != 0 ]; then\n\t\t\techo \"\"\n\t\tfi\n\tfi\n}\n\n#WhatCMS function\nwhatcms()\n{\n    curl -s \"https://whatcms.org/APIEndpoint?key=$cmsapikey&url=\"$1 > tmp\n    api=$(cat tmp | sed -e 's/[{}]/''/g' | awk -v RS=',\"' -F: '/^msg/ {print $2}' | sed 's/\\(^\"\\|\"$\\)//g' | grep -c Invalid)\n    if [[ $api == 1 ]];then\n    \techo -e \" \\e[38;5;196;1m[#] Invalid API key.\\e[0m\"\n    \techo -e \" \\e[1m[-] Set your WhatCMS API Key on the source code.\\e[0m\"\n    \techo \"\"\n    \texit 0\n    else\n    \tcms=$(cat tmp | sed -e 's/[{}]/''/g' | awk -v RS=',\"' -F: '/^name/ {print $2}' | sed 's/\\(^\"\\|\"$\\)//g')\n    \tversion=$(cat tmp | sed -e 's/[{}]/''/g' | awk -v RS=',\"' -F: '/^version/ {print $2}' | sed 's/\\(^\"\\|\"$\\)//g')\n    \techo \"\"\n    \techo -e \" \\e[1m[URL]: \\e[1;36m$1\\e[0m\"\n    \techo \"\"\n    \techo -e \" \\e[1m[CMS]: \\e[1;92m$cms\\e[0m\"\n    \techo \"\"\n    \techo -e \" \\e[1m[VERSION]: \\e[1;92m$version\\e[0m\"\n    fi\n}\n\n#WhoHOST function\nwhohost()\n{\n\tcurl -s \"https://www.who-hosts-this.com/APIEndpoint?key=$cmsapikey&url=\"$1 > tmp\n\tapi=$(cat tmp | sed -e 's/[{}]/''/g' | awk -v RS=',\"' -F: '/^msg/ {print $2}' | sed 's/\\(^\"\\|\"$\\)//g' | grep -c Invalid)\n  \tisp=$(cat tmp | sed -e 's/[{}]/''/g' | awk -v RS=',\"' -F: '/^isp_name/ {print $2}' | sed 's/\\(^\"\\|\"$\\)//g' | sort | uniq | tr '\\n' ' ')\n\tip=$(grep -o '[0-9]\\{1,3\\}\\.[0-9]\\{1,3\\}\\.[0-9]\\{1,3\\}\\.[0-9]\\{1,3\\}' tmp | sort | uniq | tr '\\n' ' ')\n\ttype=$(cat tmp | sed -e 's/[{}]/''/g' | awk -v RS=',\"' -F: '/^type/ {print $2}' | sed 's/\\(^\"\\|\"$\\)//g' | sort | uniq | tr '\\n' ' ')\n\techo \"\"\n\techo -e \" \\e[1m[ISP]: \\e[1;36m$isp\\e[0m\"\n\techo \"\"\n\techo -e \" \\e[1m[IP]: \\e[1;36m$ip\\e[0m\"\n\techo \"\"\n\techo -e \" \\e[1m[TYPE] \\e[1;36m$type\\e[0m\"\n}\n\n#CMSToolsask function\ncmstoolsask()\n{\n\techo \"\"\n\techo \"-------------------------------------------------------------\"\n\techo  -e \"DruPal\\nJoomla\\nSPIP\\nWordpress\\nDrupal\\nXen\\nBigTreeCMS\\nDrupal\\nWeBid\\nDiscuz\\nvbulletin\\nHeroku\\nOpenCart\\nPHPBB\\nBugzilla\\nMambo\\nWolf\\nStartBBS\\nMadeSimple\\nVeyton\\nMagento\\nMagento\\nshopify\\nMagento\\nPrestashop\\nMoodle\\nmyBB\\nCentreon\\nTYPO3CMS\\nBetoffice\\nWaiKu\\nLokomedia\\nOpenCart\\nuseBB\\nEZPublish\\nClaroline\\nFly-High\\nAllCMS\\nxt-commerce\\nvanilla\\nTypo3\\nPlone\\nsquarespace\\nClipperCMS\\nPrestashop\\nHavalite\\nWebspell\\ntumblr\\nbbPress\\nPhpMyAdmin\\nCMSMS\\nPivotX\\nPhpTax\\nCMSimple\\nAlchemyCMS\\nimacs\\nMantis\\nCollabtive\\nConcrete5\\nCoppermine\\nCotonti\\nCroogo\\nCubeCart\\nDolibarr\\nDotclear\\ne107\\nEspoCRM\\nEtherpad\\nFluxBB\\nFoswiki\\nGallery\\nGollum\\nHelpDEZk\\nHumHub\\nImpressCMS\\nImpressPages\\nJamroom\\nKanboard\\nKCFinder\\nLiteCart\\nMagnolia\\nMahara\\nMantisBT\\nMediaWiki\\nMicroweber\\nMiniBB\\nMODXRevolution\\nMoinMoin\\nNibbleblog\\nOpenSourceSocialNetwork\\nOpenCart\\nosDate\\nownCloud\\nOxwall\\nPBBoard\\nphpBB3\\nPhpGedView\\nPiwigo\\nPiwik\\nPmWiki\\nPostfixAdmin\\nRedaxo\\nRoundcube\\nSaurusCMS\\nSerendipity\\nShaarli\\nSimple Machines Forum\\nSpinaCMS\\nSquirrelMail\\nTestLink\\nTikiWiki\\nTrac\\nWikkaWiki\\nZenphoto\\nX-Cart\\nZikula\\nMoodle\\nBeehive\\nFUDforum\\npunBB\\nAcmImBoard\\nBurning\\nCommunity\\nfusionBB\\ndeluxeBB\\nJFORUM\\nJive\\nJibit\\nNear\\nOVBB\\nTikiWiki\\nSPIP\\nConcrete5\" > cmstmp\n\tverify=$(grep -c -i \"$cms\" cmstmp)\n\tif [[ $cms == \"null\" ]];then\n\t\techo \"\"\n\t\techo -e \" \\e[38;5;196;1m[#] CMS not detected.\\e[0m\"\n\t\techo \"\"\n\t\techo \"-------------------------------------------------------------\"\n\t\techo \"\"\n\t\texit 0\n\telif [[ $verify == 0 ]];then\n\t\techo \"\"   \n        echo -e \" \\e[38;5;196;1m[#] The CMS is not on the tool database.\\e[0m\"\n        echo \"\"\n        echo \"-------------------------------------------------------------\"\n\t\techo \"\"\n\t\texit 0\n   \telse\n   \t\techo \"\"\n        echo -e \" \\e[1;92m[+] CMS found on the tool database.\\e[0m \"\n        echo -e \" \\e[1m[-]Wanna check wich tools can you use? [y/n] \\e[0m\" \n        read -s checkyn\n        echo \"\"\n\tfi\n}\n\n#CMSToolscheck function\ncmstoolscheck()\n{\n\tcase $checkyn in\n\t    Y|y|s|S|\"\")\t \t\n\t \t;;\n\t    n|N)\n\t\t\techo \"\"\n\t\t\techo -e \" \\e[1;36mBye bye.\\e[0m\"\n\t\t\techo \"\"\n\t\t\ttrashdel\n\t\t\texit 0\n\t    ;;\t \n\t    *)\n\t\t\techo \"\"\n\t\t\ttrashdel\n\t\t\texit 0\n\t\t;;\n\tesac\n}\n\n#CMSTools\ncmstools()\n{\n\txbf=$(echo $XBruteForcer | cut -d \"-\" -f 5 | grep -c -i \"$cms\")\n\tCMSs4=$(echo $CMSsc4n | cut -d \"-\" -f 5 | grep -c -i \"$cms\")\n\tCMSon=$(echo $CoMisSion | cut -d \"-\" -f 5 | grep -c -i \"$cms\")\n\tdroop=$(echo $droopescan | cut -d \"-\" -f 5 | grep -c -i \"$cms\")\n\tmap=$(echo $CMSmap | cut -d \"-\" -f 5 | grep -c -i \"$cms\")\n\tjoom=$(echo $JoomScan | cut -d \"-\" -f 5 | grep -c -i \"$cms\")\n\tbee=$(echo $beecms | cut -d \"-\" -f 5 | grep -c -i \"$cms\")\n\tdumb=$(echo $Dumb0 | cut -d \"-\" -f 5 | grep -c -i \"$cms\")\n\tvbs=$(echo $VBScan | cut -d \"-\" -f 5 | grep -c -i \"$cms\")\n\tjoom2=$(echo $JoomlaScan | cut -d \"-\" -f 5 | grep -c -i \"$cms\")\n\tc5=$(echo $c5scan | cut -d \"-\" -f 5 | grep -c -i \"$cms\")\n\tt3=$(echo $T3scan | cut -d \"-\" -f 5 | grep -c -i \"$cms\")\n\tpup=$(echo $Puppet | cut -d \"-\" -f 5 | grep -c -i \"$cms\")\n\tmood=$(echo $moodlescan | cut -d \"-\" -f 5 | grep -c -i \"$cms\")\n\tspip=$(echo $SPIPScan | cut -d \"-\" -f 5 | grep -c -i \"$cms\")\n\twphu=$(echo $WPHunter | cut -d \"-\" -f 5 | grep -c -i \"$cms\")\n\twpsek=$(echo $WPSeku | cut -d \"-\" -f 5 | grep -c -i \"$cms\")\n\tacdr=$(echo $acdrupal | cut -d \"-\" -f 5 | grep -c -i \"$cms\")\n\tplo=$(echo $Plown | cut -d \"-\" -f 5 | grep -c -i \"$cms\")\n\tpyf=$(echo $pyfiscan | cut -d \"-\" -f 5 | grep -c -i \"$cms\")\n\tcon=$(echo $conscan | cut -d \"-\" -f 5 | grep -c -i \"$cms\")\n\tcmsss=$(echo $CMSScanner | cut -d \"-\" -f 5 | grep -c -i \"$cms\")\n\tcmse=$(echo $cmsexplorer | cut -d \"-\" -f 5 | grep -c -i \"$cms\")\n\twpsc=$(echo $WPScan | cut -d \"-\" -f 5 | grep -c -i \"$cms\")\n\txplsc=$(echo $XPL | cut -d \"-\" -f 5 | grep -c -i \"$cms\")\n\tjme=$(echo $JoomME | cut -d \"-\" -f 5 | grep -c -i \"$cms\")\n\twme=$(echo $WordPressME | cut -d \"-\" -f 5 | grep -c -i \"$cms\")\n\tcef=$(echo $CMSEF | cut -d \"-\" -f 5 | grep -c -i \"$cms\")\n\tlcms=$(echo $Lotus | cut -d \"-\" -f 5 | grep -c -i \"$cms\")\n\tbmcms=$(echo $BadMod | cut -d \"-\" -f 5 | grep -c -i \"$cms\")\n\tmoo=$(echo $MooScan | cut -d \"-\" -f 5 | grep -c -i \"$cms\")\n\txa=$(echo $XAttacker | cut -d \"-\" -f 5 | grep -c -i \"$cms\")\n\tmob=$(echo $M0B | cut -d \"-\" -f 5 | grep -c -i \"$cms\")\n\tlmfi=$(echo $LetMeFuckIt | cut -d \"-\" -f 5 | grep -c -i \"$cms\")\n\tmcms=$(echo $magescan | cut -d \"-\" -f 5 | grep -c -i \"$cms\")\n\tpcms=$(echo $PRESTA | cut -d \"-\" -f 5 | grep -c -i \"$cms\")\n\tscms=$(echo $sc | cut -d \"-\" -f 5 | grep -c -i \"$cms\")\n\tekcms=$(echo $ektrone | cut -d \"-\" -f 5 | grep -c -i \"$cms\")\n\tlrs=$(echo $LiferayScan | cut -d \"-\" -f 5 | grep -c -i \"$cms\")\n\tifl=$(echo $InfoLeak | cut -d \"-\" -f 5 | grep -c -i \"$cms\")\n\tjlavs=$(echo $joomlavs | cut -d \"-\" -f 5 | grep -c -i \"$cms\")\n\twas=$(echo $WAScan | cut -d \"-\" -f 5 | grep -c -i \"$cms\")\n\trhw=$(echo $RedHawk | cut -d \"-\" -f 5 | grep -c -i \"$cms\")\n\thostsbf=$(echo $HostileSBF | cut -d \"-\" -f 5 | grep -c -i \"$cms\")\n\n\techo \"-------------------------------------------------------------\"\n\techo \"\"\n\techo -e \" \\e[1m[-] Available tools for \\e[1;36m$cms:\\e[0m\"\n\techo \"\"\n\techo \"\"\n\techo \"\" > tmptools\n\techo -e \" \\e[1m           TOOL        - ID -         UTILITY\\e[0m\" >> tmptools\n\techo \"     --\" >> tmptools\n\n\tif [[ $xbf == 1 ]];then\n\t\techo \"     \"$XBruteForcer | cut -d \"-\" -f 1,2,3 >> tmptools\n\t\techo \"     --\" >> tmptools\n\tfi\n\tif [[ $CMSs4 == 1 ]]; then\n\t\techo \"     \"$CMSsc4n | cut -d \"-\" -f 1,2,3 >> tmptools\n\t\techo \"     --\" >> tmptools\n\tfi\n\tif [[ $CMSon == 1 ]]; then\n\t\techo \"     \"$CoMisSion | cut -d \"-\" -f 1,2,3 >> tmptools\n\t\techo \"     --\" >> tmptools\n\tfi\n\tif [[ $droop == 1 ]]; then\n\t\techo \"     \"$droopescan | cut -d \"-\" -f 1,2,3 >> tmptools\n\t\techo \"     --\" >> tmptools\n\tfi\n\tif [[ $map == 1 ]]; then\n\t\techo \"     \"$CMSmap | cut -d \"-\" -f 1,2,3 >> tmptools\n\t\techo \"     --\" >> tmptools\n\tfi\n\tif [[ $joom == 1 ]]; then\n\t\techo \"     \"$JoomScan | cut -d \"-\" -f 1,2,3 >> tmptools\n\t\techo \"     --\" >> tmptools\n\tfi\n\tif [[ $bee == 1 ]]; then\n\t\techo \"     \"$beecms | cut -d \"-\" -f 1,2,3 >> tmptools\n\t\techo \"     --\" >> tmptools\n\tfi\n\tif [[ $dumb == 1 ]]; then\n\t\techo \"     \"$Dumb0 | cut -d \"-\" -f 1,2,3 >> tmptools\n\t\techo \"     --\" >> tmptools\n\tfi\n\tif [[ $vbs == 1 ]]; then\n\t\techo \"     \"$VBScan | cut -d \"-\" -f 1,2,3 >> tmptools\n\t\techo \"     --\" >> tmptools\n\tfi\n\tif [[ $joom2 == 1 ]]; then\n\t\techo \"     \"$JoomlaScan | cut -d \"-\" -f 1,2,3 >> tmptools\n\t\techo \"     --\" >> tmptools\n\tfi\n\tif [[ $c5 == 1 ]]; then\n\t\techo \"     \"$c5scan | cut -d \"-\" -f 1,2,3 >> tmptools\n\t\techo \"     --\" >> tmptools\n\tfi\n\tif [[ $t3 == 1 ]]; then\n\t\techo \"     \"$T3scan | cut -d \"-\" -f 1,2,3 >> tmptools\n\t\techo \"     --\" >> tmptools\n\tfi\n\tif [[ $pup == 1 ]]; then\n\t\techo \"     \"$Puppet | cut -d \"-\" -f 1,2,3 >> tmptools\n\t\techo \"     --\" >> tmptools\n\tfi\n\tif [[ $mood == 1 ]]; then\n\t\techo \"     \"$moodlescan | cut -d \"-\" -f 1,2,3 >> tmptools\n\t\techo \"     --\" >> tmptools\n\tfi\n\tif [[ $spip == 1 ]]; then\n\t\techo \"     \"$SPIPScan | cut -d \"-\" -f 1,2,3 >> tmptools\n\t\techo \"     --\" >> tmptools\n\tfi\n\tif [[ $wphu == 1 ]]; then\n\t\techo \"     \"$WPHunter | cut -d \"-\" -f 1,2,3 >> tmptools\n\t\techo \"     --\" >> tmptools\n\tfi\n\tif [[ $wpsek == 1 ]]; then\n\t\techo \"     \"$WPSeku | cut -d \"-\" -f 1,2,3 >> tmptools\n\t\techo \"     --\" >> tmptools\n\tfi\n\tif [[ $acdr == 1 ]]; then\n\t\techo \"     \"$acdrupal | cut -d \"-\" -f 1,2,3 >> tmptools\n\t\techo \"     --\" >> tmptools\n\tfi\n\tif [[ $plo == 1 ]]; then\n\t\techo \"     \"$Plown | cut -d \"-\" -f 1,2,3 >> tmptools\n\t\techo \"     --\" >> tmptools\n\tfi\n\tif [[ $pyf == 1 ]]; then\n\t\techo \"     \"$pyfiscan | cut -d \"-\" -f 1,2,3 >> tmptools\n\t\techo \"     --\" >> tmptools\n\tfi\n\tif [[ $con == 1 ]]; then\n\t\techo \"     \"$conscan | cut -d \"-\" -f 1,2,3 >> tmptools\n\t\techo \"     --\" >> tmptools\n\tfi\n\tif [[ $cmsss == 1 ]]; then\n\t\techo \"     \"$CMSScanner | cut -d \"-\" -f 1,2,3 >> tmptools\n\t\techo \"     --\" >> tmptools\n\tfi\n\tif [[ $cmse == 1 ]]; then\n\t\techo \"     \"$cmsexplorer | cut -d \"-\" -f 1,2,3 >> tmptools\n\t\techo \"     --\" >> tmptools\n\tfi\n\tif [[ $wpsc == 1 ]]; then\n\t\techo \"     \"$WPScan | cut -d \"-\" -f 1,2,3 >> tmptools\n\t\techo \"     --\" >> tmptools\n\tfi\n\tif [[ $xplsc == 1 ]]; then\n\t\techo \"     \"$XPL | cut -d \"-\" -f 1,2,3 >> tmptools\n\t\techo \"     --\" >> tmptools\n\tfi\n\tif [[ $jme == 1 ]]; then\n\t\techo \"     \"$JoomME | cut -d \"-\" -f 1,2,3 >> tmptools\n\t\techo \"     --\" >> tmptools\n\tfi\n\tif [[ $wme == 1 ]]; then\n\t\techo \"     \"$WordPressME | cut -d \"-\" -f 1,2,3 >> tmptools\n\t\techo \"     --\" >> tmptools\n\tfi\n\tif [[ $cef == 1 ]]; then\n\t\techo \"     \"$CMSEF | cut -d \"-\" -f 1,2,3 >> tmptools\n\t\techo \"     --\" >> tmptools\n\tfi\n\tif [[ $lcms == 1 ]]; then\n\t\techo \"     \"$Lotus | cut -d \"-\" -f 1,2,3 >> tmptools\n\t\techo \"     --\" >> tmptools\n\tfi\n\tif [[ $bmcms == 1 ]]; then\n\t\techo \"     \"$BadMod | cut -d \"-\" -f 1,2,3 >> tmptools\n\t\techo \"     --\" >> tmptools\n\tfi\n\tif [[ $moo == 1 ]]; then\n\t\techo \"     \"$MooScan | cut -d \"-\" -f 1,2,3 >> tmptools\n\t\techo \"     --\" >> tmptools\n\tfi\n\tif [[ $mob == 1 ]]; then\n\t\techo \"     \"$M0B | cut -d \"-\" -f 1,2,3 >> tmptools\n\t\techo \"     --\" >> tmptools\n\tfi\n\tif [[ $lmfi == 1 ]]; then\n\t\techo \"     \"$LetMeFuckIt | cut -d \"-\" -f 1,2,3 >> tmptools\n\t\techo \"     --\" >> tmptools\n\tfi\n\tif [[ $mcms == 1 ]]; then\n\t\techo \"     \"$magescan | cut -d \"-\" -f 1,2,3 >> tmptools\n\t\techo \"     --\" >> tmptools\n\tfi\n\tif [[ $pcms == 1 ]]; then\n\t\techo \"     \"$PRESTA | cut -d \"-\" -f 1,2,3 >> tmptools\n\t\techo \"     --\" >> tmptools\n\tfi\n\tif [[ $scms == 1 ]]; then\n\t\techo \"     \"$sc | cut -d \"-\" -f 1,2,3 >> tmptools\n\t\techo \"     --\" >> tmptools\n\tfi\n\tif [[ $ekcms == 1 ]]; then\n\t\techo \"     \"$ektrone | cut -d \"-\" -f 1,2,3 >> tmptools\n\t\techo \"     --\" >> tmptools\n\tfi\n\tif [[ $lrs == 1 ]]; then\n\t\techo \"     \"$LiferayScan | cut -d \"-\" -f 1,2,3 >> tmptools\n\t\techo \"     --\" >> tmptools\n\tfi\n\tif [[ $ifl == 1 ]]; then\n\t\techo \"     \"$InfoLeak | cut -d \"-\" -f 1,2,3 >> tmptools\n\t\techo \"     --\" >> tmptools\n\tfi\n\tif [[ $jlavs == 1 ]]; then\n\t\techo \"     \"$joomlavs | cut -d \"-\" -f 1,2,3 >> tmptools\n\t\techo \"     --\" >> tmptools\n\tfi\n\tif [[ $was == 1 ]]; then\n\t\techo \"     \"$WAScan | cut -d \"-\" -f 1,2,3 >> tmptools\n\t\techo \"     --\" >> tmptools\n\tfi\n\tif [[ $rhw == 1 ]]; then\n\t\techo \"     \"$RedHawk | cut -d \"-\" -f 1,2,3 >> tmptools\n\t\techo \"     --\" >> tmptools\n\tfi\n\tif [[ $hostsbf == 1 ]]; then\n\t\techo \"     \"$HostileSBF | cut -d \"-\" -f 1,2,3 >> tmptools\n\t\techo \"     --\" >> tmptools\n\tfi\n\tcolumn -t -s \"-\" tmptools\n\techo \"\"\n}\n\n#CMStoolsaskdown\ncmstoolsaskdown()\n{\n\techo \"-------------------------------------------------------------\"\n\techo \"\"\n\techo -e \" \\e[1m[-] Wanna use any tool in the table? [y/n]\\e[0m\"\n\tread -s checkyn\n}\n\n#cmstoolsgit\ncmstoolsgit()\n{\n\techo \"\"\n\tcat tmptools | cut -d \"-\" -f 1 | grep -v \"_\" > tmptools2\n\tsed -i -e \"1d;2d\" tmptools2\n\techo -e \" \\e[1m[-] Enter the tool ID\\e[0m:\"\n\tread -s -a id\n\tidver=$(echo ${id[@]} | grep -o \" \" | wc -l)\n\t#idver=$(echo $idver + 1 | bc)\n\n\t\n\t\n\twhile read line;\n\tdo\t\n\t\tcon=0\n\t\tcon2=0\n\t\twhile [[ $con -le $idver ]]\n\t\t\tdo\n\t\t\techo ${!line} | grep -w -c \"${id[$con2]}\" > tmpver\n\t\t\ttmpverr=$(cat tmpver)\n\t\t\t\n\t\t\t\tif [[  $tmpverr == \"1\" ]];then\n\t\t\t\t\techo ${!line} | cut -d \"-\" -f 4 > tmpgit\n\t\t\t\t\tgithub=$(cat tmpgit)\n\t\t\t\t\techo \"\"\n\t\t\t\t\tgit clone $github /root/cmstools/$line\n\t\t\t\t\techo \"\"\n\t\t\t\t\techo -e \" \\e[1;36m[+] Tool cloned in\\e[0m \\e[1;96m/root/cmstools/$line.\\e[0m\"\n\t\t\t\t\techo \"\"\n\t\t\t\t\t(( con2 += 1 ))\n\t\t\t\t\t(( con += 1 ))\n\t\t\t\telse\n\t\t\t\t\t(( con2 += 1 ))\n\t\t\t\t\t(( con += 1 ))\n\t\t\t\tfi\n\t\t\tdone\t\t\n\t\t\t\n\tdone < tmptools2\n}\n\n#Help function\nhelpf()\n{\n\t\n\tcoomandarray=(\"-h\" '-wh' '--tools' )\n\tmsgarray=('Display this help message' 'Check hosting details' 'Tools information')\n\tarray_size=3\n\techo \"\"\n\techo -e \" \\e[1m[+] Usage:\\e[0m \\e[3m./whatcms.sh example.com\\e[0m\"\n\techo \"\"\n\techo -e \" \\e[1m[+] Command list:\\e[0m\"\n\techo \"\"\n\n\tfor((i=0;i<array_size;i++))\n\tdo\n    \techo \"      \" ${coomandarray[$i]} $'\\x1d' ${msgarray[$i]}\n\tdone | column -t -s$'\\x1d'\n}\n\n#Toolspack function\ntoolspack()\n{\n\tcms=\"\"\n\tcmstools\n}\n\n#Tools info\nXBruteForcer=' XBruteForcer - 1 - Brute Force Tool - https://github.com/Moham3dRiahi/XBruteForcer - WordPress, Joomla, DruPal, OpenCart, Magento' \nCMSsc4n=' CMSsc4n - 2 - Identify Tool - https://github.com/n4xh4ck5/CMSsc4n - Wordpress, Moodle, Joomla, Drupal, Prestashop'\nCoMisSion=' CoMisSion - 3 - Analyze Tool - https://github.com/Intrinsec/comission - Wordpress, Drupal'\ndroopescan=' droopescan - 4 - Analyze Tool - https://github.com/droope/droopescan - Drupal, SilverStripe CMS, Wordpress, Joomla, Moodle'\nCMSmap=' CMSmap - 5 - Analyze Tool - https://github.com/Dionach/CMSmap - WordPress, Joomla, Drupal'\nJoomScan=' JoomScan - 6 - Analyze Tool - https://github.com/rezasp/joomscan - Joomla'\nbeecms=' beecms - 7 - Exploit Tool - https://github.com/CHYbeta/cmsPoc - beecms'\nDumb0=' Dumb0 - 8 - Username Scrapper Tool - https://github.com/0verl0ad/Dumb0/ - Simple Machines Forum, Invision, Xen, vBulletin, myBB, useBB, vanilla, bbPress, WordPress, SPIP, Drupal, Moodle, Beehive, fluxBB, FUDforum, punBB, AcmImBoard, Burning, Community, deluxeBB, fusionBB, JFORUM, Jibit, Jive, Near, OVBB, TikiWiki'\nVBScan=' VBScan - 9 - Analyze Tool - https://github.com/rezasp/vbscan - vBulletin'\nJoomlaScan=' JoomlaScan - 10 - Analyze Tool - https://github.com/drego85/JoomlaScan - Joomla'\nc5scan=' c5scan - 11 - Analyze Tool - https://github.com/auraltension/c5scan - Concrete5'\nT3scan=' T3scan - 12 - Analyze Tool - https://github.com/Oblady/T3Scan - TYPO3'\nPuppet=' Puppet - 13 - Identify Tool - https://github.com/Poil/puppet-websites-facts - Joomla, Drupal, Wordpress, PHPBB, Magento, EZPublish, Typo3, PhpMyAdmin, Mantis, SPIP'\nmoodlescan=' moodlescan - 14 - Analyze Tool - https://github.com/inc0d3/moodlescan - Moodle'\nSPIPScan=' SPIPScan - 15 - Analyze Tool - https://github.com/PaulSec/SPIPScan - SPIP'\nWPHunter=' WPHunter - 16 - Analyze Tool - https://github.com/aryanrtm/WP-Hunter - WordPress'\nWPSeku=' WPSeku - 17 - Analyze Tool - https://github.com/m4ll0k/WPSeku - WordPress'\nacdrupal=' ACDrupal - 18 - Analyze Tool - https://github.com/mrmtwoj/ac-drupal - Drupal'\nPlown=' Plown - 19 - Analyze Tool - https://github.com/unweb/plown - Plown'\npyfiscan=' pyfiscan - 20 - Identify Tool - https://github.com/fgeek/pyfiscan - ATutor, b2evolution, BigTree CMS, Bugzilla, Centreon, Claroline, ClipperCMS, CMSimple, CMSMS, Collabtive, Concrete5, Coppermine, Cotonti, Croogo, CubeCart, Dolibarr, Dotclear, Drupal, e107, EspoCRM, Etherpad, FluxBB, Foswiki, Gallery, Gollum, HelpDEZk, HumHub, ImpressCMS, ImpressPages, Jamroom, Joomla, Kanboard, KCFinder, LiteCart, Magnolia, Mahara, MantisBT, MediaWiki, Microweber, MiniBB, MODX Revolution, MoinMoin, MyBB, Nibbleblog, Open Source Social Network, OpenCart, osDate, ownCloud, Oxwall, PBBoard, phpBB3, PhpGedView, phpMyAdmin, Piwigo, Piwik, PmWiki, Postfix Admin, Redaxo, Roundcube, SaurusCMS, Serendipity, Shaarli, Simple Machines Forum, Spina CMS, SPIP, SquirrelMail, TestLink, TikiWiki, Trac, WikkaWiki, WordPress, X-Cart, Zenphoto, Zikula'\nconscan=' conscan - 21 - Analyze Tool - https://github.com/nullsecuritynet/tools/tree/master/scanner/conscan - Concrete5'\nCMSScanner=' CMSScanner - 22 - Analyze Tool - https://github.com/CMS-Garden/cmsscanner - Contao, CONTENIDO, Drupal, Joomla, TYPO3 CMS, WordPress, Prestashop, Alchemy CMS, PivotX, Concrete5'\ncmsexplorer=' cmsExplorer - 23 - Analyze Tool - https://code.google.com/archive/p/cms-explorer/ - Drupal, Wordpress, Joomla, Mambo'\nWPScan=' WPScan - 24 - Analyze Tool - https://github.com/wpscanteam/wpscan - WordPress'\nXPL=' CMSXPL - 25 - Exploit Tool - https://github.com/tanprathan/CMS-XPL - 230cms, Bloofox, WeBid, Wolf, Betoffice, Fly-High, Havalite, imacs, PhpTax'\nJoomME=' JMassExploiter - 26 - Exploit Tool - https://github.com/anarcoder/JoomlaMassExploiter - Joomla'\nWordPressME=' WPMassExploiter - 27 - Exploit Tool - https://github.com/anarcoder/WordPressMassExploiter - Wordpress'\nCMSEF=' CMSExpFram - 28 - Exploit Tool - https://github.com/Q2h1Cg/CMS-Exploit-Framework - Wordpress, ThinkPHP, Discuz, StartBBS, WaiKu, AllCMS'\nLotus=' LotusXploit - 29 - Exploit Tool - https://github.com/Hood3dRob1n/LotusCMS-Exploit - Lotus'\nBadMod=' BadMod - 30 - Exploit Tool - https://github.com/MrSqar-Ye/BadMod - Wordpress, Drupal, Joomla, MadeSimple'\nMooScan=' MooScan - 31 - Analyze Tool - https://github.com/vortexau/mooscan - Moodle'\nXAttacker=' XAttacker - 32 - Exploit Tool -\thttps://github.com/Moham3dRiahi/XAttacker - Wordpress, Joomla, Drupal, Lokomedia, Prestashop'\t\nM0B=' M0B - 33 - Exploit Tool - https://github.com/mobrine-mob/M0B-tool - Wordpress, Magento, Joomla, Drupal, OpenCart'\nLetMeFuckIt=' LetMeFuckIt - 34 - Exploit Tool - https://github.com/onthefrontline/LetMeFuckIt-Scanner - Magento'\nmagescan=' magescan - 35 - Exploit Tool - https://github.com/steverobbins/magescan - Magento'\nPRESTA=' PRESTA - 36 - Exploit Tool - https://github.com/AlisamTechnology/PRESTA-modules-shell-exploit - Prestashop'\nsc=' Scanners - 37 - Analyze Tool - https://github.com/b3o1/Scanners - Wordpress, Joomla'\nektrone=' EktronE - 38 - Exploit Tool - https://github.com/tomkallo/Ektron_CMS_8.02_exploit - Ektron'\nLiferayScan=' LiferayScan - 39 - Analyze Tool - https://github.com/bcoles/LiferayScan - Liferay'\nInfoLeak=' InfoLeak - 40 - Analyze Tool - https://github.com/SIWECOS/InfoLeak-Scanner - Drupal, Joomla, vbulletin, Veyton, Webspell, Wordpress, xt-commerce'\njoomlavs=' joomlavs - 41 - Analyze Tool - https://github.com/rastating/joomlavs - Joomla'\nWAScan=' WAScan - 42 - Analyze Tool - https://github.com/m4ll0k/WAScan - Drupal, SilverStripe CMS, Joomla, Magento, Wordpress, Plone'\nRedHawk=' RedHawk - 43 - Analyze Tool - https://github.com/Tuhinshubhra/RED_HAWK - Wordpress, Drupal, Joomla, Magento'\nHostileSBF=' HostileSBF - 44 - Analyze Tool - https://github.com/nahamsec/HostileSubBruteforcer - AWS, Github, Heroku, shopify, tumblr, squarespace'\n\n#-------------------------------------------------------------------------------------------------------------------------------\nbanner\napikeycheck\ndomaincheck $1\nif [[ -z $1 ]];then\n\thelpf\n\techo \"\"\n\ttrashdel\n\texit 0\nelse\n\tif [[ $verify != \"0\" ]];then\n\t\twhatcms $1\n\t\tif [[ $2 == \"-wh\" ]];then\n\t\t\tsleep 9\n\t\t\twhohost $1\n\t\tfi\n\t\tcmstoolsask\n\t\tcmstoolscheck\n\t\tcmstools\n\t\tcmstoolsaskdown\n\t\tcmstoolscheck\n\t\tcmstoolsgit\n\telse\n\t\tif [[ $1 != \"\" ]];then\n\t\t\tif [[ $1 == \"--tools\" ]];then\n\t\t\t\techo \"\"\n\t\t\t\ttoolspack\n\t\t\t\techo \"\"\n\t\t\t\texit 0\n\t\t\telif [[ $1 == \"--help\" ]] || [[ $1 == \"-h\" ]];then\n\t\t\t\thelpf\n\t\t\t\techo \"\"\n\t\t\t\texit 0\n\t\t\telif [[ $1 != \"--help\" ]] || [[ $1 != \"--tools\" ]] || [[ $1 != \"-h\" ]]; then\n\t\t\t\techo \"\"\n\t\t\t\techo -e \" \\e[38;5;196;1m[#] Invalid domain or parameter\\e[0m\"\n\t\t\t\techo \"\"\n\t\t\telse\n\t\t\t\techo \"\"\n\t\t\t\ttrashdel\n\t\t\t\texit 0\n\t\t\tfi\n\t\tfi\n\tfi\nfi\n\ntrashdel\nexit 0\n"
  }
]