byt3bl33d3r / CrackMapExec

A swiss army knife for pentesting networks
BSD 2-Clause "Simplified" License
8.35k stars 1.64k forks source link

Add --success-only and --no-error option to cme in order to reduce log output and more #730

Closed NeffIsBack closed 1 year ago

NeffIsBack commented 1 year ago

"success-only" option

Implemented an option --success-only, that suppresses every log message except loglevel SUCCESS and HIGHLIGHT, latter to still be able to dump credentials via --lsa and --sam.

This implementation is based on the idea from #691 and should reduce the amount of logs when working in large environments.

Example: image

"no-error" option

Also added option --no-error to also let info log messages through the filter. Helpful if you want to scan large domains and just want to surpress failed logins.

Example: image

Improve Exception handling

When exceptions occur there will be now a "critical" log message to improve visibility where the exception occurred. This should drastically improve the visibility where exception occurre while scanning large target ranges.

Example: cme_exception_handling

Bug fixes:

mpgn commented 1 year ago

Hello @NeffIsBack can you also add the info (blue) log ?

NeffIsBack commented 1 year ago

Closing as obsolete now