/usr/share/doc/trinity/examples/test-multi.sh is in trinity 1.6-2.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 | #!/bin/bash
. scripts/paths.sh
. scripts/privs.sh
. scripts/taint.sh
cd $TRINITY_TMP
NR_CPUS=$(nproc)
NR_PROCESSES=$(($NR_CPUS * 2))
while [ 1 ];
do
rm -f trinity
cp $TRINITY_PATH/trinity .
chmod -w trinity
if [ -d tmp ]; then
chmod 755 tmp
rm -rf tmp
fi
mkdir -p tmp
pushd tmp > /dev/null
rm -f trinity.socketcache
MALLOC_CHECK_=2 ../trinity -q -l off -C $NR_PROCESSES $DROPPRIVS -N 1000000
chmod 755 $TRINITY_TMP
popd > /dev/null
check_tainted
done
|