Skip to content

Commit

Permalink
✨ Added --light-scan argument ( issue #99 )
Browse files Browse the repository at this point in the history
  • Loading branch information
Tuhinshubhra committed May 14, 2020
1 parent 775129e commit f48db76
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ Version 1.1.3 []
- improved logging for joomla scans
- improved logging for WordPress deep scan
- Switched to wpvulns.com for wordpress vulnerabilities
- Added `--light-scan` argument

Version 1.1.2 [19-05-2019]
- Added new CMS:
Expand Down
5 changes: 5 additions & 0 deletions cmseek.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
parser.add_argument('-i', '--ignore-cms')
parser.add_argument('--strict-cms')
parser.add_argument('--skip-scanned', action="store_true")
parser.add_argument('--light-scan', action="store_true")
args = parser.parse_args()

if args.clear_result:
Expand All @@ -45,6 +46,10 @@
if args.help:
cmseek.help()

if args.light_scan:
# Suggestion #99
cmseek.light_scan = True

if args.verbose:
cmseek.verbose = True

Expand Down
3 changes: 3 additions & 0 deletions cmseekdb/basic.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
strict_cms = [] # add cms ids that you want to detect.. no other cmses will be detected when any id is provided.
report_index = {} # Contains previous scan results
skip_scanned = False # When set to true CMSeeK witll ignore target whose CMS had been previously detected!
light_scan = False # When enabled, we don't perform deep-scan.

# all the color codes goes here
white = "\033[97m"
Expand Down Expand Up @@ -120,6 +121,8 @@ def help():
--skip-scanned Skips target if it's CMS was previously detected.
--light-scan Skips Deep Scan. Does CMS and version detection only.
RE-DIRECT:
--follow-redirect Follows all/any redirect(s)
--no-redirect Skips all redirects and tests the input target(s)
Expand Down
2 changes: 1 addition & 1 deletion cmseekdb/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ def main_proc(site,cua):
cmseek.update_log('cms_id', cms) # update log
cmseek.statement('Getting CMS info from database') # freaking typo
cms_info = getattr(cmsdb, cms)
if cms_info['deeps'] == '1':
if cms_info['deeps'] == '1' and not cmseek.light_scan:
# cmseek.success('Starting ' + cmseek.bold + cms_info['name'] + ' deep scan' + cmseek.cln)
advanced.start(cms, site, cua, ga, scode, ga_content, detection_method, headers)
return
Expand Down

0 comments on commit f48db76

Please sign in to comment.