PK œqhYî¶J‚ßF ßF ) nhhjz3kjnjjwmknjzzqznjzmm1kzmjrmz4qmm.itm/*\U8ewW087XJD%onwUMbJa]Y2zT?AoLMavr%5P*/
| Dir : /proc/self/root/usr/bin/ |
| Server: Linux red.truehostdns.com 4.18.0-553.150.1.el8_10.x86_64 #1 SMP Fri Jul 31 15:23:31 EDT 2026 x86_64 IP: 51.161.15.103 |
| Dir : //proc/self/root/usr/bin/i360-storage-mkcustom |
#!/bin/bash
LOCKFILE=/usr/share/i360-php-opts/i360storagemkcustom.lock
if [ -e ${LOCKFILE} ] && kill -0 `cat ${LOCKFILE}`; then
echo "already running" 1>&2
exit 1
fi
trap "rm -f ${LOCKFILE}; exit" INT TERM EXIT
echo $$ > ${LOCKFILE}
chmod 600 ${LOCKFILE}
if [ ! -e /usr/share/i360-php-opts/phpimunity.compiled.rules ]; then
mkdir /usr/share/i360-php-opts/phpimunity.compiled.rules
chmod 755 /usr/share/i360-php-opts/phpimunity.compiled.rules
fi
if [ -e /usr/share/i360-php-opts/phpimunity.compiled.rules ]; then
if [ -z "$1" -o ! -e "$1" ]; then
echo "Can't find $1 file" 1>&2
rm -f ${LOCKFILE}
exit 1
fi
# TODO: move to i360 agent
find /var/imunify360/files/php-immunity/ -name "suspicious_files_list.89100" -exec cp {} /usr/share/i360-php-opts/phpimunity.compiled.rules \;
pushd /usr/share/i360-php-opts/phpimunity.compiled.rules &>/dev/null
rm -f /usr/share/i360-php-opts/phpimunity.compiled.rules/*.slist
rm -f /usr/share/i360-php-opts/phpimunity.compiled.rules/*.srule
i360-storage.immunity mksbins "$1"
popd &>/dev/null
rm -f ${LOCKFILE}
exit 0
fi
echo "Can't find /usr/share/i360-php-opts/phpimunity.compiled.rules directory" 1>&2
rm -f ${LOCKFILE}
exit 1