aboutsummaryrefslogtreecommitdiffstats
path: root/service
diff options
context:
space:
mode:
authorLouis Burda <quent.burda@gmail.com>2021-05-17 23:26:52 +0200
committerLouis Burda <quent.burda@gmail.com>2021-05-17 23:26:52 +0200
commitdafdcc3547ec786fac85486cbb77909fffe1a4de (patch)
tree775770a35eea486ccee3e4318cd45b86e771bbdb /service
parent130fc6d97bce96bc042bdaa6329b82d00f6316d5 (diff)
downloadenowars5-service-stldoctor-dafdcc3547ec786fac85486cbb77909fffe1a4de.tar.gz
enowars5-service-stldoctor-dafdcc3547ec786fac85486cbb77909fffe1a4de.zip
added basic checker flag and noise commands, still very basic, needs randomization and havoc
Diffstat (limited to 'service')
-rwxr-xr-xservice/entrypoint.sh2
-rwxr-xr-xservice/src/stldoctorbin46736 -> 46480 bytes
-rw-r--r--service/src/test.sh6
3 files changed, 4 insertions, 4 deletions
diff --git a/service/entrypoint.sh b/service/entrypoint.sh
index 4db5fc3..956c747 100755
--- a/service/entrypoint.sh
+++ b/service/entrypoint.sh
@@ -9,6 +9,6 @@ while [ 1 ]; do
sleep 180
done &
-servicecmd='socat -T30 -s TCP-LISTEN:9000,reuseaddr,fork EXEC:"/service/printdoc",raw,pty,echo=0,stderr'
+servicecmd='socat -T30 -s TCP-LISTEN:9000,reuseaddr,fork EXEC:"/service/stldoctor",raw,pty,echo=0,stderr'
su -s /bin/sh -c "$servicecmd" service
diff --git a/service/src/stldoctor b/service/src/stldoctor
index 6038d97..bf96373 100755
--- a/service/src/stldoctor
+++ b/service/src/stldoctor
Binary files differ
diff --git a/service/src/test.sh b/service/src/test.sh
index f8e7196..c9e5af3 100644
--- a/service/src/test.sh
+++ b/service/src/test.sh
@@ -2,7 +2,7 @@
set -e
-RUN_REMOTE=1
+# RUN_REMOTE=1
export RESULTDIR="../data/scans"
export ECHO_INPUT=1
@@ -22,7 +22,7 @@ print()
}
checkleaks() {
- valgrind --leak-check=full ./printdoc 2>&1 | tee /tmp/testlog
+ valgrind --leak-check=full ./stldoctor 2>&1 | tee /tmp/testlog
if [ -z "$(grep "no leaks are possible" /tmp/testlog)" ]; then
echo "Valgrind exited with errors!"
exit 1
@@ -33,7 +33,7 @@ connect() {
if [ $RUN_REMOTE ]; then
nc localhost 9000
else
- ./printdoc
+ ./stldoctor
fi
}