diff --git a/atomics/Indexes/index.yaml b/atomics/Indexes/index.yaml index 0b44d7d1..28f100d8 100644 --- a/atomics/Indexes/index.yaml +++ b/atomics/Indexes/index.yaml @@ -84097,9 +84097,9 @@ collection: executor: name: sh elevation_required: false - command: "which_python=`which python || which python3`\n$which_python -c \"from - zipfile import ZipFile; ZipFile('#{path_to_output_file}', mode='w').write('#{path_to_input_file}')\" - \n" + command: "which_python=`which python || which python3`\n$which_python -c \"import + tarfile; output_file = tarfile.open('#{path_to_output_file}','w'); output_file.add('#{path_to_input_file}'); + output_file.close()\" \n" cleanup_command: 'rm #{path_to_output_file} ' @@ -100579,7 +100579,7 @@ discovery: executor: name: bash elevation_required: false - command: 'ping -n 4 #{ping_target} + command: 'ping -c 4 #{ping_target} ' - name: Check internet connection using Test-NetConnection in PowerShell (ICMP-Ping) diff --git a/atomics/Indexes/linux-index.yaml b/atomics/Indexes/linux-index.yaml index 0e5ac45d..d1490893 100644 --- a/atomics/Indexes/linux-index.yaml +++ b/atomics/Indexes/linux-index.yaml @@ -49054,9 +49054,9 @@ collection: executor: name: sh elevation_required: false - command: "which_python=`which python || which python3`\n$which_python -c \"from - zipfile import ZipFile; ZipFile('#{path_to_output_file}', mode='w').write('#{path_to_input_file}')\" - \n" + command: "which_python=`which python || which python3`\n$which_python -c \"import + tarfile; output_file = tarfile.open('#{path_to_output_file}','w'); output_file.add('#{path_to_input_file}'); + output_file.close()\" \n" cleanup_command: 'rm #{path_to_output_file} ' @@ -59331,7 +59331,7 @@ discovery: executor: name: bash elevation_required: false - command: 'ping -n 4 #{ping_target} + command: 'ping -c 4 #{ping_target} ' T1069: diff --git a/atomics/Indexes/macos-index.yaml b/atomics/Indexes/macos-index.yaml index fc2078c8..77e72640 100644 --- a/atomics/Indexes/macos-index.yaml +++ b/atomics/Indexes/macos-index.yaml @@ -54982,7 +54982,7 @@ discovery: executor: name: bash elevation_required: false - command: 'ping -n 4 #{ping_target} + command: 'ping -c 4 #{ping_target} ' T1069: