Skip to content

Commit

Permalink
Remove --extended-regexp
Browse files Browse the repository at this point in the history
See #49
  • Loading branch information
bra1ncramp committed Nov 1, 2023
1 parent 2bd2f65 commit dd23d10
Showing 1 changed file with 1 addition and 1 deletion.
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='hostname; for i in ${iocList[*]}; do sudo find /var/log -type f -not -name \*\.journal -exec zgrep --ignore-case --extended-regexp \$i {} \; | grep --invert-match -- --ignore-case\ --recursive\ --extended-regexp\ | echo \$(wc --lines) found for \$i; done'"
--parameters="command='hostname; for i in ${iocList[*]}; do sudo find /var/log -type f -not -name \*\.journal -exec zgrep --ignore-case \$i {} \; | grep --invert-match -- --ignore-case\ --recursive\ | echo \$(wc --lines) found for \$i; done'"

echo Search of "$instance_id" is complete.
done

0 comments on commit dd23d10

Please sign in to comment.