aboutsummaryrefslogtreecommitdiffstats
path: root/service/src/test.sh
diff options
context:
space:
mode:
authorLouis Burda <quent.burda@gmail.com>2021-05-10 18:08:29 +0200
committerLouis Burda <quent.burda@gmail.com>2021-05-10 18:08:29 +0200
commit7dc26f19055f66efc1b059d39d46008c3f0dd20d (patch)
treebc21f3ad9b766e18f24d818642f1a0fa8698cf80 /service/src/test.sh
parent1490268ea6ae75e5e9b78861c56dc9b04db903f3 (diff)
downloadenowars5-service-stldoctor-7dc26f19055f66efc1b059d39d46008c3f0dd20d.tar.gz
enowars5-service-stldoctor-7dc26f19055f66efc1b059d39d46008c3f0dd20d.zip
fixed hash parsing from info file and only query non-hidden dirs in standard user mode
Diffstat (limited to 'service/src/test.sh')
-rw-r--r--service/src/test.sh14
1 files changed, 11 insertions, 3 deletions
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
(