OXIESEC PANEL
- Current Dir:
/
/
usr
/
lib
/
byobu
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
π
..
-
10/28/2024 06:50:42 AM
rwxr-xr-x
π
apport
1.51 KB
12/04/2017 01:46:48 PM
rwxr-xr-x
π
arch
916 bytes
12/04/2017 01:46:48 PM
rwxr-xr-x
π
battery
4.1 KB
12/04/2017 01:46:48 PM
rwxr-xr-x
π
color
1.04 KB
12/04/2017 01:46:48 PM
rwxr-xr-x
π
cpu_count
1.03 KB
12/04/2017 01:46:48 PM
rwxr-xr-x
π
cpu_freq
1.84 KB
12/04/2017 01:46:48 PM
rwxr-xr-x
π
cpu_temp
1.79 KB
12/04/2017 01:46:48 PM
rwxr-xr-x
π
custom
1.88 KB
12/04/2017 01:46:48 PM
rwxr-xr-x
π
date
990 bytes
12/04/2017 01:46:48 PM
rwxr-xr-x
π
disk
1.8 KB
12/04/2017 01:46:48 PM
rwxr-xr-x
π
disk_io
2.92 KB
12/04/2017 01:46:48 PM
rwxr-xr-x
π
distro
1.04 KB
12/04/2017 01:46:48 PM
rwxr-xr-x
π
ec2_cost
4.21 KB
12/04/2017 01:46:48 PM
rwxr-xr-x
π
entropy
1.06 KB
12/04/2017 01:46:48 PM
rwxr-xr-x
π
fan_speed
1.85 KB
12/04/2017 01:46:48 PM
rwxr-xr-x
π
hostname
1.3 KB
12/04/2017 01:46:48 PM
rwxr-xr-x
π
include
-
11/12/2024 10:20:16 AM
rwxr-xr-x
π
ip_address
3.02 KB
12/04/2017 01:46:48 PM
rwxr-xr-x
π
load_average
1.1 KB
12/04/2017 01:46:48 PM
rwxr-xr-x
π
logo
3.92 KB
12/04/2017 01:46:48 PM
rwxr-xr-x
π
mail
1.31 KB
12/04/2017 01:46:48 PM
rwxr-xr-x
π
memory
2.61 KB
12/04/2017 01:46:48 PM
rwxr-xr-x
π
menu
1.61 KB
12/04/2017 01:46:48 PM
rwxr-xr-x
π
network
3.1 KB
12/04/2017 01:46:48 PM
rwxr-xr-x
π
processes
1.13 KB
12/04/2017 01:46:48 PM
rwxr-xr-x
π
raid
1.4 KB
12/04/2017 01:46:48 PM
rwxr-xr-x
π
rcs_cost
3.55 KB
12/04/2017 01:46:48 PM
rwxr-xr-x
π
reboot_required
2.15 KB
12/04/2017 01:46:48 PM
rwxr-xr-x
π
release
1.83 KB
12/04/2017 01:46:48 PM
rwxr-xr-x
π
services
2.08 KB
12/04/2017 01:46:48 PM
rwxr-xr-x
π
session
1.28 KB
12/04/2017 01:46:48 PM
rwxr-xr-x
π
swap
1.75 KB
12/04/2017 01:46:48 PM
rwxr-xr-x
π
time
1.06 KB
12/04/2017 01:46:48 PM
rwxr-xr-x
π
time_binary
4.18 KB
12/04/2017 01:46:48 PM
rwxr-xr-x
π
time_utc
960 bytes
12/04/2017 01:46:48 PM
rwxr-xr-x
π
trash
1.13 KB
12/04/2017 01:46:48 PM
rwxr-xr-x
π
updates_available
5.03 KB
12/04/2017 01:46:48 PM
rwxr-xr-x
π
uptime
1.64 KB
12/04/2017 01:46:48 PM
rwxr-xr-x
π
users
1.51 KB
12/04/2017 01:46:48 PM
rwxr-xr-x
π
whoami
959 bytes
12/04/2017 01:46:48 PM
rwxr-xr-x
π
wifi_quality
1.85 KB
12/04/2017 01:46:48 PM
rwxr-xr-x
Editing: users
Close
#!/bin/sh -e # # users: print the number of remote users on the machine # # Copyright (C) 2009 RaphaΓ«l Pinson. # Copyright (C) 2009 Canonical Ltd. # Copyright (C) 2011-2014 Dustin Kirkland # # Authors: RaphaΓ«l Pinson <raphink@ubuntu.com> # Dustin Kirkland <kirkland@byobu.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, version 3 of the License. # # 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/>. __users_detail() { ps -ef | grep "sshd:.*@" | grep -v grep } __users() { local count=0 if [ "$USERS_DISTINCT" = "1" ]; then count=$(pgrep -fl 'sshd:.*@' | cut -f3 -d\ | cut -f1 -d@ | sort -u | wc -l) else # Note: we'd like to use pgrep -c, however, this isn't available in # busybox and some distro's pgrep (and it doesn't exit non-zero). count=$(pgrep -f "^sshd:.*@|^/usr/sbin/sshd -i" | wc -l) || return fi if [ $count -gt 0 ]; then color b w r; printf "%d" "$count"; color -; color w r; printf "#"; color -- else rm -f "$BYOBU_RUN_DIR/status.$BYOBU_BACKEND/users"* fi } # vi: syntax=sh ts=4 noexpandtab