ShellBanner
System:Linux MiraNet 3.0.0-14-generic-pae #23-Ubuntu SMP Mon Nov 21 22:07:10 UTC 2011 i686
Software:Apache. PHP/5.3.6-13ubuntu3.10
ID:uid=65534(nobody) gid=65534(nogroup) groups=65534(nogroup)
Safe Mode:OFF
Open_Basedir:OFF
Freespace:19.59 GB of 70.42 GB (27.82%)
MySQL: ON MSSQL: OFF Oracle: OFF PostgreSQL: OFF Curl: OFF Sockets: ON Fetch: OFF Wget: ON Perl: ON
Disabled Functions: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,

/ distr/ Shinobi/ plugins/ openalpr/ - drwxr-xr-x

Directory:
Viewing file:     INSTALL.sh (2.17 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
DIR=`dirname $0`
INSTALLERS_DIR="$DIR/../../INSTALL"
if ! [ -x "$(command -v dos2unix)" ]; then
    echo "-----------------------------------"
    echo "Installing dos2unix"
    apt install dos2unix -y
fi
echo "-----------------------------------"
if ! [ -x "$(command -v alpr)" ]; then
    echo "Installing OpenALPR"
    echo "Do you want to Install OpenALPR with CUDA enabled?"
    echo "(Y)es or (n)o?"
    echo "Press [ENTER] for default (Yes)"
    read openalprcudaenabled
    if [ "$openalprcudaenabled" = "n" ] || [ "$openalprcudaenabled" = "N" ]; then
        sed -i -e 's/detector = lbpgpu/detector = lbpcpu/g' "$DIR/openalpr.conf"
        dos2unix $INSTALLERS_DIR/openalpr-cpu-easy.sh
        sh $INSTALLERS_DIR/openalpr-cpu-easy.sh
    else
        sed -i -e 's/detector = lbpcpu/detector = lbpgpu/g' "$DIR/openalpr.conf"
        dos2unix $INSTALLERS_DIR/openalpr-gpu-easy.sh
        sh $INSTALLERS_DIR/openalpr-gpu-easy.sh
    fi
else
    echo "OpenALPR found... : $(alpr --version)"
fi
echo "-----------------------------------"
if [ ! -e "$DIR/conf.json" ]; then
    echo "Creating conf.json"
    cp $DIR/conf.sample.json $DIR/conf.json
else
    echo "conf.json already exists..."
fi
echo "-----------------------------------"
echo "Adding Random Plugin Key to Main Configuration"

node $DIR/../../tools/modifyConfigurationForPlugin.js openalpr key=$(head -c 64 < /dev/urandom | sha256sum | awk '{print substr($1,1,60)}')
echo "-----------------------------------"
echo "Installing Modules.."
apt install node-pre-gyp -y
npm install nopt npmlog rimraf semver -g
npm install
npm uninstall nopt npmlog rimraf semver -g
echo "Finding and Fixing Module Vulnerabilities.."
# npm audit fix --force
echo "Shinobi - Do you want to start the plugin?"
echo "(Y)es or (n)o?"
echo "Press [ENTER] for default (Yes)"
read startplugin
if [ "$startplugin" = "n" ] || [ "$startplugin" = "N" ]; then
    echo "-----------------------------------"
    echo "Start the plugin with pm2 like so :"
    echo "pm2 start $DIR/shinobi-openalpr.js"
    echo "-----------------------------------"
    echo "Start the plugin without pm2 :"
    echo "node $DIR/shinobi-openalpr.js"
else
    pm2 start shinobi-openalpr.js
    pm2 save
fi
Command:
Quick Commands:
Upload:
[Read-Only] Max size: 100MB
PHP Filesystem: <@ Ú
Search File:
regexp
Create File:
Overwrite [Read-Only]
View File:
Mass Defacement:
[+] Main Directory: [+] Defacement Url:
LmfaoX Shell - Private Build [BETA] - v0.1 -; Generated: 0.29 seconds