Linux mail.vriendennsm.nl 6.1.0-51-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.177-1 (2026-07-16) x86_64
Apache/2.4.68 (Debian)
Server IP : 217.154.75.17 & Your IP : 216.73.216.195
Domains :
Cant Read [ /etc/named.conf ]
User : www-data
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
usr /
sbin /
Delete
Unzip
Name
Size
Permission
Date
Action
a2disconf
15.86
KB
-rwxr-xr-x
2026-06-12 05:08
a2dismod
15.86
KB
-rwxr-xr-x
2026-06-12 05:08
a2dissite
15.86
KB
-rwxr-xr-x
2026-06-12 05:08
a2enconf
15.86
KB
-rwxr-xr-x
2026-06-12 05:08
a2enmod
15.86
KB
-rwxr-xr-x
2026-06-12 05:08
a2ensite
15.86
KB
-rwxr-xr-x
2026-06-12 05:08
a2query
9.6
KB
-rwxr-xr-x
2026-06-12 05:08
aa-remove-unknown
3.13
KB
-rwxr-xr-x
2023-02-14 11:49
aa-status
38.3
KB
-rwxr-xr-x
2023-02-14 11:49
aa-teardown
137
B
-rwxr-xr-x
2022-11-22 00:54
accessdb
14.46
KB
-rwxr-xr-x
2023-03-12 22:23
add-shell
1.03
KB
-rwxr-xr-x
2023-07-28 23:46
addgnupghome
3
KB
-rwxr-xr-x
2026-01-01 14:54
addgroup
47.25
KB
-rwxr-xr-x
2023-05-25 15:54
adduser
47.25
KB
-rwxr-xr-x
2023-05-25 15:54
agetty
67.49
KB
-rwxr-xr-x
2024-11-21 20:01
apache2
716.53
KB
-rwxr-xr-x
2026-06-12 05:08
apache2ctl
7.19
KB
-rwxr-xr-x
2026-06-12 05:08
apachectl
7.19
KB
-rwxr-xr-x
2026-06-12 05:08
apparmor_parser
1.39
MB
-rwxr-xr-x
2023-02-14 11:49
apparmor_status
38.3
KB
-rwxr-xr-x
2023-02-14 11:49
applygnupgdefaults
2.17
KB
-rwxr-xr-x
2026-01-01 14:54
arp
66.13
KB
-rwxr-xr-x
2025-05-26 19:27
arpd
104.48
KB
-rwxr-xr-x
2023-05-22 13:19
arptables
223.16
KB
-rwxr-xr-x
2023-01-16 13:44
arptables-nft
223.16
KB
-rwxr-xr-x
2023-01-16 13:44
arptables-nft-restore
223.16
KB
-rwxr-xr-x
2023-01-16 13:44
arptables-nft-save
223.16
KB
-rwxr-xr-x
2023-01-16 13:44
arptables-restore
223.16
KB
-rwxr-xr-x
2023-01-16 13:44
arptables-save
223.16
KB
-rwxr-xr-x
2023-01-16 13:44
badblocks
34.25
KB
-rwxr-xr-x
2025-06-06 17:12
blkdeactivate
15.96
KB
-rwxr-xr-x
2022-10-19 19:37
blkdiscard
34.31
KB
-rwxr-xr-x
2024-11-21 20:01
blkid
122.34
KB
-rwxr-xr-x
2024-11-21 20:01
blkzone
78.31
KB
-rwxr-xr-x
2024-11-21 20:01
blockdev
78.31
KB
-rwxr-xr-x
2024-11-21 20:01
bridge
152.54
KB
-rwxr-xr-x
2023-05-22 13:19
capsh
53.29
KB
-rwxr-xr-x
2026-05-07 21:10
cfdisk
106.66
KB
-rwxr-xr-x
2024-11-21 20:01
cgdisk
210.41
KB
-rwxr-xr-x
2022-10-16 12:32
chcpu
46.3
KB
-rwxr-xr-x
2024-11-21 20:01
check_forensic
952
B
-rwxr-xr-x
2011-04-26 15:10
chgpasswd
66.29
KB
-rwxr-xr-x
2025-12-14 14:00
chmem
66.31
KB
-rwxr-xr-x
2024-11-21 20:01
chpasswd
62.36
KB
-rwxr-xr-x
2025-12-14 14:00
chroot
46.98
KB
-rwxr-xr-x
2022-09-20 15:27
cpgr
60.43
KB
-rwxr-xr-x
2025-12-14 14:00
cppw
60.43
KB
-rwxr-xr-x
2025-12-14 14:00
ctrlaltdel
38.3
KB
-rwxr-xr-x
2024-11-21 20:01
dcb
144.6
KB
-rwxr-xr-x
2023-05-22 13:19
debugfs
233.83
KB
-rwxr-xr-x
2025-06-06 17:12
delgroup
16.33
KB
-rwxr-xr-x
2023-05-25 15:54
deluser
16.33
KB
-rwxr-xr-x
2023-05-25 15:54
depmod
174.27
KB
-rwxr-xr-x
2022-12-10 00:02
devlink
220.98
KB
-rwxr-xr-x
2023-05-22 13:19
dhclient
2.63
MB
-rwxr-xr-x
2023-04-17 12:20
dhclient-script
14.21
KB
-rwxr-xr-x
2023-04-17 12:20
dmsetup
166.98
KB
-rwxr-xr-x
2022-10-19 19:37
dmstats
166.98
KB
-rwxr-xr-x
2022-10-19 19:37
dpkg-fsys-usrunmess
16.99
KB
-rwxr-xr-x
2026-03-07 12:15
dpkg-preconfigure
3.83
KB
-rwxr-xr-x
2023-01-08 21:50
dpkg-reconfigure
4.38
KB
-rwxr-xr-x
2023-01-08 21:50
dumpe2fs
30.31
KB
-rwxr-xr-x
2025-06-06 17:12
e2freefrag
14.3
KB
-rwxr-xr-x
2025-06-06 17:12
e2fsck
348.27
KB
-rwxr-xr-x
2025-06-06 17:12
e2image
54.45
KB
-rwxr-xr-x
2025-06-06 17:12
e2label
114.52
KB
-rwxr-xr-x
2025-06-06 17:12
e2mmpstatus
30.31
KB
-rwxr-xr-x
2025-06-06 17:12
e2scrub
7.12
KB
-rwxr-xr-x
2025-06-06 17:12
e2scrub_all
5.27
KB
-rwxr-xr-x
2025-06-06 17:12
e2undo
22.3
KB
-rwxr-xr-x
2025-06-06 17:12
e4crypt
26.3
KB
-rwxr-xr-x
2025-06-06 17:12
e4defrag
30.23
KB
-rwxr-xr-x
2025-06-06 17:12
ebtables
223.16
KB
-rwxr-xr-x
2023-01-16 13:44
ebtables-nft
223.16
KB
-rwxr-xr-x
2023-01-16 13:44
ebtables-nft-restore
223.16
KB
-rwxr-xr-x
2023-01-16 13:44
ebtables-nft-save
223.16
KB
-rwxr-xr-x
2023-01-16 13:44
ebtables-restore
223.16
KB
-rwxr-xr-x
2023-01-16 13:44
ebtables-save
223.16
KB
-rwxr-xr-x
2023-01-16 13:44
ebtables-translate
223.16
KB
-rwxr-xr-x
2023-01-16 13:44
ethtool
592.45
KB
-rwxr-xr-x
2022-12-20 11:18
faillock
14.24
KB
-rwxr-xr-x
2025-08-10 15:54
fdisk
158.35
KB
-rwxr-xr-x
2024-11-21 20:01
filefrag
18.26
KB
-rwxr-xr-x
2025-06-06 17:12
findfs
14.3
KB
-rwxr-xr-x
2024-11-21 20:01
fixparts
74.4
KB
-rwxr-xr-x
2022-10-16 12:32
fsck
54.36
KB
-rwxr-xr-x
2024-11-21 20:01
fsck.cramfs
42.37
KB
-rwxr-xr-x
2024-11-21 20:01
fsck.ext2
348.27
KB
-rwxr-xr-x
2025-06-06 17:12
fsck.ext3
348.27
KB
-rwxr-xr-x
2025-06-06 17:12
fsck.ext4
348.27
KB
-rwxr-xr-x
2025-06-06 17:12
fsck.minix
122.34
KB
-rwxr-xr-x
2024-11-21 20:01
fsfreeze
14.3
KB
-rwxr-xr-x
2024-11-21 20:01
fstab-decode
14.23
KB
-rwxr-xr-x
2023-04-03 06:25
fstrim
74.31
KB
-rwxr-xr-x
2024-11-21 20:01
gdisk
218.41
KB
-rwxr-xr-x
2022-10-16 12:32
genl
116.51
KB
-rwxr-xr-x
2023-05-22 13:19
getcap
14.23
KB
-rwxr-xr-x
2026-05-07 21:10
getpcaps
14.23
KB
-rwxr-xr-x
2026-05-07 21:10
getty
67.49
KB
-rwxr-xr-x
2024-11-21 20:01
groupadd
99.04
KB
-rwxr-xr-x
2025-12-14 14:00
groupdel
86.85
KB
-rwxr-xr-x
2025-12-14 14:00
groupmems
66.33
KB
-rwxr-xr-x
2025-12-14 14:00
groupmod
99.01
KB
-rwxr-xr-x
2025-12-14 14:00
grpck
66.3
KB
-rwxr-xr-x
2025-12-14 14:00
grpconv
58.14
KB
-rwxr-xr-x
2025-12-14 14:00
grpunconv
58.14
KB
-rwxr-xr-x
2025-12-14 14:00
grub-install
1.15
MB
-rwxr-xr-x
2026-04-01 20:03
grub-macbless
931.48
KB
-rwxr-xr-x
2026-04-01 20:03
grub-mkconfig
8.46
KB
-rwxr-xr-x
2026-04-01 20:03
grub-mkdevicemap
216.76
KB
-rwxr-xr-x
2026-04-01 20:03
grub-probe
939.79
KB
-rwxr-xr-x
2026-04-01 20:03
grub-reboot
4.73
KB
-rwxr-xr-x
2026-04-01 20:03
grub-set-default
3.47
KB
-rwxr-xr-x
2026-04-01 20:03
halt
1.29
MB
-rwxr-xr-x
2026-04-27 19:48
httxt2dbm
14.23
KB
-rwxr-xr-x
2026-06-12 05:08
hwclock
86.44
KB
-rwxr-xr-x
2024-11-21 20:01
iconvconfig
30.84
KB
-rwxr-xr-x
2026-04-27 20:14
ifconfig
82.01
KB
-rwxr-xr-x
2025-05-26 19:27
init
90.38
KB
-rwxr-xr-x
2026-04-27 19:48
insmod
174.27
KB
-rwxr-xr-x
2022-12-10 00:02
install-sgmlcatalog
4.44
KB
-rwxr-xr-x
2022-10-06 18:03
installkernel
2.6
KB
-rwxr-xr-x
2023-07-28 23:46
invoke-rc.d
16.13
KB
-rwxr-xr-x
2022-07-04 10:14
ip
674.82
KB
-rwxr-xr-x
2023-05-22 13:19
ip6tables
223.16
KB
-rwxr-xr-x
2023-01-16 13:44
ip6tables-apply
6.87
KB
-rwxr-xr-x
2023-01-12 10:27
ip6tables-legacy
88.98
KB
-rwxr-xr-x
2023-01-16 13:44
ip6tables-legacy-restore
88.98
KB
-rwxr-xr-x
2023-01-16 13:44
ip6tables-legacy-save
88.98
KB
-rwxr-xr-x
2023-01-16 13:44
ip6tables-nft
223.16
KB
-rwxr-xr-x
2023-01-16 13:44
ip6tables-nft-restore
223.16
KB
-rwxr-xr-x
2023-01-16 13:44
ip6tables-nft-save
223.16
KB
-rwxr-xr-x
2023-01-16 13:44
ip6tables-restore
223.16
KB
-rwxr-xr-x
2023-01-16 13:44
ip6tables-restore-translate
223.16
KB
-rwxr-xr-x
2023-01-16 13:44
ip6tables-save
223.16
KB
-rwxr-xr-x
2023-01-16 13:44
ip6tables-translate
223.16
KB
-rwxr-xr-x
2023-01-16 13:44
ipmaddr
18.56
KB
-rwxr-xr-x
2025-05-26 19:27
iptables
223.16
KB
-rwxr-xr-x
2023-01-16 13:44
iptables-apply
6.87
KB
-rwxr-xr-x
2023-01-12 10:27
iptables-legacy
88.98
KB
-rwxr-xr-x
2023-01-16 13:44
iptables-legacy-restore
88.98
KB
-rwxr-xr-x
2023-01-16 13:44
iptables-legacy-save
88.98
KB
-rwxr-xr-x
2023-01-16 13:44
iptables-nft
223.16
KB
-rwxr-xr-x
2023-01-16 13:44
iptables-nft-restore
223.16
KB
-rwxr-xr-x
2023-01-16 13:44
iptables-nft-save
223.16
KB
-rwxr-xr-x
2023-01-16 13:44
iptables-restore
223.16
KB
-rwxr-xr-x
2023-01-16 13:44
iptables-restore-translate
223.16
KB
-rwxr-xr-x
2023-01-16 13:44
iptables-save
223.16
KB
-rwxr-xr-x
2023-01-16 13:44
iptables-translate
223.16
KB
-rwxr-xr-x
2023-01-16 13:44
iptunnel
26.55
KB
-rwxr-xr-x
2025-05-26 19:27
isosize
30.31
KB
-rwxr-xr-x
2024-11-21 20:01
killall5
26.31
KB
-rwxr-xr-x
2023-04-03 06:25
ldattach
34.31
KB
-rwxr-xr-x
2024-11-21 20:01
ldconfig
959.84
KB
-rwxr-xr-x
2026-04-27 20:14
locale-gen
1.38
KB
-rwxr-xr-x
2026-04-27 20:14
logsave
14.09
KB
-rwxr-xr-x
2025-06-06 17:12
losetup
114.42
KB
-rwxr-xr-x
2024-11-21 20:01
lsmod
174.27
KB
-rwxr-xr-x
2022-12-10 00:02
make-ssl-cert
6.65
KB
-rwxr-xr-x
2021-12-30 16:52
mariadbd
24.79
MB
-rwxr-xr-x
2026-06-27 11:11
mii-tool
27.08
KB
-rwxr-xr-x
2025-05-26 19:27
mke2fs
138.58
KB
-rwxr-xr-x
2025-06-06 17:12
mkfs
14.3
KB
-rwxr-xr-x
2024-11-21 20:01
mkfs.bfs
34.31
KB
-rwxr-xr-x
2024-11-21 20:01
mkfs.cramfs
42.24
KB
-rwxr-xr-x
2024-11-21 20:01
mkfs.ext2
138.58
KB
-rwxr-xr-x
2025-06-06 17:12
mkfs.ext3
138.58
KB
-rwxr-xr-x
2025-06-06 17:12
mkfs.ext4
138.58
KB
-rwxr-xr-x
2025-06-06 17:12
mkfs.minix
110.32
KB
-rwxr-xr-x
2024-11-21 20:01
mkhomedir_helper
22.27
KB
-rwxr-xr-x
2025-08-10 15:54
mkinitramfs
12.4
KB
-rwxr-xr-x
2025-04-26 20:00
mklost+found
14.23
KB
-rwxr-xr-x
2025-06-06 17:12
mkswap
114.31
KB
-rwxr-xr-x
2024-11-21 20:01
modinfo
174.27
KB
-rwxr-xr-x
2022-12-10 00:02
modprobe
174.27
KB
-rwxr-xr-x
2022-12-10 00:02
mysqld
24.79
MB
-rwxr-xr-x
2026-06-27 11:11
nameif
14.65
KB
-rwxr-xr-x
2025-05-26 19:27
netplan
798
B
-rwxr-xr-x
2023-02-09 08:15
newusers
102.92
KB
-rwxr-xr-x
2025-12-14 14:00
nfnl_osf
18.23
KB
-rwxr-xr-x
2023-01-16 13:44
nologin
14.23
KB
-rwxr-xr-x
2025-12-14 14:00
pam-auth-update
20.79
KB
-rwxr-xr-x
2025-08-10 15:54
pam_getenv
2.82
KB
-rwxr-xr-x
2025-08-10 15:54
pam_namespace_helper
467
B
-rwxr-xr-x
2025-08-10 15:54
pam_timestamp_check
14.24
KB
-rwxr-xr-x
2025-08-10 15:54
phpdismod
7.11
KB
-rwxr-xr-x
2026-05-03 07:49
phpenmod
7.11
KB
-rwxr-xr-x
2026-05-03 07:49
phpquery
6.24
KB
-rwxr-xr-x
2026-05-03 07:49
pivot_root
14.3
KB
-rwxr-xr-x
2024-11-21 20:01
plipconfig
14.48
KB
-rwxr-xr-x
2025-05-26 19:27
postalias
22.23
KB
-rwxr-xr-x
2024-03-06 15:10
postcat
22.3
KB
-rwxr-xr-x
2024-03-06 15:10
postconf
191.73
KB
-rwxr-xr-x
2024-03-06 15:10
postdrop
22.35
KB
-r-xr-sr-x
2024-03-06 15:10
postfix
18.3
KB
-rwxr-xr-x
2024-03-06 15:10
postfix-add-filter
4.84
KB
-rwxr-xr-x
2024-03-06 15:10
postfix-add-policy
3.77
KB
-rwxr-xr-x
2024-03-06 15:10
postfix-collate
2.87
KB
-rwxr-xr-x
2024-03-06 15:10
postkick
14.23
KB
-rwxr-xr-x
2024-03-06 15:10
postlock
14.23
KB
-rwxr-xr-x
2024-03-06 15:10
postlog
14.38
KB
-rwxr-xr-x
2024-03-06 15:10
postmap
22.23
KB
-rwxr-xr-x
2024-03-06 15:10
postmulti
30.62
KB
-rwxr-xr-x
2024-03-06 15:10
postqueue
22.3
KB
-r-xr-sr-x
2024-03-06 15:10
postsuper
30.52
KB
-rwxr-xr-x
2024-03-06 15:10
posttls-finger
38.31
KB
-rwxr-xr-x
2024-03-06 15:10
poweroff
1.29
MB
-rwxr-xr-x
2026-04-27 19:48
pwck
58.26
KB
-rwxr-xr-x
2025-12-14 14:00
pwconv
54.13
KB
-rwxr-xr-x
2025-12-14 14:00
pwhistory_helper
18.24
KB
-rwxr-xr-x
2025-08-10 15:54
pwunconv
54.17
KB
-rwxr-xr-x
2025-12-14 14:00
qmqp-sink
18.23
KB
-rwxr-xr-x
2024-03-06 15:10
qmqp-source
22.24
KB
-rwxr-xr-x
2024-03-06 15:10
qshape
12.54
KB
-rwxr-xr-x
2024-03-06 15:10
rarp
37.13
KB
-rwxr-xr-x
2025-05-26 19:27
readprofile
34.34
KB
-rwxr-xr-x
2024-11-21 20:01
reboot
1.29
MB
-rwxr-xr-x
2026-04-27 19:48
remove-shell
1.08
KB
-rwxr-xr-x
2023-07-28 23:46
resize2fs
62.3
KB
-rwxr-xr-x
2025-06-06 17:12
resolvconf
146.53
KB
-rwxr-xr-x
2026-04-27 19:48
rmail
18.3
KB
-rwxr-xr-x
2024-03-06 15:10
rmmod
174.27
KB
-rwxr-xr-x
2022-12-10 00:02
rmt
59.02
KB
-rwxr-xr-x
2024-01-20 09:27
rmt-tar
59.02
KB
-rwxr-xr-x
2024-01-20 09:27
route
69.17
KB
-rwxr-xr-x
2025-05-26 19:27
rtacct
44.37
KB
-rwxr-xr-x
2023-05-22 13:19
rtcwake
46.31
KB
-rwxr-xr-x
2024-11-21 20:01
rtmon
112.45
KB
-rwxr-xr-x
2023-05-22 13:19
runlevel
1.29
MB
-rwxr-xr-x
2026-04-27 19:48
runuser
70.31
KB
-rwxr-xr-x
2024-11-21 20:01
sendmail
30.38
KB
-rwxr-xr-x
2024-03-06 15:10
service
8.89
KB
-rwxr-xr-x
2025-08-20 18:58
setcap
14.23
KB
-rwxr-xr-x
2026-05-07 21:10
sfdisk
142.3
KB
-rwxr-xr-x
2024-11-21 20:01
sgdisk
202.41
KB
-rwxr-xr-x
2022-10-16 12:32
shadowconfig
2.22
KB
-rwxr-xr-x
2025-12-14 14:00
shutdown
1.29
MB
-rwxr-xr-x
2026-04-27 19:48
slattach
41.2
KB
-rwxr-xr-x
2025-05-26 19:27
smtp-sink
31.2
KB
-rwxr-xr-x
2024-03-06 15:10
smtp-source
30.25
KB
-rwxr-xr-x
2024-03-06 15:10
split-logfile
2.36
KB
-rwxr-xr-x
2026-06-12 05:08
sshd
1.21
MB
-rwxr-xr-x
2026-05-05 10:26
start-stop-daemon
43.42
KB
-rwxr-xr-x
2026-03-07 12:15
sudo_logsrvd
244.57
KB
-rwxr-xr-x
2026-04-11 12:01
sudo_sendlog
151.41
KB
-rwxr-xr-x
2026-04-11 12:01
sulogin
54.31
KB
-rwxr-xr-x
2024-11-21 20:01
swaplabel
18.3
KB
-rwxr-xr-x
2024-11-21 20:01
swapoff
22.3
KB
-rwxr-xr-x
2024-11-21 20:01
swapon
50.3
KB
-rwxr-xr-x
2024-11-21 20:01
switch_root
18.3
KB
-rwxr-xr-x
2024-11-21 20:01
sysctl
30.31
KB
-rwxr-xr-x
2022-12-19 06:06
tarcat
936
B
-rwxr-xr-x
2024-01-20 09:27
tc
574
KB
-rwxr-xr-x
2023-05-22 13:19
tcptraceroute
1.56
KB
-rwxr-xr-x
2023-02-25 12:24
tcptraceroute.db
1.56
KB
-rwxr-xr-x
2023-02-25 12:24
telinit
1.29
MB
-rwxr-xr-x
2026-04-27 19:48
tipc
152.6
KB
-rwxr-xr-x
2023-05-22 13:19
traceroute
71.23
KB
-rwxr-xr-x
2023-02-25 12:24
tune2fs
114.52
KB
-rwxr-xr-x
2025-06-06 17:12
unix_chkpwd
38.24
KB
-rwxr-sr-x
2025-08-10 15:54
unix_update
38.24
KB
-rwxr-xr-x
2025-08-10 15:54
update-ca-certificates
5.54
KB
-rwxr-xr-x
2026-07-17 08:50
update-catalog
9.17
KB
-rwxr-xr-x
2022-10-06 18:03
update-grub
64
B
-rwxr-xr-x
2026-03-31 19:41
update-grub2
64
B
-rwxr-xr-x
2026-03-31 19:41
update-initramfs
6.75
KB
-rwxr-xr-x
2025-04-24 15:40
update-locale
2.99
KB
-rwxr-xr-x
2026-04-27 20:14
update-mime
9.39
KB
-rwxr-xr-x
2021-11-29 13:07
update-passwd
38.49
KB
-rwxr-xr-x
2022-09-20 10:22
update-pciids
1.71
KB
-rwxr-xr-x
2023-01-17 23:50
update-rc.d
17.33
KB
-rwxr-xr-x
2025-08-20 18:56
update-secureboot-policy
5.13
KB
-rwxr-xr-x
2026-06-22 21:30
update-shells
3.89
KB
-rwxr-xr-x
2023-07-28 23:46
update-xmlcatalog
16.88
KB
-rwxr-xr-x
2019-02-27 00:18
useradd
155.8
KB
-rwxr-xr-x
2025-12-14 14:00
userdel
110.95
KB
-rwxr-xr-x
2025-12-14 14:00
usermod
143.61
KB
-rwxr-xr-x
2025-12-14 14:00
uuidd
38.81
KB
-rwxr-xr-x
2024-11-21 20:01
validlocale
1.73
KB
-rwxr-xr-x
2026-04-27 20:14
vdpa
116.66
KB
-rwxr-xr-x
2023-05-22 13:19
vigr
72.64
KB
-rwxr-xr-x
2025-12-14 14:00
vipw
72.64
KB
-rwxr-xr-x
2025-12-14 14:00
visudo
256.63
KB
-rwxr-xr-x
2026-04-11 12:01
wipefs
46.31
KB
-rwxr-xr-x
2024-11-21 20:01
xtables-legacy-multi
88.98
KB
-rwxr-xr-x
2023-01-16 13:44
xtables-monitor
223.16
KB
-rwxr-xr-x
2023-01-16 13:44
xtables-nft-multi
223.16
KB
-rwxr-xr-x
2023-01-16 13:44
zic
58.73
KB
-rwxr-xr-x
2026-04-27 20:14
zramctl
114.42
KB
-rwxr-xr-x
2024-11-21 20:01
Save
Rename
#! /usr/bin/perl ############################################################################### # # Update-MIME: Install programs into "/etc/mailcap", resolve conflicts, # auto-uninstall, make dinner, and wash dishes. # # Written by Brian White <bcwhite@pobox.com>. # # This program has been placed in the public domain (the only true "free"). # Do whatever you wish with it, though I'd appreciate it if my name stayed # on it as the original author. # ############################################################################### umask(022); # These are pretty well always a Good Idea(tm) use strict; use warnings; # # Program Constants # my $debug = 0; my $conffile = "/etc/update-mime.conf"; my $mailcap = "/etc/mailcap"; my $mailcapdef = "/usr/lib/mime/mailcap"; my $mimedir = "/usr/lib/mime/packages"; my $appsdir = "/usr/share/applications"; my $orderfile = "/etc/mailcap.order"; my $defpriority = 5; my $localgen = 0; # If the call comes from dpkg, only accept it if --triggered is passed # This is so that we don't get useless calls from packages' postinsts # that call update-mime due to dh_installmime adding that call for # when there was no triggers support. # # When this 'hack' is removed, mime-support's postinst should be updated # to not pass --triggered anymore in 'triggered'. if (defined $ENV{"DPKG_RUNNING_VERSION"} && defined $ARGV[0] && $ARGV[0] ne "--triggered") { exit (0); } # Allow local run if (defined $ARGV[0] && $ARGV[0] eq "--local") { $conffile = "$ENV{HOME}/.update-mime.conf"; $mailcap = "$ENV{HOME}/.mailcap"; $orderfile = "$ENV{HOME}/.mailcap.order"; $localgen = 1; } # # Allow local customizations # do $conffile if -f $conffile; # # Global Variables # my %entries; my %packages; my %priorities; my @order; my $counter=1; sub ReadEntries { my($pkg,$priority); # foreach my $file (glob "$mimedir/*") { foreach my $file (map { glob $_.'/*' } split ':',$mimedir) { next if ($file =~ m!(^|/)(\.|\#)|(\~)$!); ($pkg) = ($file =~ m|/([^/]*)$|); print STDERR "$pkg:\n" if $debug; if (!defined $packages{$pkg}) { $packages{$pkg} = []; } if (open(FILE,"<$file")) { while (<FILE>) { chomp; next if m/^\s*$|^\s*\#/; if (! m(^[a-zA-Z0-9*][a-zA-Z0-9!#\$&^_.+-]*/[a-zA-Z0-9*][a-zA-Z0-9!#\$&^_.+-]*;) ) { print STDERR "Warning: mailcap line not starting with a media type in $pkg\n"; print STDERR "Problematic line: $_\n"; } if (m/priority\s*=\s*(\d+)\s*($|;)/i) { $priority=$1; } else { $priority=$defpriority; } if ($priority < 0 || $priority > 9) { print STDERR "Error: priority of $priority is out of range (0 <= pri <= 9)\n"; print STDERR " $_\n"; $priority=$defpriority; } $entries{$counter} = $_; push @{$packages{$pkg}},$counter; push @{$priorities{$priority}},$counter; print STDERR "$counter: $_\n" if $debug; $counter++; } close(FILE); } else { print STDERR "Warning: could not open file '$file' -- $!\n"; } } } sub RecurseIntoDirectories { my @files; foreach my $dir (@_) { next if ($dir =~ m!(^|/)(\.|\#)|(\~)$!); my @entries = glob "$dir/*"; push @files, RecurseIntoDirectories(grep { -d $_ } @entries); push @files, grep { -f $_ } @entries; } return @files; } sub ReadDesktopEntries { my($pkg,$priority); foreach my $file (RecurseIntoDirectories(split ':',$appsdir)) { next if ($file =~ m!(^|/)(\.|\#)|(\~)$!); next unless ($file =~ m/\.desktop$/); ($pkg) = ($file =~ m|/([^/]*)\.desktop$|); print STDERR "$pkg:\n" if $debug; next if (defined $packages{$pkg}); $packages{$pkg} = []; if (open(FILE,"<$file")) { my($terminal, $name, $icon, $exec, @types) = ("test=test -n \"\$DISPLAY\"", $pkg); my $in_desktop_group = 0; while (<FILE>) { chomp; next if (m/^\s*$|^\s*\#/); if (m/^\[Desktop Entry\]$/) { $in_desktop_group = 1; next; } if (m/^\[.*\]$/) { $in_desktop_group = 0; next; } next unless $in_desktop_group; if (m/^Terminal=(\w+)/i) { $terminal = "needsterminal" if ($1 eq "true"); } elsif (m/^Name=(.+)/i) { $name = $1; } elsif (m/^Icon=(.+)/i) { $icon = $1; } elsif (m/Exec=(.*)$/i) { $exec = $1; $exec =~ s/%[fFuU]/%s/g; $exec .= " %s" if ($exec !~ m/%s/); } elsif (m/MimeType=(.*)/i) { my $err = 0; push @types, grep { if (length>0) {1} else {++$err;0} } split(/\s*;\s*/, $1); print STDERR "Warning: $file:$.: ignoring empty entries in MimeType\n" if $err; } } if (!defined($exec) || !scalar(@types)) { close(FILE); next; } $exec =~ s/%c/$name/g; $exec =~ s/%i/--icon $icon/g; foreach my $type (@types) { my $entry = "$type; $exec; $terminal"; $priority=$defpriority; $entries{$counter} = $entry; push @{$packages{$pkg}},$counter; push @{$priorities{$priority}},$counter; print STDERR "$counter: $entry\n" if $debug; $counter++; } close(FILE); } else { print STDERR "Warning: could not open file '$file' -- $!\n"; } } } sub ReadOrder { if (-e $orderfile) { if (open(FILE,"<$orderfile")) { while (<FILE>) { chomp; s/\s*\#.*$//; next if m/^\s*$/; push @order,$_; /(.*):/; my $pkg = $1; unless( grep {/^$pkg$/} keys(%packages)) { print STDERR "Warning: package $pkg listed in /etc/mailcap.order does not have mailcap entries.\n"; } } close(FILE); } else { print STDERR "Warning: could not open file '$orderfile' -- $!\n"; } } } sub OrderEntries { my(@entrylist,@orderlist,@templist,$priority,$entrycode,$ordercode); foreach $priority (sort {$b <=> $a} keys %priorities) { print STDERR " - Priority $priority:" if $debug; @templist = @{$priorities{$priority}}; @templist = sort { my $ae = $entries{$a}; my $ac = 0; $ac += 1 if $ae =~ m!^\S+/\*!; $ac += 2 if $ae =~ m!^\*/!; my $be = $entries{$b}; my $bc = 0; $bc += 1 if $be =~ m!^\S+/\*!; $bc += 2 if $be =~ m!^\*/!; $ac <=> $bc; } @templist; foreach my $entry (@templist) { print STDERR " $entry" if $debug; push @entrylist,$entry; } print STDERR "\n" if $debug; } print STDERR "entrylist: @entrylist\n" if $debug; foreach $ordercode (@order) { my($pkg,$typ); if ($ordercode =~ m/:/) { ($pkg,$typ) = ($ordercode =~ m/^(.*):(\S*)/); } else { $pkg = $ordercode; $typ = "*/*"; } $typ = "*/*" unless $typ; print STDERR " - Ordering '$ordercode'... (package=$pkg, type=$typ, orderlist=@orderlist)\n" if $debug; $typ =~ s/\*/\.\*/g; foreach $entrycode (@entrylist) { next if grep(/^\Q$entrycode\E$/,@orderlist); print STDERR " - Checking entrycode '$entrycode' against (@{$packages{$pkg}})...\n" if $debug; if (grep(/^\Q$entrycode\E$/,@{$packages{$pkg}})) { my $entry = $entries{$entrycode}; my($etype) = ($entry =~ m/^(.*?)(;|\s)/); print STDERR " - entry found, type=$etype, checking against '$typ'\n" if $debug; if ($etype =~ m!^$typ$!) { # print STDERR " - matched!\n" if $debug; # my($oaction) = ($ordercode =~ m/action=([^\s;]*)/i); # my($eaction) = ($entry =~ m/action=([^\s;]*)/i); # $eaction="view" unless $eaction; # print STDERR " - checking entry action '$eaction' against '$oaction'\n" if $debug; # if (!$oaction || $eaction =~ m/^($oaction)$/) { push @orderlist,$entrycode; print STDERR " - matched! (orderlist=@orderlist)\n" if $debug; # } } } } } foreach $entrycode (@entrylist) { next if grep(/^\Q$entrycode\E$/,@orderlist); push @orderlist,$entrycode; } print STDERR "orderlist: @orderlist\n" if $debug; return @orderlist; } # # Generate new mailcap file # sub UpdateMailcap { my(@entrylist) = @_; my(@above,@user,@below,$state,$entrycode); $state = 0; if (!open(PATH,"<$mailcap")) { if (!open(PATH,"<$mailcapdef")) { # print STDERR "Warning: could not read '$mailcap' (update stopped) -- $!\n"; # print STDERR " restore from backup or delete and re-install mime-support package"; return; } } while (<PATH>) { s/install-mime/update-mime/g; if ($state == 0) { push @above,$_; } $state=2 if ($state == 1 && /^\# ----- .* Ends /); if ($state == 1) { push @user,$_; } $state=1 if ($state == 0 && /^\# ----- .* Begins /); if ($state == 2) { push @below,$_; } $state=3 if ($state == 2); } close PATH; if ($state == 3) { my $newfile = join('',@above,@user,@below); $newfile .= "\n###############################################################################\n\n"; foreach $entrycode (@entrylist) { my $entry = $entries{$entrycode}; $entry =~ s/\s*priority\s*=\s*\d+\s*($|;)//; $entry =~ s/\s*;\s*$//; $newfile .= $entry."\n"; } if (!open(PATH,">$mailcap.new")) { print STDERR "Error: could not write '$mailcap.new' -- $!\n"; exit(1) unless ($debug); open(PATH,">-"); } print PATH $newfile; close PATH; if (!open(PATH,"<$mailcap.new")) { die "Error: could not read generated '$mailcap.new' -- $!\n"; } my $savfile = ""; $savfile .= $_ while (<PATH>); if ($savfile ne $newfile) { die "Error: contents of '$mailcap.new' do not match what was written -- abort\n"; } rename "$mailcap.new","$mailcap"; } else { print STDERR "Error: '$mailcap' is not in required format -- not updated\n"; print STDERR " Restore from backup or delete and re-install mime-support package"; } } ReadEntries(); ReadDesktopEntries(); ReadOrder(); my @list = OrderEntries(); UpdateMailcap(@list);