From 7dc26f19055f66efc1b059d39d46008c3f0dd20d Mon Sep 17 00:00:00 2001 From: Louis Burda Date: Mon, 10 May 2021 18:08:29 +0200 Subject: fixed hash parsing from info file and only query non-hidden dirs in standard user mode --- service/src/test.sh | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) (limited to 'service/src/test.sh') diff --git a/service/src/test.sh b/service/src/test.sh index 57c7ca7..579c3a4 100644 --- a/service/src/test.sh +++ b/service/src/test.sh @@ -49,24 +49,32 @@ elif [ "$1" == "poc" ]; then rm -rf scans/* + echo -e "\n--- Uploading target STL ---\n" 1>&2 + ( + echo "submit" + cat tests/sample-ascii.stl | wc -c + cat tests/sample-ascii.stl + ) | ./printdoc + echo -e "\n--- Uploading evil STL ---\n" 1>&2 ( echo "submit" cat tests/evil1.stl | wc -c cat tests/evil1.stl - echo "AAAA" + echo -e "AAAA\xff" ) | ./printdoc echo -e "\n--- Testing Exploit ---\n" 1>&2 ( echo "query" - echo "AAAA" + echo -e "AAAA\xff" echo "0" echo "n" echo "query" - ) | ./printdoc + echo "1" + ) | checkleaks else ( -- cgit v1.2.3-71-gd317