mirror of
https://github.com/socfortress/Wazuh-Rules.git
synced 2025-12-22 10:57:12 +00:00
Create crowdstrike.sh
This commit is contained in:
11
Crowdstrike/crowdstrike.sh
Normal file
11
Crowdstrike/crowdstrike.sh
Normal file
@@ -0,0 +1,11 @@
|
||||
#!/bin/bash
|
||||
results_file=/tmp/crowdstrike.json
|
||||
current_file=/tmp/crowdstrike_run.json
|
||||
output_file=/tmp/crowdstrike_results.json
|
||||
compare_file=/tmp/crowdstrike_compare.json
|
||||
/usr/bin/cat /var/log/crowdstrike/falconhoseclient/output | /usr/bin/jq -c '.' > $current_file
|
||||
|
||||
/usr/bin/diff -u $compare_file $current_file > /tmp/results.patch
|
||||
/usr/bin/patch $results_file /tmp/results.patch
|
||||
|
||||
/usr/bin/mv $current_file $compare_file
|
||||
Reference in New Issue
Block a user