Mister Spy Say ="Hello Kids ... :D" ___ ____ _ _____ | \/ (_) | | / ___| | . . |_ ___| |_ ___ _ __ \ `--. _ __ _ _ | |\/| | / __| __/ _ \ '__| `--. \ '_ \| | | | | | | | \__ \ || __/ | /\__/ / |_) | |_| | \_| |_/_|___/\__\___|_| \____/| .__/ \__, | | | __/ | |_| |___/ Bot Mister Spy V3
Mister Spy

Mister Spy

Current Path : /bin/
Upload File :
Current File : //bin/cl-linksafe-apply-group

#!/usr/bin/bash
# Created: Sergey Fokin <sfokin@cloudlinux.com>
# Date: 05.06.2022

_linksafe_grp=linksafe

if [ -n "$1" ]; then
    if [ -f /etc/cloudlinux-edition-solo ] || [ -f /etc/cloudlinux-container ]; then
        _linksafe_grp=root
    fi
    if [ -x /usr/bin/apt ]; then
        listFiles=$(dpkg -L $1)
    elif [ -x /usr/bin/yum ]; then
        listFiles=$(rpm -ql $1)
    fi
    for _f in ${listFiles}; do
        if [[ ${_f} =~ "/opt/alt/" ]]; then
            chown -h root:${_linksafe_grp} ${_f} 1>/dev/null 2>/dev/null
        fi
    done
fi

Mr. DellatioNx196 GaLers xh3LL Backd00r 1.0, Coded By Mr. DellatioNx196 - Bogor BlackHat