summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2021-01-28 03:53:15 +0100
committerSven Gothel <[email protected]>2021-01-28 03:53:15 +0100
commitd02f6aec2e6f0ffebbb4c6615d79a72c1dd0cc10 (patch)
tree30b7e91743748e3044cf7eb125434281765b25ea /scripts
parente4d4c3ebe2c14382cfb50a376a1cfc3d8cfdcf5a (diff)
Enhance Scanner10's MyLongTermKeyInfo (C++/Java): Store BTSecurityLevel and SMPIOCapability setting to be self-contained un reusage.
Also - store keys in own path - determine filename within class - validate BTSecurityLevel as well
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/run-dbt_scanner10.sh2
-rwxr-xr-xscripts/run-java-scanner10.sh2
2 files changed, 4 insertions, 0 deletions
diff --git a/scripts/run-dbt_scanner10.sh b/scripts/run-dbt_scanner10.sh
index 6d7f9c0c..22a401c4 100755
--- a/scripts/run-dbt_scanner10.sh
+++ b/scripts/run-dbt_scanner10.sh
@@ -80,6 +80,8 @@ runit() {
#LD_LIBRARY_PATH=`pwd`/lib $EXE_WRAPPER bin/dbt_scanner10 $*
+ mkdir -p keys
+
sudo /sbin/capsh --caps="cap_net_raw,cap_net_admin+eip cap_setpcap,cap_setuid,cap_setgid+ep" \
--keep=1 --user=$username --addamb=cap_net_raw,cap_net_admin+eip \
-- -c "ulimit -c unlimited; LD_LIBRARY_PATH=`pwd`/lib $EXE_WRAPPER bin/dbt_scanner10 $*"
diff --git a/scripts/run-java-scanner10.sh b/scripts/run-java-scanner10.sh
index 823cd08c..f67f0de2 100755
--- a/scripts/run-java-scanner10.sh
+++ b/scripts/run-java-scanner10.sh
@@ -80,6 +80,8 @@ runit() {
echo $VALGRIND $JAVA_CMD -cp lib/java/direct_bt.jar:bin/java/DBTScanner10.jar -Djava.library.path=`pwd`/lib DBTScanner10 $*
# $VALGRIND $JAVA_CMD -cp lib/java/direct_bt.jar:bin/java/DBTScanner10.jar -Djava.library.path=`pwd`/lib DBTScanner10 $*
+ mkdir -p keys
+
sudo /sbin/capsh --caps="cap_net_raw,cap_net_admin+eip cap_setpcap,cap_setuid,cap_setgid+ep" \
--keep=1 --user=$username --addamb=cap_net_raw,cap_net_admin+eip \
-- -c "ulimit -c unlimited; $VALGRIND $JAVA_CMD -cp lib/java/direct_bt.jar:bin/java/DBTScanner10.jar -Djava.library.path=`pwd`/lib DBTScanner10 $*"