mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 17:22:49 +01:00
Merge pull request #4635 from Security-Onion-Solutions/kilo
This commit is contained in:
@@ -132,6 +132,8 @@ for PCAP in "$@"; do
|
|||||||
PCAP_FIXED=`mktemp /tmp/so-import-pcap-XXXXXXXXXX.pcap`
|
PCAP_FIXED=`mktemp /tmp/so-import-pcap-XXXXXXXXXX.pcap`
|
||||||
echo "- attempting to recover corrupted PCAP file"
|
echo "- attempting to recover corrupted PCAP file"
|
||||||
pcapfix "${PCAP}" "${PCAP_FIXED}"
|
pcapfix "${PCAP}" "${PCAP_FIXED}"
|
||||||
|
# Make fixed file world readable since the Suricata docker container will runas a non-root user
|
||||||
|
chmod a+r "${PCAP_FIXED}"
|
||||||
PCAP="${PCAP_FIXED}"
|
PCAP="${PCAP_FIXED}"
|
||||||
TEMP_PCAPS+=(${PCAP_FIXED})
|
TEMP_PCAPS+=(${PCAP_FIXED})
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user