Skip to content

Commit

Permalink
Merge pull request #49 from cisagov/improvement/remove-regex
Browse files Browse the repository at this point in the history
Remove extended-regex option from grep in `ioc_scan_by_host.sh`
  • Loading branch information
dav3r committed Jul 13, 2023
2 parents 14d9121 + 94711b7 commit eeb975c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion extras/ioc_scan_by_host.sh
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ for instance_id in "${instances[@]}"; do
# from sudo.log) that contain our grep command (e.g. sudo.log).
aws ssm start-session --target="$instance_id" \
--document=AWS-StartInteractiveCommand \
--parameters="command='for i in ${iocList[*]}; do sudo find /var/log -type f -not -name \*\.journal -exec grep --ignore-case --recursive --extended-regexp \$i {} \; | grep --invert-match -- --ignore-case\ --recursive\ --extended-regexp | echo \$(wc --lines) found for \$i; done'"
--parameters="command='for i in ${iocList[*]}; do sudo find /var/log -type f -not -name \*\.journal -exec grep --ignore-case --recursive \$i {} \; | grep --invert-match -- --ignore-case\ --recursive\ | echo \$(wc --lines) found for \$i; done'"

echo Search of "$instance_id" is complete.
done
2 changes: 1 addition & 1 deletion src/ioc_scan/_version.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
"""This file defines the version of this module."""
__version__ = "1.5.1"
__version__ = "1.5.2"

0 comments on commit eeb975c

Please sign in to comment.