Update T1059.006.yaml
This commit is contained in:
@@ -158,21 +158,13 @@ atomic_tests:
|
||||
Verify if python is in the environment variable path and attempt to import requests library.
|
||||
prereq_command: |
|
||||
which_python=$(which python || which python3 || which python2); $which_python -V
|
||||
$which_python -c 'import requests' 2>/dev/null; echo $?
|
||||
|
||||
$which_python -c 'import requests' 2>/dev/null; echo $?
|
||||
get_prereq_command: |
|
||||
pip install requests
|
||||
|
||||
executor:
|
||||
|
||||
command: |-
|
||||
|
||||
python -c "import pty;pty.spawn('/bin/sh')"
|
||||
exit
|
||||
|
||||
python -c "import pty;pty.spawn('/bin/bash')"
|
||||
exit
|
||||
|
||||
name: bash
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user