Skip to content

Commit

Permalink
Fix some mistake in T1560.002 and T1016.001 (#3056)
Browse files Browse the repository at this point in the history
Co-authored-by: Bhavin Patel <bhavin.j.patel91@gmail.com>
  • Loading branch information
you8023 and patel-bhavin authored Feb 25, 2025
1 parent c313a5a commit b9e0de4
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion atomics/T1016.001/T1016.001.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ Check internet connection using ping on Linux, MACOS. The default target of the


```bash
ping -n 4 #{ping_target}
ping -c 4 #{ping_target}
```


Expand Down
2 changes: 1 addition & 1 deletion atomics/T1016.001/T1016.001.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ atomic_tests:
name: bash
elevation_required: false
command: |
ping -n 4 #{ping_target}
ping -c 4 #{ping_target}
- name: Check internet connection using Test-NetConnection in PowerShell (ICMP-Ping)
auto_generated_guid: f8160cde-4e16-4c8b-8450-6042d5363eb0
description: |
Expand Down
2 changes: 1 addition & 1 deletion atomics/T1560.002/T1560.002.md
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ Uses tarfile from Python to compress files

```sh
which_python=`which python || which python3`
$which_python -c "from zipfile import ZipFile; ZipFile('#{path_to_output_file}', mode='w').write('#{path_to_input_file}')"
$which_python -c "import tarfile; output_file = tarfile.open('#{path_to_output_file}','w'); output_file.add('#{path_to_input_file}'); output_file.close()"
```

#### Cleanup Commands:
Expand Down
2 changes: 1 addition & 1 deletion atomics/T1560.002/T1560.002.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,6 @@ atomic_tests:
elevation_required: false
command: |
which_python=`which python || which python3`
$which_python -c "from zipfile import ZipFile; ZipFile('#{path_to_output_file}', mode='w').write('#{path_to_input_file}')"
$which_python -c "import tarfile; output_file = tarfile.open('#{path_to_output_file}','w'); output_file.add('#{path_to_input_file}'); output_file.close()"
cleanup_command: |
rm #{path_to_output_file}

0 comments on commit b9e0de4

Please sign in to comment.