OXIESEC PANEL
- Current Dir:
/
/
snap
/
core
/
17200
/
usr
/
sbin
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
06/06/2024 02:31:58 PM
rwxr-xr-x
📄
aa-exec
22.16 KB
06/29/2023 11:30:47 AM
rwxr-xr-x
📄
aa-remove-unknown
2.86 KB
06/29/2023 11:30:39 AM
rwxr-xr-x
📄
aa-status
7.11 KB
06/29/2023 11:30:39 AM
rwxr-xr-x
📄
add-shell
695 bytes
01/26/2016 06:17:55 PM
rwxr-xr-x
📄
addgroup
36.4 KB
07/02/2015 08:11:22 PM
rwxr-xr-x
📄
adduser
36.4 KB
07/02/2015 08:11:22 PM
rwxr-xr-x
📄
apparmor_status
7.11 KB
06/29/2023 11:30:39 AM
rwxr-xr-x
📄
arp
54.09 KB
06/30/2014 01:19:24 PM
rwxr-xr-x
📄
arpd
46.74 KB
04/16/2019 12:37:11 PM
rwxr-xr-x
📄
chat
26.01 KB
07/23/2020 03:09:52 PM
rwxr-xr-x
📄
chgpasswd
53.33 KB
02/07/2024 10:59:49 AM
rwxr-xr-x
📄
chpasswd
49.43 KB
02/07/2024 10:59:49 AM
rwxr-xr-x
📄
chroot
38.8 KB
03/02/2017 06:07:22 PM
rwxr-xr-x
📄
cpgr
51.48 KB
02/07/2024 10:59:49 AM
rwxr-xr-x
📄
cppw
51.48 KB
02/07/2024 10:59:49 AM
rwxr-xr-x
📄
cron
43.43 KB
05/10/2022 10:15:25 PM
rwxr-xr-x
📄
delgroup
16.13 KB
07/02/2015 08:11:22 PM
rwxr-xr-x
📄
deluser
16.13 KB
07/02/2015 08:11:22 PM
rwxr-xr-x
📄
dnsmasq
379.6 KB
04/18/2023 08:21:30 AM
rwxr-xr-x
📄
dpkg-divert
0 bytes
01/01/1970 12:00:00 AM
---------
📄
dpkg-preconfigure
3.52 KB
05/08/2019 06:33:33 PM
rwxr-xr-x
📄
dpkg-reconfigure
4.23 KB
05/08/2019 06:33:33 PM
rwxr-xr-x
📄
dpkg-statoverride
0 bytes
01/01/1970 12:00:00 AM
---------
📄
e2freefrag
10.24 KB
06/03/2022 08:47:31 PM
rwxr-xr-x
📄
e4defrag
26.53 KB
06/03/2022 08:47:31 PM
rwxr-xr-x
📄
faillock
14.4 KB
02/02/2023 06:52:20 PM
rwxr-xr-x
📄
fanatic
35.21 KB
12/12/2017 04:13:01 PM
rwxr-xr-x
📄
fanctl
41.97 KB
04/23/2019 10:35:14 AM
rwxr-xr-x
📄
fdformat
22.57 KB
06/14/2022 09:28:54 PM
rwxr-xr-x
📄
filefrag
14.31 KB
06/03/2022 08:47:31 PM
rwxr-xr-x
📄
genl
46.69 KB
04/16/2019 12:37:11 PM
rwxr-xr-x
📄
groupadd
57.42 KB
02/07/2024 10:59:49 AM
rwxr-xr-x
📄
groupdel
65.83 KB
02/07/2024 10:59:49 AM
rwxr-xr-x
📄
groupmod
67.7 KB
02/07/2024 10:59:49 AM
rwxr-xr-x
📄
grpck
53.31 KB
02/07/2024 10:59:49 AM
rwxr-xr-x
📄
grpconv
49.19 KB
02/07/2024 10:59:49 AM
rwxr-xr-x
📄
grpunconv
49.2 KB
02/07/2024 10:59:49 AM
rwxr-xr-x
📄
iconvconfig
26.66 KB
11/28/2023 02:47:37 PM
rwxr-xr-x
📄
invoke-rc.d
19.41 KB
11/29/2016 05:28:22 PM
rwxr-xr-x
📄
ip6tables-apply
6.85 KB
02/19/2016 03:20:21 PM
rwxr-xr-x
📄
iptables-apply
6.85 KB
02/19/2016 03:20:21 PM
rwxr-xr-x
📄
ldattach
26.63 KB
06/14/2022 09:28:54 PM
rwxr-xr-x
📄
logrotate
63.11 KB
08/10/2017 03:16:07 PM
rwxr-xr-x
📄
mkinitramfs
10.24 KB
10/07/2019 10:53:35 AM
rwxr-xr-x
📄
mklost+found
10.25 KB
06/03/2022 08:47:31 PM
rwxr-xr-x
📄
netplan
17.94 KB
09/27/2019 04:27:57 PM
rwxr-xr-x
📄
newusers
73.84 KB
02/07/2024 10:59:49 AM
rwxr-xr-x
📄
nfnl_osf
14.37 KB
02/19/2016 03:21:11 PM
rwxr-xr-x
📄
nologin
5.95 KB
02/07/2024 10:59:50 AM
rwxr-xr-x
📄
pam-auth-update
19.09 KB
02/02/2023 06:50:45 PM
rwxr-xr-x
📄
pam_getenv
2.82 KB
02/02/2023 06:50:45 PM
rwxr-xr-x
📄
pam_timestamp_check
10.38 KB
02/02/2023 06:52:20 PM
rwxr-xr-x
📄
pppd
385.73 KB
07/23/2020 03:09:52 PM
rwxr-xr--
📄
pppdump
18.1 KB
07/23/2020 03:09:52 PM
rwxr-xr-x
📄
pppoe-discovery
18 KB
07/23/2020 03:09:52 PM
rwxr-xr-x
📄
pppstats
13.99 KB
07/23/2020 03:09:51 PM
rwxr-xr-x
📄
pwck
45.36 KB
02/07/2024 10:59:49 AM
rwxr-xr-x
📄
pwconv
41.27 KB
02/07/2024 10:59:49 AM
rwxr-xr-x
📄
pwunconv
36.43 KB
02/07/2024 10:59:49 AM
rwxr-xr-x
📄
readprofile
14.52 KB
06/14/2022 09:28:54 PM
rwxr-xr-x
📄
remove-shell
749 bytes
01/26/2016 06:17:55 PM
rwxr-xr-x
📄
rfkill
10.29 KB
06/20/2018 11:54:19 AM
rwxr-xr-x
📄
rmt
54.95 KB
12/06/2023 12:12:24 PM
rwxr-xr-x
📄
rmt-tar
54.95 KB
12/06/2023 12:12:24 PM
rwxr-xr-x
📄
rsyslogd
585.28 KB
05/23/2022 05:31:02 PM
rwxr-xr-x
📄
rtcwake
38.8 KB
06/14/2022 09:28:54 PM
rwxr-xr-x
📄
service
9.82 KB
09/12/2016 08:57:57 AM
rwxr-xr-x
📄
setvesablank
10.27 KB
09/22/2016 05:33:23 PM
rwxr-xr-x
📄
sshd
772.48 KB
01/09/2024 03:07:56 PM
rwxr-xr-x
📄
tarcat
936 bytes
12/06/2023 12:12:23 PM
rwxr-xr-x
📄
tunelp
22.53 KB
06/14/2022 09:28:54 PM
rwxr-xr-x
📄
tzconfig
106 bytes
01/03/2024 12:40:26 PM
rwxr-xr-x
📄
update-alternatives
46.61 KB
05/27/2022 10:37:03 AM
rwxr-xr-x
📄
update-ca-certificates
5.25 KB
05/24/2023 12:18:18 PM
rwxr-xr-x
📄
update-initramfs
8.38 KB
10/07/2019 10:53:35 AM
rwxr-xr-x
📄
update-mime
8.84 KB
10/30/2015 03:39:30 PM
rwxr-xr-x
📄
update-passwd
30.41 KB
01/02/2016 11:13:25 PM
rwxr-xr-x
📄
update-rc.d
14.1 KB
02/29/2016 12:24:38 PM
rwxr-xr-x
📄
useradd
118.72 KB
02/07/2024 10:59:49 AM
rwxr-xr-x
📄
userdel
81.92 KB
02/07/2024 10:59:49 AM
rwxr-xr-x
📄
usermod
118.5 KB
02/07/2024 10:59:49 AM
rwxr-xr-x
📄
vcstime
6.26 KB
09/22/2016 05:33:23 PM
rwxr-xr-x
📄
vigr
55.7 KB
02/07/2024 10:59:49 AM
rwxr-xr-x
📄
vipw
55.7 KB
02/07/2024 10:59:49 AM
rwxr-xr-x
📄
visudo
187.89 KB
05/24/2023 01:48:57 PM
rwxr-xr-x
📄
zic
50.54 KB
11/28/2023 02:47:37 PM
rwxr-xr-x
Editing: aa-remove-unknown
Close
#!/bin/sh # ---------------------------------------------------------------------- # Copyright (c) 2017 Canonical Ltd. (All rights reserved) # # This program is free software; you can redistribute it and/or # modify it under the terms of version 2 of the GNU General Public # License published by the Free Software Foundation. # # 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/>. # ---------------------------------------------------------------------- APPARMOR_FUNCTIONS=/lib/apparmor/functions APPARMORFS=/sys/kernel/security/apparmor PROFILES_IFACE="${APPARMORFS}/profiles" REMOVE="${APPARMORFS}/.remove" DRY_RUN=0 . $APPARMOR_FUNCTIONS usage() { local progname="$1" local rc="$2" local msg="usage: ${progname} [options]\n Remove profiles unknown to the system Options: -h, --help Show this help message and exit -n Dry run; don't remove profiles" if [ "$rc" -ne 0 ] ; then echo "$msg" 1>&2 else echo "$msg" fi exit "$rc" } if [ "$#" -gt 1 ] ; then usage "$0" 1 elif [ "$#" -eq 1 ] ; then if [ "$1" = "-h" -o "$1" = "--help" ] ; then usage "$0" 0 elif [ "$1" = "-n" ] ; then DRY_RUN=1 else usage "$0" 1 fi fi # We can't use a -r test here because while $PROFILES_IFACE is world-readable, # apparmorfs may still return EACCES from open() # # We have to do this check because error checking awk's getline() below is # tricky and, as is, results in an infinite loop when apparmorfs returns an # error from open(). if ! IFS= read line < "$PROFILES_IFACE" ; then echo "ERROR: Unable to read apparmorfs profiles file" 1>&2 exit 1 elif [ ! -w "$REMOVE" ] ; then echo "ERROR: Unable to write to apparmorfs remove file" 1>&2 exit 1 fi # Clean out running profiles not associated with the current profile # set, excluding the libvirt dynamically generated profiles. aa_configured=$(mktemp -t aa-XXXXXX) configured_profile_names > "$aa_configured" if [ "$?" -ne 0 ] ; then echo "ERROR: Unable to enumerate the known profiles" 1>&2 rm -f "$aa_configured" "$aa_loaded" exit 1 fi aa_loaded=$(mktemp -t aa-XXXXXX) running_profile_names > "$aa_loaded" || true if [ "$?" -ne 0 ] ; then echo "ERROR: Unable to enumerate the running profiles" 1>&2 rm -f "$aa_configured" "$aa_loaded" exit 1 fi LC_COLLATE=C comm -2 -3 "$aa_loaded" "$aa_configured" | while read profile ; do if [ "$DRY_RUN" -ne 0 ]; then echo "Would remove '${profile}'" else echo "Removing '${profile}'" unload_profile "$profile" fi done ret="$?" rm -f "$aa_configured" "$aa_loaded" # will not catch all errors, but still better than nothing exit $ret