diff options
Diffstat (limited to 'service/src/test.sh')
| -rw-r--r-- | service/src/test.sh | 14 |
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 ( |
