This file is indexed.

/usr/share/nginx-naxsi/naxsi-ui/unit_test/run_ut.sh is in nginx-naxsi-ui 1.4.6-1ubuntu3.

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
#!/bin/bash


for i in `ls 0* | grep -v .conf | grep -v .results` ; do 
    PY=$i; 
    echo "$i"
    python ../nx_intercept.py -c $PY".conf"  -l $PY 2>&1 > /dev/null;
    python ../nx_extract.py $PY".conf" 2>&1 > /dev/null &
    extract=$!
    echo "pid is $extract"
#    ps aux | grep nx_extract
    sleep 1;
    echo `wget --quiet --no-check-certificate --no-proxy --user=naxsi_web --password=test 127.0.0.1:8081/get_rules -O - | grep -v "^#"` > $PY".results.tmp"
    echo `wget --quiet --no-check-certificate --no-proxy --user=naxsi_web --password=test 127.0.0.1:8081/get_rules -O - | grep -v "^#"` | diff $PY".results" -
    if [ "$?" != "0" ] ; then
	kill -9 $extract 2>&1 > /dev/null
	echo "fail on $PY";
	exit;
    else
	kill -9 $extract 2>&1 > /dev/null
	echo "success on $PY";
    fi
done
rm naxsi_sig*
rm 0*.tmp