Linux 186-227-203-186.cprapid.com 4.18.0-553.22.1.lve.1.el8.x86_64 #1 SMP Tue Oct 8 15:52:54 UTC 2024 x86_64
Apache
Server IP : 186.227.203.186 & Your IP : 216.73.217.146
Domains : 154 Domain
User : pmcaxingo
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Lock Shell
Lock File++
Readme
/
usr /
bin /
Delete
Unzip
Name
Size
Permission
Date
Action
2to3
106
B
-rwxr-xr-x
2026-04-28 05:55
2to3-3.6
106
B
-rwxr-xr-x
2026-04-28 05:55
GET
15.84
KB
-rwxr-xr-x
2022-04-22 20:13
HEAD
15.84
KB
-rwxr-xr-x
2022-04-22 20:13
Mail
408.89
KB
-rwxr-xr-x
2019-10-13 00:19
POST
15.84
KB
-rwxr-xr-x
2022-04-22 20:13
[
53.6
KB
-rwxr-xr-x
2026-03-24 13:05
ab
56.96
KB
-rwxr-xr-x
2026-03-13 14:40
aclocal
35.62
KB
-rwxr-xr-x
2023-10-14 20:00
aclocal-1.16
35.62
KB
-rwxr-xr-x
2023-10-14 20:00
acyclic
12.41
KB
-rwxr-xr-x
2024-04-06 12:47
addr2line
33.42
KB
-rwxr-xr-x
2025-12-18 14:21
alias
29
B
-rwxr-xr-x
2025-08-26 08:48
animate
11.84
KB
-rwxr-xr-x
2025-04-01 13:15
apropos
54.04
KB
-rwxr-xr-x
2021-10-08 13:04
ar
61.96
KB
-rwxr-xr-x
2025-12-18 14:21
arch
37.34
KB
-rwxr-xr-x
2026-03-24 13:05
aria_chk
4.52
MB
-rwxr-xr-x
2025-04-25 17:25
aria_dump_log
4.32
MB
-rwxr-xr-x
2025-04-25 17:25
aria_ftdump
4.33
MB
-rwxr-xr-x
2025-04-25 17:25
aria_pack
4.36
MB
-rwxr-xr-x
2025-04-25 17:25
aria_read_log
4.47
MB
-rwxr-xr-x
2025-04-25 17:25
arpaname
11.82
KB
-rwxr-xr-x
2026-04-15 23:44
as
889.91
KB
-rwxr-xr-x
2025-12-18 14:21
aspell
159.5
KB
-rwxr-xr-x
2022-04-18 15:10
at
57.33
KB
-rwxr-xr-x
2022-10-10 10:23
atq
57.33
KB
-rwxr-xr-x
2022-10-10 10:23
atrm
57.33
KB
-rwxr-xr-x
2022-10-10 10:23
aulast
20.58
KB
-rwxr-xr-x
2025-07-15 09:41
aulastlog
12.44
KB
-rwxr-xr-x
2025-07-15 09:41
ausyscall
12.27
KB
-rwxr-xr-x
2025-07-15 09:41
authselect
41.13
KB
-rwxr-xr-x
2023-10-14 18:06
autoconf
14.42
KB
-rwxr-xr-x
2024-08-13 19:30
autoexpect
7.53
KB
-rwxr-xr-x
2019-10-12 10:41
autoheader
8.33
KB
-rwxr-xr-x
2024-08-13 19:30
autom4te
31.43
KB
-rwxr-xr-x
2024-08-13 19:30
automake
251.9
KB
-rwxr-xr-x
2023-10-14 20:00
automake-1.16
251.9
KB
-rwxr-xr-x
2023-10-14 20:00
autopoint
25.95
KB
-rwxr-xr-x
2019-11-18 17:16
autoreconf
20.57
KB
-rwxr-xr-x
2024-08-13 19:30
autoscan
16.72
KB
-rwxr-xr-x
2024-08-13 19:30
autoupdate
33.08
KB
-rwxr-xr-x
2024-08-13 19:30
auvirt
32.73
KB
-rwxr-xr-x
2025-07-15 09:41
awk
669.77
KB
-rwxr-xr-x
2022-04-18 15:56
b2sum
57.69
KB
-rwxr-xr-x
2026-03-24 13:05
base32
41.47
KB
-rwxr-xr-x
2026-03-24 13:05
base64
41.48
KB
-rwxr-xr-x
2026-03-24 13:05
basename
37.41
KB
-rwxr-xr-x
2026-03-24 13:05
bash
1.1
MB
-rwxr-xr-x
2025-08-26 08:48
bashbug
7.18
KB
-rwxr-xr-x
2025-08-26 08:48
bashbug-64
7.18
KB
-rwxr-xr-x
2025-08-26 08:48
batch
137
B
-rwxr-xr-x
2022-10-10 10:23
bc
94.98
KB
-rwxr-xr-x
2019-10-12 12:34
bcomps
20.62
KB
-rwxr-xr-x
2024-04-06 12:47
bdftopcf
45.4
KB
-rwxr-xr-x
2021-10-09 23:42
bg
26
B
-rwxr-xr-x
2025-08-26 08:48
bind9-config
3.33
KB
-rwxr-xr-x
2026-04-15 23:44
bison
437.72
KB
-rwxr-xr-x
2019-10-12 12:28
bond2team
22.74
KB
-rwxr-xr-x
2020-07-26 09:58
bootctl
45.15
KB
-rwxr-xr-x
2026-04-23 11:13
brotli
739.2
KB
-rwxr-xr-x
2026-02-10 14:44
bunzip2
36.86
KB
-rwxr-xr-x
2025-01-28 01:38
busctl
77.27
KB
-rwxr-xr-x
2026-04-23 11:13
bwrap
69.63
KB
-rwxr-xr-x
2024-09-05 14:21
bzcat
36.86
KB
-rwxr-xr-x
2025-01-28 01:38
bzcmp
2.08
KB
-rwxr-xr-x
2025-01-28 01:38
bzdiff
2.08
KB
-rwxr-xr-x
2025-01-28 01:38
bzegrep
1.64
KB
-rwxr-xr-x
2025-01-28 01:38
bzfgrep
1.64
KB
-rwxr-xr-x
2025-01-28 01:38
bzgrep
1.64
KB
-rwxr-xr-x
2025-01-28 01:38
bzip2
36.86
KB
-rwxr-xr-x
2025-01-28 01:38
bzip2recover
16.44
KB
-rwxr-xr-x
2025-01-28 01:38
bzless
1.23
KB
-rwxr-xr-x
2025-01-28 01:38
bzmore
1.23
KB
-rwxr-xr-x
2025-01-28 01:38
c++
1.21
MB
-rwxr-xr-x
2025-08-26 09:47
c++filt
28.89
KB
-rwxr-xr-x
2025-12-18 14:21
c89
224
B
-rwxr-xr-x
2025-08-26 09:45
c99
215
B
-rwxr-xr-x
2025-08-26 09:45
ca-legacy
1.61
KB
-rwxr-xr-x
2025-10-30 14:25
cagefs_enter
2.23
KB
-rwxr-xr-x
2026-01-07 11:37
cagefs_enter.proxied
16.94
KB
-rwsr-xr-x
2026-01-20 13:58
cairo-sphinx
69.71
KB
-rwxr-xr-x
2022-04-18 16:06
cal
65.98
KB
-rwxr-xr-x
2026-02-04 20:18
captoinfo
85.31
KB
-rwxr-xr-x
2023-10-14 18:54
cat
37.46
KB
-rwxr-xr-x
2026-03-24 13:05
catchsegv
3.21
KB
-rwxr-xr-x
2026-03-17 16:54
catman
41.45
KB
-rwxr-xr-x
2021-10-08 13:04
cc
1.21
MB
-rwxr-xr-x
2025-08-26 09:47
ccomps
24.72
KB
-rwxr-xr-x
2024-04-06 12:47
cd
26
B
-rwxr-xr-x
2025-08-26 08:48
centrino-decode
11.27
KB
-rwxr-xr-x
2026-03-13 14:03
certutil
199.15
KB
-rwxr-xr-x
2026-04-14 17:44
chacl
16.36
KB
-rwxr-xr-x
2024-04-06 12:15
chage
77.68
KB
-rwsr-xr-x
2025-12-18 13:51
chardetect
400
B
-rwxr-xr-x
2019-10-12 19:18
chattr
16.41
KB
-rwxr-xr-x
2025-10-07 07:08
chcon
70.34
KB
-rwxr-xr-x
2026-03-24 13:05
chfn
32.9
KB
-rws--x--x
2026-02-04 20:18
chgrp
66.29
KB
-rwxr-xr-x
2026-03-24 13:05
chmem
45.47
KB
-rwxr-xr-x
2026-02-04 20:18
chmod
62.2
KB
-rwxr-xr-x
2026-03-24 13:05
chown
70.29
KB
-rwxr-xr-x
2026-03-24 13:05
chrt
37.19
KB
-rwxr-xr-x
2026-02-04 20:18
chsh
24.72
KB
-rwx--x--x
2026-02-04 20:18
chvt
12.53
KB
-rwxr-xr-x
2023-10-14 21:01
cifsiostat
41.35
KB
-rwxr-xr-x
2024-07-03 09:57
circo
12.26
KB
-rwxr-xr-x
2024-04-06 12:47
cksum
37.39
KB
-rwxr-xr-x
2026-03-24 13:05
cl-linksafe-apply-group
554
B
-rwxr-xr-x
2022-08-30 11:44
cl-linksafe-reconfigure
4.83
KB
-rwxr-xr-x
2022-08-30 11:44
cl-phpextdesc
2.64
KB
-rwxr-xr-x
2026-04-10 12:50
cl-quota
446
B
-rwxr-xr-x
2026-04-10 12:50
cl-syncpkgs
2.79
KB
-rwxr-xr-x
2026-04-10 12:50
cldetect
10.34
KB
-rwxr-xr-x
2026-03-10 14:09
cldiag
19.24
KB
-rwxr-xr-x
2026-03-10 14:09
clear
12.54
KB
-rwxr-xr-x
2023-10-14 18:54
cloudlinux_domains_collector
426
B
-rwxr-xr-x
2026-03-10 14:09
clsupergid_process
2.97
KB
-rwxr-xr-x
2026-03-10 14:09
cluster
518.33
KB
-rwxr-xr-x
2024-04-06 12:47
cmp
103.76
KB
-rwxr-xr-x
2020-05-04 15:15
cmsutil
122.46
KB
-rwxr-xr-x
2026-04-14 17:44
col
29.01
KB
-rwxr-xr-x
2026-02-04 20:18
colcrt
16.48
KB
-rwxr-xr-x
2026-02-04 20:18
colrm
24.88
KB
-rwxr-xr-x
2026-02-04 20:18
column
49.47
KB
-rwxr-xr-x
2026-02-04 20:18
comm
41.56
KB
-rwxr-xr-x
2026-03-24 13:05
command
31
B
-rwxr-xr-x
2025-08-26 08:48
compare
11.85
KB
-rwxr-xr-x
2025-04-01 13:15
compile_et
1.31
KB
-rwxr-xr-x
2025-10-07 07:07
composite
11.84
KB
-rwxr-xr-x
2025-04-01 13:15
config_data
6.97
KB
-rwxr-xr-x
2019-10-13 10:59
conjure
11.84
KB
-rwxr-xr-x
2025-04-01 13:15
consolehelper
11.88
KB
-rwxr-xr-x
2021-10-08 19:29
convert
11.84
KB
-rwxr-xr-x
2025-04-01 13:15
coredumpctl
44.91
KB
-rwxr-xr-x
2026-04-23 11:13
corelist
14.64
KB
-rwxr-xr-x
2019-10-13 11:00
cp
147.98
KB
-rwxr-xr-x
2026-03-24 13:05
cpan
8.17
KB
-rwxr-xr-x
2025-06-03 14:32
cpan-mirrors
4.19
KB
-rwxr-xr-x
2025-06-03 14:32
cpapi1
3.38
MB
-rwxr-xr-x
2026-04-24 03:04
cpapi2
3.38
MB
-rwxr-xr-x
2026-04-24 03:04
cpapi3
3.38
MB
-rwxr-xr-x
2026-04-24 03:04
cpio
159.8
KB
-rwxr-xr-x
2022-04-18 17:19
cpp
1.21
MB
-rwxr-xr-x
2025-08-26 09:47
cpupower
66.91
KB
-rwxr-xr-x
2026-03-13 14:00
crb
2.58
KB
-rwxr--r--
2025-04-22 17:22
crc32
1.02
KB
-rwxr-xr-x
2019-11-12 18:41
crlutil
134.95
KB
-rwxr-xr-x
2026-04-14 17:44
cronnext
49.8
KB
-rwxr-xr-x
2024-04-06 11:40
crontab
61.67
KB
-rwsr-xr-x
2024-04-06 11:40
csplit
53.68
KB
-rwxr-xr-x
2026-03-24 13:05
csslint-0.6
24.56
KB
-rwxr-xr-x
2020-09-22 21:07
curl
230.08
KB
-rwxr-xr-x
2026-03-24 13:41
cut
49.52
KB
-rwxr-xr-x
2026-03-24 13:05
cvtsudoers
284.21
KB
-rwxr-xr-x
2026-04-29 08:49
cxpm
29.11
KB
-rwxr-xr-x
2024-03-30 13:53
da-addsudoer
1.05
KB
-rwxr-xr-x
2026-03-10 14:09
da-removesudoer
594
B
-rwxr-xr-x
2026-03-10 14:09
date
105.96
KB
-rwxr-xr-x
2026-03-24 13:05
db_archive
12.45
KB
-rwxr-xr-x
2021-09-21 16:38
db_checkpoint
16.48
KB
-rwxr-xr-x
2021-09-21 16:38
db_deadlock
16.48
KB
-rwxr-xr-x
2021-09-21 16:38
db_dump
16.51
KB
-rwxr-xr-x
2021-09-21 16:38
db_dump185
69.55
KB
-rwxr-xr-x
2021-09-21 16:38
db_hotbackup
20.49
KB
-rwxr-xr-x
2021-09-21 16:38
db_load
28.61
KB
-rwxr-xr-x
2021-09-21 16:38
db_log_verify
16.52
KB
-rwxr-xr-x
2021-09-21 16:38
db_printlog
33.4
KB
-rwxr-xr-x
2021-09-21 16:38
db_recover
16.51
KB
-rwxr-xr-x
2021-09-21 16:38
db_replicate
16.49
KB
-rwxr-xr-x
2021-09-21 16:38
db_stat
16.48
KB
-rwxr-xr-x
2021-09-21 16:38
db_tuner
24.55
KB
-rwxr-xr-x
2021-09-21 16:38
db_upgrade
12.45
KB
-rwxr-xr-x
2021-09-21 16:38
db_verify
16.46
KB
-rwxr-xr-x
2021-09-21 16:38
dbilogstrip
1.35
KB
-rwxr-xr-x
2022-04-25 16:10
dbiprof
6.06
KB
-rwxr-xr-x
2022-04-25 16:10
dbus-binding-tool
110.43
KB
-rwxr-xr-x
2019-10-25 12:53
dbus-cleanup-sockets
16.39
KB
-rwxr-xr-x
2025-08-26 11:23
dbus-daemon
239.72
KB
-rwxr-xr-x
2025-08-26 11:23
dbus-monitor
28.58
KB
-rwxr-xr-x
2025-08-26 11:23
dbus-run-session
15.88
KB
-rwxr-xr-x
2025-08-26 11:23
dbus-send
28.54
KB
-rwxr-xr-x
2025-08-26 11:23
dbus-test-tool
24.6
KB
-rwxr-xr-x
2025-08-26 11:23
dbus-update-activation-environment
16.41
KB
-rwxr-xr-x
2025-08-26 11:23
dbus-uuidgen
12.38
KB
-rwxr-xr-x
2025-08-26 11:23
dbxtool
28.74
KB
-rwxr-xr-x
2023-11-17 18:56
dc
53.02
KB
-rwxr-xr-x
2019-10-12 12:34
dd
77.97
KB
-rwxr-xr-x
2026-03-24 13:05
deallocvt
12.54
KB
-rwxr-xr-x
2023-10-14 21:01
debuginfo-install
3.62
KB
-rwxr-xr-x
2024-04-08 10:02
debuginfod-find
16.47
KB
-rwxr-xr-x
2025-08-25 12:56
delv
42.46
KB
-rwxr-xr-x
2026-04-15 23:44
df
91.09
KB
-rwxr-xr-x
2026-03-24 13:05
dfu-tool
121.8
KB
-rwxr-xr-x
2023-11-17 18:56
dict_util
432.05
KB
-rwxr-xr-x
2026-04-06 12:04
dict_util_string
401.95
KB
-rwxr-xr-x
2026-04-06 12:04
diff
268.01
KB
-rwxr-xr-x
2020-05-04 15:15
diff3
128.6
KB
-rwxr-xr-x
2020-05-04 15:15
diffimg
12.27
KB
-rwxr-xr-x
2024-04-06 12:47
dig
162.18
KB
-rwxr-xr-x
2026-04-15 23:44
dijkstra
16.71
KB
-rwxr-xr-x
2024-04-06 12:47
dir
139.9
KB
-rwxr-xr-x
2026-03-24 13:05
dircolors
49.55
KB
-rwxr-xr-x
2026-03-24 13:05
dirmngr
579.89
KB
-rwxr-xr-x
2026-01-16 01:48
dirmngr-client
120.12
KB
-rwxr-xr-x
2026-01-16 01:48
dirname
33.36
KB
-rwxr-xr-x
2026-03-24 13:05
dislocate
7.75
KB
-rwxr-xr-x
2019-10-12 10:41
display
11.84
KB
-rwxr-xr-x
2025-04-01 13:15
dltest
11.87
KB
-rwxr-xr-x
2025-12-18 13:02
dmesg
77.88
KB
-rwxr-xr-x
2026-02-04 20:18
dnf
2.05
KB
-rwxr-xr-x
2025-03-11 09:47
dnf-3
2.05
KB
-rwxr-xr-x
2025-03-11 09:47
dnsdomainname
21.16
KB
-rwxr-xr-x
2019-10-11 13:06
dnstap-read
20.43
KB
-rwxr-xr-x
2026-04-15 23:44
domainname
21.16
KB
-rwxr-xr-x
2019-10-11 13:06
dot
12.26
KB
-rwxr-xr-x
2024-04-06 12:47
dot2gxl
41.3
KB
-rwxr-xr-x
2024-04-06 12:47
dotty
2.04
KB
-rwxr-xr-x
2024-04-06 12:47
doveadm
946.91
KB
-rwxr-xr-x
2026-02-03 19:40
doveconf
383.93
KB
-rwxr-xr-x
2026-02-03 19:40
dovecot-sysreport
5.81
KB
-rwxr-xr-x
2026-02-03 19:36
dpkg
316.17
KB
-rwxr-xr-x
2021-12-15 12:46
dpkg-deb
165.5
KB
-rwxr-xr-x
2021-12-15 12:46
dpkg-divert
157.75
KB
-rwxr-xr-x
2021-12-15 12:46
dpkg-maintscript-helper
20.67
KB
-rwxr-xr-x
2021-12-15 12:46
dpkg-query
165.84
KB
-rwxr-xr-x
2021-12-15 12:46
dpkg-realpath
4.05
KB
-rwxr-xr-x
2021-12-15 12:46
dpkg-split
132.39
KB
-rwxr-xr-x
2021-12-15 12:46
dpkg-statoverride
66.41
KB
-rwxr-xr-x
2021-12-15 12:46
dpkg-trigger
87.66
KB
-rwxr-xr-x
2021-12-15 12:46
dracut
67.56
KB
-rwxr-xr-x
2025-12-17 18:54
dtrace
17.39
KB
-rwxr-xr-x
2023-10-14 13:06
du
107
KB
-rwxr-xr-x
2026-03-24 13:05
dumpkeys
169.88
KB
-rwxr-xr-x
2023-10-14 21:01
dumpsexp
16.43
KB
-rwxr-xr-x
2022-06-28 11:54
dwp
2.13
MB
-rwxr-xr-x
2025-12-18 14:21
dwz
167.64
KB
-rwxr-xr-x
2021-10-09 03:26
ea-php54
5.36
MB
-rwxr-xr-x
2026-03-29 17:45
ea-php54-pear
383
B
-rwxr-xr-x
2026-02-05 10:32
ea-php54-pecl
299
B
-rwxr-xr-x
2026-02-05 10:32
ea-php55
4.87
MB
-rwxr-xr-x
2026-03-29 17:56
ea-php55-pear
383
B
-rwxr-xr-x
2026-02-05 10:37
ea-php55-pecl
299
B
-rwxr-xr-x
2026-02-05 10:37
ea-php56
5.91
MB
-rwxr-xr-x
2026-03-29 18:06
ea-php56-pear
383
B
-rwxr-xr-x
2026-02-05 10:41
ea-php56-pecl
299
B
-rwxr-xr-x
2026-02-05 10:41
ea-php70
5.94
MB
-rwxr-xr-x
2026-03-29 18:17
ea-php70-pear
383
B
-rwxr-xr-x
2026-02-05 10:46
ea-php70-pecl
299
B
-rwxr-xr-x
2026-02-05 10:46
ea-php71
6.21
MB
-rwxr-xr-x
2026-03-29 18:24
ea-php71-pear
383
B
-rwxr-xr-x
2026-02-05 10:49
ea-php71-pecl
299
B
-rwxr-xr-x
2026-02-05 10:49
ea-php72
6.62
MB
-rwxr-xr-x
2026-03-29 18:41
ea-php72-pear
383
B
-rwxr-xr-x
2026-02-05 10:55
ea-php72-pecl
299
B
-rwxr-xr-x
2026-02-05 10:55
ea-php73
4.52
MB
-rwxr-xr-x
2026-03-29 18:51
ea-php73-pear
383
B
-rwxr-xr-x
2026-02-05 11:01
ea-php73-pecl
299
B
-rwxr-xr-x
2026-02-05 11:01
ea-php74
6.09
MB
-rwxr-xr-x
2026-03-29 19:06
ea-php74-pear
383
B
-rwxr-xr-x
2026-02-05 11:08
ea-php74-pecl
299
B
-rwxr-xr-x
2026-02-05 11:08
ea-php80
7.61
MB
-rwxr-xr-x
2026-03-29 19:28
ea-php80-pear
383
B
-rwxr-xr-x
2026-02-05 11:13
ea-php80-pecl
299
B
-rwxr-xr-x
2026-02-05 11:13
ea-php81
7.72
MB
-rwxr-xr-x
2026-03-29 19:40
ea-php81-pear
383
B
-rwxr-xr-x
2026-02-05 11:22
ea-php81-pecl
299
B
-rwxr-xr-x
2026-02-05 11:22
easy_install-2
234
B
-rwxr-xr-x
2024-04-10 05:04
easy_install-2.7
234
B
-rwxr-xr-x
2024-04-10 05:04
easy_install-3
246
B
-rwxr-xr-x
2025-07-15 09:13
easy_install-3.6
246
B
-rwxr-xr-x
2025-07-15 09:13
echo
37.35
KB
-rwxr-xr-x
2026-03-24 13:05
edgepaint
420.79
KB
-rwxr-xr-x
2024-04-06 12:47
egrep
28
B
-rwxr-xr-x
2019-10-11 15:15
eject
57.78
KB
-rwxr-xr-x
2026-02-04 20:18
elfedit
33.28
KB
-rwxr-xr-x
2025-12-18 14:21
enc2xs
40.97
KB
-rwxr-xr-x
2019-10-13 08:46
encguess
2.91
KB
-rwxr-xr-x
2019-10-13 08:46
env
41.35
KB
-rwxr-xr-x
2026-03-24 13:05
envml
4.1
KB
-rwxr-xr-x
2023-10-14 18:46
envsubst
48.99
KB
-rwxr-xr-x
2019-11-18 17:17
eps2eps
639
B
-rwxr-xr-x
2025-06-03 02:48
eqn
232.16
KB
-rwxr-xr-x
2019-10-13 14:29
event_rpcgen.py
54.26
KB
-rwxr-xr-x
2019-10-12 00:29
evmctl
62.54
KB
-rwxr-xr-x
2021-04-08 15:44
ex
1.13
MB
-rwxr-xr-x
2026-04-29 09:00
expand
41.59
KB
-rwxr-xr-x
2026-03-24 13:05
expect
13.04
KB
-rwxr-xr-x
2019-10-12 10:41
expr
49.57
KB
-rwxr-xr-x
2026-03-24 13:05
factor
85.97
KB
-rwxr-xr-x
2026-03-24 13:05
fallocate
28.96
KB
-rwxr-xr-x
2026-02-04 20:18
false
33.32
KB
-rwxr-xr-x
2026-03-24 13:05
fc
26
B
-rwxr-xr-x
2025-08-26 08:48
fc-cache
132
B
-rwxr-xr-x
2021-08-16 11:04
fc-cache-64
20.35
KB
-rwxr-xr-x
2021-10-09 09:02
fc-cat
16.35
KB
-rwxr-xr-x
2021-10-09 09:02
fc-conflist
12.25
KB
-rwxr-xr-x
2021-10-09 09:02
fc-list
12.25
KB
-rwxr-xr-x
2021-10-09 09:02
fc-match
16.26
KB
-rwxr-xr-x
2021-10-09 09:02
fc-pattern
12.26
KB
-rwxr-xr-x
2021-10-09 09:02
fc-query
12.24
KB
-rwxr-xr-x
2021-10-09 09:02
fc-scan
12.26
KB
-rwxr-xr-x
2021-10-09 09:02
fc-validate
16.26
KB
-rwxr-xr-x
2021-10-09 09:02
fdp
12.26
KB
-rwxr-xr-x
2024-04-06 12:47
fg
26
B
-rwxr-xr-x
2025-08-26 08:48
fgconsole
12.55
KB
-rwxr-xr-x
2023-10-14 21:01
fgrep
28
B
-rwxr-xr-x
2019-10-11 15:15
filan
94.72
KB
-rwxr-xr-x
2025-07-15 09:33
file
24.69
KB
-rwxr-xr-x
2025-10-07 06:30
fincore
33.04
KB
-rwxr-xr-x
2026-02-04 20:18
find
223.27
KB
-rwxr-xr-x
2025-12-18 14:57
find-repos-of-install
3.62
KB
-rwxr-xr-x
2024-04-08 10:02
findmnt
70.61
KB
-rwxr-xr-x
2026-02-04 20:18
fips-finish-install
1.29
KB
-rwxr-xr-x
2023-08-01 15:18
fips-mode-setup
3.91
KB
-rwxr-xr-x
2023-08-01 15:18
firewall-cmd
139.6
KB
-rwxr-xr-x
2025-03-11 09:51
firewall-offline-cmd
120.73
KB
-rwxr-xr-x
2025-03-11 09:51
flex
428.45
KB
-rwxr-xr-x
2019-10-12 12:33
flex++
428.45
KB
-rwxr-xr-x
2019-10-12 12:33
flock
33.2
KB
-rwxr-xr-x
2026-02-04 20:18
fmt
45.49
KB
-rwxr-xr-x
2026-03-24 13:05
fold
41.42
KB
-rwxr-xr-x
2026-03-24 13:05
fonttosfnt
41.18
KB
-rwxr-xr-x
2021-10-09 23:42
free
20.79
KB
-rwxr-xr-x
2023-10-14 20:31
freetype-config
4.31
KB
-rwxr-xr-x
2025-03-31 19:37
fribidi
21.14
KB
-rwxr-xr-x
2022-10-08 11:16
ftp
101.2
KB
-rwxr-xr-x
2019-10-12 12:59
ftp-rfc
683
B
-rwxr-xr-x
2019-10-12 10:41
funzip
36.63
KB
-rwxr-xr-x
2025-06-03 02:10
fwupdagent
226.93
KB
-rwxr-xr-x
2023-11-17 18:56
fwupdate
101.66
KB
-rwxr-xr-x
2023-11-17 18:56
fwupdmgr
226.93
KB
-rwxr-xr-x
2023-11-17 18:56
fwupdtool
478.34
KB
-rwxr-xr-x
2023-11-17 18:56
g++
1.21
MB
-rwxr-xr-x
2025-08-26 09:47
g13
211.98
KB
-rwxr-xr-x
2026-01-16 01:48
galera_new_cluster
917
B
-rwxr-xr-x
2025-04-25 16:28
galera_recovery
3.29
KB
-rwxr-xr-x
2025-04-25 16:28
gapplication
20.45
KB
-rwxr-xr-x
2026-01-23 15:38
garb-systemd
1.2
KB
-rwxr-xr-x
2025-04-01 02:29
garbd
2.31
MB
-rwxr-xr-x
2025-04-01 02:29
gawk
669.77
KB
-rwxr-xr-x
2022-04-18 15:56
gc
16.64
KB
-rwxr-xr-x
2024-04-06 12:47
gcc
1.21
MB
-rwxr-xr-x
2025-08-26 09:47
gcc-ar
36.66
KB
-rwxr-xr-x
2025-08-26 09:47
gcc-nm
36.66
KB
-rwxr-xr-x
2025-08-26 09:47
gcc-ranlib
36.66
KB
-rwxr-xr-x
2025-08-26 09:47
gcov
1.31
MB
-rwxr-xr-x
2025-08-26 09:47
gcov-dump
570.96
KB
-rwxr-xr-x
2025-08-26 09:47
gcov-tool
607.77
KB
-rwxr-xr-x
2025-08-26 09:47
gdbm_dump
21.05
KB
-rwxr-xr-x
2022-10-08 13:22
gdbm_load
25.31
KB
-rwxr-xr-x
2022-10-08 13:22
gdbmtool
111.57
KB
-rwxr-xr-x
2022-10-08 13:22
gdbus
48.71
KB
-rwxr-xr-x
2026-01-23 15:38
gdk-pixbuf-query-loaders-64
15.93
KB
-rwxr-xr-x
2026-04-27 11:28
gdk-pixbuf-thumbnailer
20.45
KB
-rwxr-xr-x
2026-04-27 11:28
gdlib-config
2.79
KB
-rwxr-xr-x
2020-08-29 08:49
gencat
24.84
KB
-rwxr-xr-x
2026-03-17 17:06
genl-ctrl-list
12.04
KB
-rwxr-xr-x
2022-10-08 11:39
geqn
232.16
KB
-rwxr-xr-x
2019-10-13 14:29
getconf
32.46
KB
-rwxr-xr-x
2026-03-17 17:06
getcontrolpaneluserspackages
5.87
KB
-rwxr-xr-x
2026-03-10 14:09
getent
33.13
KB
-rwxr-xr-x
2026-03-17 17:06
getfacl
25.38
KB
-rwxr-xr-x
2024-04-06 12:15
getkeycodes
12.54
KB
-rwxr-xr-x
2023-10-14 21:01
getopt
20.53
KB
-rwxr-xr-x
2026-02-04 20:18
getopts
31
B
-rwxr-xr-x
2025-08-26 08:48
gettext
48.97
KB
-rwxr-xr-x
2019-11-18 17:17
gettext.sh
4.52
KB
-rwxr-xr-x
2019-11-18 17:16
gettextize
42.69
KB
-rwxr-xr-x
2019-11-18 17:16
ghostscript
12.35
KB
-rwxr-xr-x
2025-06-03 02:48
gio
85.22
KB
-rwxr-xr-x
2026-01-23 15:38
gio-querymodules-64
16.3
KB
-rwxr-xr-x
2026-01-23 15:38
git
3.67
MB
-rwxr-xr-x
2025-07-23 06:59
git-receive-pack
3.67
MB
-rwxr-xr-x
2025-07-23 06:59
git-shell
2.13
MB
-rwxr-xr-x
2025-07-23 06:59
git-upload-archive
3.67
MB
-rwxr-xr-x
2025-07-23 06:59
git-upload-pack
3.67
MB
-rwxr-xr-x
2025-07-23 06:59
glib-compile-schemas
48.85
KB
-rwxr-xr-x
2026-01-23 15:38
gmake
235.32
KB
-rwxr-xr-x
2022-04-18 16:38
gml2gv
41.23
KB
-rwxr-xr-x
2024-04-06 12:47
gneqn
908
B
-rwxr-xr-x
2019-10-13 14:29
gnroff
3.23
KB
-rwxr-xr-x
2019-10-13 14:29
gpasswd
82.17
KB
-rwsr-xr-x
2025-12-18 13:51
gpg
1.04
MB
-rwxr-xr-x
2026-01-16 01:48
gpg-agent
419.3
KB
-rwxr-xr-x
2026-01-16 01:48
gpg-connect-agent
165.3
KB
-rwxr-xr-x
2026-01-16 01:48
gpg-error
34.16
KB
-rwxr-xr-x
2019-10-12 12:20
gpg-error-config
2.26
KB
-rwxr-xr-x
2019-10-12 12:20
gpg-wks-server
206.71
KB
-rwxr-xr-x
2026-01-16 01:48
gpg-zip
3.44
KB
-rwxr-xr-x
2026-01-16 01:48
gpg2
1.04
MB
-rwxr-xr-x
2026-01-16 01:48
gpgconf
176.1
KB
-rwxr-xr-x
2026-01-16 01:48
gpgme-json
85.68
KB
-rwxr-xr-x
2024-04-06 12:29
gpgparsemail
28.74
KB
-rwxr-xr-x
2026-01-16 01:48
gpgrt-config
2.26
KB
-rwxr-xr-x
2019-10-12 12:20
gpgsm
514.46
KB
-rwxr-xr-x
2026-01-16 01:48
gpgsplit
87.02
KB
-rwxr-xr-x
2026-01-16 01:48
gpgv
451.51
KB
-rwxr-xr-x
2026-01-16 01:48
gpgv2
451.51
KB
-rwxr-xr-x
2026-01-16 01:48
gpic
293.84
KB
-rwxr-xr-x
2019-10-13 14:29
gpio-event-mon
14.96
KB
-rwxr-xr-x
2026-03-13 14:03
gpio-hammer
14.96
KB
-rwxr-xr-x
2026-03-13 14:03
gprof
103.35
KB
-rwxr-xr-x
2025-12-18 14:21
gr2fonttest
29.95
KB
-rwxr-xr-x
2019-11-06 07:45
graphml2gv
20.65
KB
-rwxr-xr-x
2024-04-06 12:47
grep
193.63
KB
-rwxr-xr-x
2019-10-11 15:15
groff
124.92
KB
-rwxr-xr-x
2019-10-13 14:29
grops
191.14
KB
-rwxr-xr-x
2019-10-13 14:29
grotty
141.9
KB
-rwxr-xr-x
2019-10-13 14:29
groups
37.39
KB
-rwxr-xr-x
2026-03-24 13:05
grub2-editenv
448.08
KB
-rwxr-xr-x
2025-10-21 13:45
grub2-file
928.54
KB
-rwxr-xr-x
2025-10-21 13:45
grub2-fstest
1.15
MB
-rwxr-xr-x
2025-10-21 13:45
grub2-glue-efi
279.38
KB
-rwxr-xr-x
2025-10-21 13:45
grub2-kbdcomp
1.63
KB
-rwxr-xr-x
2025-10-21 13:45
grub2-menulst2cfg
262.64
KB
-rwxr-xr-x
2025-10-21 13:45
grub2-mkfont
312.12
KB
-rwxr-xr-x
2025-10-21 13:45
grub2-mkimage
431.35
KB
-rwxr-xr-x
2025-10-21 13:45
grub2-mklayout
285.46
KB
-rwxr-xr-x
2025-10-21 13:45
grub2-mknetdir
485.74
KB
-rwxr-xr-x
2025-10-21 13:45
grub2-mkpasswd-pbkdf2
291.84
KB
-rwxr-xr-x
2025-10-21 13:45
grub2-mkrelpath
279.24
KB
-rwxr-xr-x
2025-10-21 13:45
grub2-mkrescue
1.12
MB
-rwxr-xr-x
2025-10-21 13:45
grub2-mkstandalone
594.47
KB
-rwxr-xr-x
2025-10-21 13:45
grub2-render-label
937.11
KB
-rwxr-xr-x
2025-10-21 13:45
grub2-script-check
315.95
KB
-rwxr-xr-x
2025-10-21 13:45
grub2-syslinux2cfg
861.56
KB
-rwxr-xr-x
2025-10-21 13:45
gs
12.35
KB
-rwxr-xr-x
2025-06-03 02:48
gsettings
28.61
KB
-rwxr-xr-x
2026-01-23 15:38
gsnd
277
B
-rwxr-xr-x
2025-06-03 02:48
gsoelim
42.55
KB
-rwxr-xr-x
2019-10-13 14:29
gss-client
24.56
KB
-rwxr-xr-x
2025-06-03 02:06
gtar
448.99
KB
-rwxr-xr-x
2025-08-26 08:57
gtbl
154.61
KB
-rwxr-xr-x
2019-10-13 14:29
gtk-query-immodules-2.0-64
16.29
KB
-rwxr-xr-x
2021-04-06 13:52
gtk-update-icon-cache
33.03
KB
-rwxr-xr-x
2024-09-24 02:16
gtroff
805.02
KB
-rwxr-xr-x
2019-10-13 14:29
gunzip
2.29
KB
-rwxr-xr-x
2022-04-27 05:49
gv2gml
24.7
KB
-rwxr-xr-x
2024-04-06 12:47
gv2gxl
41.3
KB
-rwxr-xr-x
2024-04-06 12:47
gvcolor
46.9
KB
-rwxr-xr-x
2024-04-06 12:47
gvgen
24.8
KB
-rwxr-xr-x
2024-04-06 12:47
gvmap
526.31
KB
-rwxr-xr-x
2024-04-06 12:47
gvmap.sh
2.14
KB
-rwxr-xr-x
2024-04-06 12:47
gvpack
460.59
KB
-rwxr-xr-x
2024-04-06 12:47
gvpr
7.83
KB
-rwxr-xr-x
2024-04-06 12:47
gxl2dot
41.3
KB
-rwxr-xr-x
2024-04-06 12:47
gxl2gv
41.3
KB
-rwxr-xr-x
2024-04-06 12:47
gzexe
6.23
KB
-rwxr-xr-x
2022-04-27 05:49
gzip
94.67
KB
-rwxr-xr-x
2022-04-27 05:49
h2ph
28.69
KB
-rwxr-xr-x
2025-07-28 08:08
h2xs
59.44
KB
-rwxr-xr-x
2025-07-28 08:07
hash
28
B
-rwxr-xr-x
2025-08-26 08:48
head
45.5
KB
-rwxr-xr-x
2026-03-24 13:05
hexdump
57.51
KB
-rwxr-xr-x
2026-02-04 20:18
hmac256
16.86
KB
-rwxr-xr-x
2022-06-28 11:54
host
142.3
KB
-rwxr-xr-x
2026-04-15 23:44
hostid
33.34
KB
-rwxr-xr-x
2026-03-24 13:05
hostname
21.16
KB
-rwxr-xr-x
2019-10-11 13:06
hostnamectl
20.83
KB
-rwxr-xr-x
2026-04-23 11:13
htdbm
24.66
KB
-rwxr-xr-x
2026-03-13 14:40
htdigest
16.52
KB
-rwxr-xr-x
2026-03-13 14:40
html2text
406
B
-rwxr-xr-x
2020-03-17 12:40
htop
304.73
KB
-rwxr-xr-x
2022-07-21 02:42
htpasswd
24.65
KB
-rwxr-xr-x
2026-03-13 14:40
httxt2dbm
16.47
KB
-rwxr-xr-x
2026-03-13 14:40
hunspell
144.7
KB
-rwxr-xr-x
2019-10-13 08:33
i360-check-flow
401.97
KB
-rwxr-xr-x
2026-04-06 12:04
i360-exclcomp
458.28
KB
-rwxr-xr-x
2026-04-06 12:04
i360-pkg-watcher
6.86
MB
-rwxr-xr-x
2026-04-06 12:04
i360-renameat2
7.73
KB
-rwxr-xr-x
2026-04-06 12:04
i360-storage
992
B
-rwxr-xr-x
2026-04-06 12:03
i360-storage-hdb
115.16
KB
-rwxr-xr-x
2026-04-06 12:04
i360-storage-mkcustom
1.18
KB
-rwxr-xr-x
2026-04-06 12:03
i360-storage-new
5.54
KB
-rwxr-xr-x
2026-04-06 12:03
i360-storage-replacehdb-v2
857
B
-rwxr-xr-x
2026-04-06 12:03
i360-storage.immunity
660.61
KB
-rwxr-xr-x
2026-04-06 12:04
i360-storage.v2
9.83
MB
-rwxr-xr-x
2026-04-06 12:04
i360-sync-config
6.4
MB
-rwxr-xr-x
2026-04-06 12:04
i360-sync-config.sh
180
B
-rwxr-xr-x
2026-04-06 12:03
i360_wafd_check
3.32
MB
-rwxr-xr-x
2026-03-24 11:42
i360_wafd_list
2.73
MB
-rwxr-xr-x
2026-03-24 11:42
i386
20.76
KB
-rwxr-xr-x
2026-02-04 20:18
iceauth
41.87
KB
-rwxr-xr-x
2019-10-15 13:08
iconv
61.43
KB
-rwxr-xr-x
2026-03-17 17:06
id
45.44
KB
-rwxr-xr-x
2026-03-24 13:05
identify
11.84
KB
-rwxr-xr-x
2025-04-01 13:15
idiag-socket-details
12.09
KB
-rwxr-xr-x
2022-10-08 11:39
idle2
93
B
-rwxr-xr-x
2024-04-10 04:57
idle2.7
93
B
-rwxr-xr-x
2024-04-10 04:57
idn
39.41
KB
-rwxr-xr-x
2019-10-13 16:55
ifnames
4.03
KB
-rwxr-xr-x
2024-08-13 19:30
iio_event_monitor
22.98
KB
-rwxr-xr-x
2026-03-13 14:03
iio_generic_buffer
26.98
KB
-rwxr-xr-x
2026-03-13 14:03
im360-k8s-syncer
56.02
MB
-rwxr-xr-x
2026-03-03 10:45
import
11.84
KB
-rwxr-xr-x
2025-04-01 13:15
imunify-agent-proxy
12.53
MB
-rwxr-xr-x
2026-04-09 20:25
imunify-antivirus
1
KB
-rwxr-xr-x
2026-04-08 13:29
imunify-fgw-dump
5.82
MB
-rwxr-xr-x
2026-03-03 10:45
imunify-resident
12.75
MB
-rwxr-xr-x
2026-04-16 17:29
imunify-service
1020
B
-rwxr-xr-x
2026-04-08 13:29
imunify360-agent
1.01
KB
-rwxr-xr-x
2026-04-16 17:29
imunify360-command-wrapper
9.14
KB
-rwxr-xr-x
2026-04-15 17:40
imunify360-dos-protection
7.31
MB
-rwxr-xr-x
2026-04-16 17:29
info
249.89
KB
-rwxr-xr-x
2022-04-18 17:09
infocmp
61.05
KB
-rwxr-xr-x
2023-10-14 18:54
infotocap
85.31
KB
-rwxr-xr-x
2023-10-14 18:54
innochecksum
3.59
MB
-rwxr-xr-x
2025-04-25 17:25
inotifywait
29.63
KB
-rwxr-xr-x
2019-09-30 15:02
inotifywatch
29.62
KB
-rwxr-xr-x
2019-09-30 15:02
install
156.16
KB
-rwxr-xr-x
2026-03-24 13:05
instmodsh
4.1
KB
-rwxr-xr-x
2019-10-13 08:55
intel-speed-select
93.02
KB
-rwxr-xr-x
2026-03-13 14:03
ionice
28.98
KB
-rwxr-xr-x
2026-02-04 20:18
iostat
57.69
KB
-rwxr-xr-x
2024-07-03 09:57
ipcalc
46.08
KB
-rwxr-xr-x
2020-05-31 19:39
ipcmk
29.14
KB
-rwxr-xr-x
2026-02-04 20:18
ipcrm
28.99
KB
-rwxr-xr-x
2026-02-04 20:18
ipcs
53.4
KB
-rwxr-xr-x
2026-02-04 20:18
isc-config.sh
3.33
KB
-rwxr-xr-x
2026-04-15 23:44
isosize
24.88
KB
-rwxr-xr-x
2026-02-04 20:18
ispell
988
B
-rwxr-xr-x
2022-04-18 15:10
isppackagesreducer
9.93
KB
-rwxr-xr-x
2026-03-10 14:09
isql
36.58
KB
-rwxr-xr-x
2025-12-18 13:02
iusql
28.66
KB
-rwxr-xr-x
2025-12-18 13:02
jcat-tool
40.92
KB
-rwxr-xr-x
2023-11-17 18:56
jobs
28
B
-rwxr-xr-x
2025-08-26 08:48
join
53.7
KB
-rwxr-xr-x
2026-03-24 13:05
journalctl
77
KB
-rwxr-xr-x
2026-04-23 11:13
jq
28.41
KB
-rwxr-xr-x
2025-07-08 13:52
json_pp
4.19
KB
-rwxr-xr-x
2019-10-14 12:12
json_reformat
16.55
KB
-rwxr-xr-x
2023-10-14 13:17
json_verify
12.27
KB
-rwxr-xr-x
2023-10-14 13:17
json_xs
6.84
KB
-rwxr-xr-x
2025-10-03 07:13
kbd_mode
12.55
KB
-rwxr-xr-x
2023-10-14 21:01
kbdinfo
16.56
KB
-rwxr-xr-x
2023-10-14 21:01
kbdrate
16.45
KB
-rwxr-xr-x
2023-10-14 21:01
kbxutil
177.35
KB
-rwxr-xr-x
2026-01-16 01:48
kdumpctl
32.93
KB
-rwxr-xr-x
2026-02-10 17:24
kernel-install
4.41
KB
-rwxr-xr-x
2018-06-22 11:11
keyctl
36.82
KB
-rwxr-xr-x
2021-10-08 13:50
kibitz
10.63
KB
-rwxr-xr-x
2019-10-12 10:41
kill
37.28
KB
-rwxr-xr-x
2026-02-04 20:18
killall
29.77
KB
-rwxr-xr-x
2020-11-06 14:24
kmod
159.98
KB
-rwxr-xr-x
2024-04-22 16:52
krb5-config
6.98
KB
-rwxr-xr-x
2025-06-03 02:06
kvm_stat
60.85
KB
-rwxr-xr-x
2026-03-13 13:08
last
49.23
KB
-rwxr-xr-x
2026-02-04 20:18
lastb
49.23
KB
-rwxr-xr-x
2026-02-04 20:18
lastlog
20.63
KB
-rwxr-xr-x
2025-12-18 13:51
lchfn
20.35
KB
-rwxr-xr-x
2024-09-24 02:24
lchsh
16.35
KB
-rwxr-xr-x
2024-09-24 02:24
ld
1.71
MB
-rwxr-xr-x
2025-12-18 14:21
ld.bfd
1.71
MB
-rwxr-xr-x
2025-12-18 14:21
ld.gold
2.35
MB
-rwxr-xr-x
2025-12-18 14:21
ld.so
1.05
MB
-rwxr-xr-x
2026-03-17 17:06
ldd
5.31
KB
-rwxr-xr-x
2026-03-17 16:54
lefty
304.52
KB
-rwxr-xr-x
2024-04-06 12:47
less
173.76
KB
-rwxr-xr-x
2024-07-02 20:10
lessecho
12.4
KB
-rwxr-xr-x
2024-07-02 20:10
lesskey
21.99
KB
-rwxr-xr-x
2024-07-02 20:10
lesspipe.sh
3.07
KB
-rwxr-xr-x
2024-07-02 19:57
lex
428.45
KB
-rwxr-xr-x
2019-10-12 12:33
lexgrog
93.7
KB
-rwxr-xr-x
2021-10-08 13:04
libgcrypt-config
3.84
KB
-rwxr-xr-x
2022-06-28 11:54
libnetcfg
15.41
KB
-rwxr-xr-x
2025-07-28 08:08
libpng-config
2.33
KB
-rwxr-xr-x
2026-03-17 10:55
libpng16-config
2.33
KB
-rwxr-xr-x
2026-03-17 10:55
libtool
359.11
KB
-rwxr-xr-x
2019-10-11 14:55
libtoolize
126.17
KB
-rwxr-xr-x
2019-10-11 14:55
libwmf-fontmap
13.03
KB
-rwxr-xr-x
2019-10-14 15:47
link
33.34
KB
-rwxr-xr-x
2026-03-24 13:05
linux-boot-prober
5.85
KB
-rwxr-xr-x
2026-01-23 09:05
linux32
20.76
KB
-rwxr-xr-x
2026-02-04 20:18
linux64
20.76
KB
-rwxr-xr-x
2026-02-04 20:18
ln
70.5
KB
-rwxr-xr-x
2026-03-24 13:05
lneato
1.51
KB
-rwxr-xr-x
2024-04-06 12:47
loadkeys
210.53
KB
-rwxr-xr-x
2023-10-14 21:01
loadunimap
29.03
KB
-rwxr-xr-x
2023-10-14 21:01
locale
56.45
KB
-rwxr-xr-x
2026-03-17 17:06
localectl
28.86
KB
-rwxr-xr-x
2026-04-23 11:13
localedef
307.47
KB
-rwxr-xr-x
2026-03-17 17:06
logger
49.98
KB
-rwxr-xr-x
2026-02-04 20:18
login
40.96
KB
-rwxr-xr-x
2026-02-04 20:18
loginctl
57.28
KB
-rwxr-xr-x
2026-04-23 11:13
logname
33.34
KB
-rwxr-xr-x
2026-03-24 13:05
logresolve
16.38
KB
-rwxr-xr-x
2026-03-13 14:40
look
16.46
KB
-rwxr-xr-x
2026-02-04 20:18
lpunlock
2.56
KB
-rwxr-xr-x
2019-10-12 10:41
ls
139.91
KB
-rwxr-xr-x
2026-03-24 13:05
lsattr
11.93
KB
-rwxr-xr-x
2025-10-07 07:08
lsblk
90.14
KB
-rwxr-xr-x
2026-02-04 20:18
lscpu
81.7
KB
-rwxr-xr-x
2026-02-04 20:18
lsgpio
15.06
KB
-rwxr-xr-x
2026-03-13 14:03
lsiio
22.98
KB
-rwxr-xr-x
2026-03-13 14:03
lsinitrd
8.68
KB
-rwxr-xr-x
2025-12-17 18:54
lsipc
73.74
KB
-rwxr-xr-x
2026-02-04 20:18
lslocks
37.53
KB
-rwxr-xr-x
2026-02-04 20:18
lslogins
65.62
KB
-rwxr-xr-x
2026-02-04 20:18
lsmem
45.34
KB
-rwxr-xr-x
2026-02-04 20:18
lsns
49.29
KB
-rwxr-xr-x
2026-02-04 20:18
lsof
175.4
KB
-rwxr-xr-x
2020-08-15 21:59
lsphp
937
B
-rwxr-xr-x
2025-04-03 11:08
lsscsi
86.01
KB
-rwxr-xr-x
2021-10-09 05:12
lua
20.45
KB
-rwxr-xr-x
2021-10-09 05:14
luac
152.77
KB
-rwxr-xr-x
2021-10-09 05:14
lve_bash
11.88
KB
-rwxr-xr-x
2026-01-20 13:58
lve_ksh
11.88
KB
-rwxr-xr-x
2026-01-20 13:58
lve_pdksh
11.88
KB
-rwxr-xr-x
2026-01-20 13:58
lve_suwrapper
15.95
KB
-rwxr-xr-x
2026-01-20 13:58
lve_tcsh
11.88
KB
-rwxr-xr-x
2026-01-20 13:58
lve_umount
11.76
KB
-rwxr-xr-x
2026-01-20 13:58
lve_wrapper
11.89
KB
-rwxr-xr-x
2026-01-20 13:58
lve_zsh
11.88
KB
-rwxr-xr-x
2026-01-20 13:58
lvemanager-service
9.36
KB
-rwxr-xr-x
2026-04-10 12:50
lveutils-panel-cron
120
B
-rw-r--r--
2026-03-10 14:09
lwp-download
10.05
KB
-rwxr-xr-x
2022-04-22 20:13
lwp-dump
2.65
KB
-rwxr-xr-x
2022-04-22 20:13
lwp-mirror
2.36
KB
-rwxr-xr-x
2022-04-22 20:13
lwp-request
15.84
KB
-rwxr-xr-x
2022-04-22 20:13
m4
185.56
KB
-rwxr-xr-x
2019-10-11 14:41
mail
408.89
KB
-rwxr-xr-x
2019-10-13 00:19
mailx
408.89
KB
-rwxr-xr-x
2019-10-13 00:19
make
235.32
KB
-rwxr-xr-x
2022-04-18 16:38
make-dummy-cert
610
B
-rwxr-xr-x
2026-02-23 07:51
makedb
24.84
KB
-rwxr-xr-x
2026-03-17 17:06
man
112.52
KB
-rwxr-xr-x
2021-10-08 13:04
mandb
134.52
KB
-rwxr-xr-x
2021-10-08 13:04
manpath
33.42
KB
-rwxr-xr-x
2021-10-08 13:04
mapscrn
24.84
KB
-rwxr-xr-x
2023-10-14 21:01
mariadb
4.33
MB
-rwxr-xr-x
2025-04-25 17:20
mariadb-access
109.33
KB
-rwxr-xr-x
2025-04-25 16:28
mariadb-admin
3.85
MB
-rwxr-xr-x
2025-04-25 17:20
mariadb-binlog
4.14
MB
-rwxr-xr-x
2025-04-25 17:20
mariadb-check
3.84
MB
-rwxr-xr-x
2025-04-25 17:20
mariadb-config
12.2
KB
-rwxr-xr-x
2025-04-25 17:22
mariadb-conv
3.59
MB
-rwxr-xr-x
2025-04-25 17:20
mariadb-convert-table-format
4.12
KB
-rwxr-xr-x
2025-04-25 16:28
mariadb-dump
3.93
MB
-rwxr-xr-x
2025-04-25 17:20
mariadb-dumpslow
8.05
KB
-rwxr-xr-x
2025-04-25 16:28
mariadb-embedded
22.77
MB
-rwxr-xr-x
2025-04-25 17:20
mariadb-find-rows
3.21
KB
-rwxr-xr-x
2025-04-25 16:28
mariadb-fix-extensions
1.22
KB
-rwxr-xr-x
2025-04-25 16:28
mariadb-hotcopy
34.15
KB
-rwxr-xr-x
2025-04-25 16:28
mariadb-import
3.84
MB
-rwxr-xr-x
2025-04-25 17:20
mariadb-install-db
22.35
KB
-rwxr-xr-x
2025-04-25 16:28
mariadb-plugin
3.55
MB
-rwxr-xr-x
2025-04-25 17:20
mariadb-secure-installation
13.48
KB
-rwxr-xr-x
2025-04-25 16:28
mariadb-service-convert
2.45
KB
-rwxr-xr-x
2025-04-25 16:21
mariadb-setpermission
17.56
KB
-rwxr-xr-x
2025-04-25 16:28
mariadb-show
3.83
MB
-rwxr-xr-x
2025-04-25 17:20
mariadb-slap
3.85
MB
-rwxr-xr-x
2025-04-25 17:20
mariadb-tzinfo-to-sql
3.54
MB
-rwxr-xr-x
2025-04-25 17:25
mariadb-upgrade
3.64
MB
-rwxr-xr-x
2025-04-25 17:25
mariadb-waitpid
3.53
MB
-rwxr-xr-x
2025-04-25 17:20
mariadb_config
12.2
KB
-rwxr-xr-x
2025-04-25 17:22
mariadbd-multi
26.69
KB
-rwxr-xr-x
2025-04-25 16:28
mariadbd-safe
30.4
KB
-rwxr-xr-x
2025-04-25 16:28
mariadbd-safe-helper
3.5
MB
-rwxr-xr-x
2025-04-25 17:25
mcookie
33.27
KB
-rwxr-xr-x
2026-02-04 20:18
mcpp
9.02
KB
-rwxr-xr-x
2019-10-14 15:45
md5sum
45.54
KB
-rwxr-xr-x
2026-03-24 13:05
mdig
48.52
KB
-rwxr-xr-x
2026-04-15 23:44
memstrack
83.78
KB
-rwxr-xr-x
2023-10-15 04:56
mesg
16.36
KB
-rwxr-xr-x
2026-02-04 20:18
migration_ve1_to_v2.py
1.99
KB
-rwxr-xr-x
2026-03-10 14:09
mkdir
82.7
KB
-rwxr-xr-x
2026-03-24 13:05
mkfifo
66.46
KB
-rwxr-xr-x
2026-03-24 13:05
mkfontdir
65
B
-rwxr-xr-x
2021-10-09 23:42
mkfontscale
41.59
KB
-rwxr-xr-x
2021-10-09 23:42
mkinitrd
6.43
KB
-rwxr-xr-x
2025-12-17 18:54
mknod
70.47
KB
-rwxr-xr-x
2026-03-24 13:05
mkpasswd
5.56
KB
-rwxr-xr-x
2019-10-12 10:41
mktemp
45.66
KB
-rwxr-xr-x
2026-03-24 13:05
mm2gv
90.53
KB
-rwxr-xr-x
2024-04-06 12:47
mmdblookup
16.74
KB
-rwxr-xr-x
2024-02-12 02:30
modulecmd
384.75
KB
-rwxr-xr-x
2023-10-14 18:46
modulemd-validator
24.96
KB
-rwxr-xr-x
2021-10-09 01:37
modutil
177.43
KB
-rwxr-xr-x
2026-04-14 17:44
mogrify
11.84
KB
-rwxr-xr-x
2025-04-01 13:15
mokutil
49.98
KB
-rwxr-xr-x
2022-10-08 14:02
montage
11.84
KB
-rwxr-xr-x
2025-04-01 13:15
more
44.94
KB
-rwxr-xr-x
2026-02-04 20:18
mount
49.15
KB
-rwsr-xr-x
2026-02-04 20:18
mountpoint
16.48
KB
-rwxr-xr-x
2026-02-04 20:18
mpicalc
20.38
KB
-rwxr-xr-x
2022-06-28 11:54
mpstat
53.51
KB
-rwxr-xr-x
2024-07-03 09:57
msgattrib
25.58
KB
-rwxr-xr-x
2019-11-18 17:17
msgcat
25.55
KB
-rwxr-xr-x
2019-11-18 17:17
msgcmp
26.12
KB
-rwxr-xr-x
2019-11-18 17:17
msgcomm
25.55
KB
-rwxr-xr-x
2019-11-18 17:17
msgconv
21.55
KB
-rwxr-xr-x
2019-11-18 17:17
msgen
21.55
KB
-rwxr-xr-x
2019-11-18 17:17
msgexec
21.55
KB
-rwxr-xr-x
2019-11-18 17:17
msgfilter
34.53
KB
-rwxr-xr-x
2019-11-18 17:17
msgfmt
90.3
KB
-rwxr-xr-x
2019-11-18 17:17
msgfmt2.7.py
6.33
KB
-rwxr-xr-x
2024-04-10 04:58
msgfmt2.py
6.33
KB
-rwxr-xr-x
2024-04-10 04:58
msggrep
43.6
KB
-rwxr-xr-x
2019-11-18 17:17
msginit
67.85
KB
-rwxr-xr-x
2019-11-18 17:17
msgmerge
71.48
KB
-rwxr-xr-x
2019-11-18 17:17
msgunfmt
35.8
KB
-rwxr-xr-x
2019-11-18 17:17
msguniq
25.56
KB
-rwxr-xr-x
2019-11-18 17:17
msql2mysql
1.41
KB
-rwxr-xr-x
2025-04-25 16:28
mv
143.96
KB
-rwxr-xr-x
2026-03-24 13:05
my_print_defaults
3.54
MB
-rwxr-xr-x
2025-04-25 17:20
myisam_ftdump
3.87
MB
-rwxr-xr-x
2025-04-25 17:25
myisamchk
3.99
MB
-rwxr-xr-x
2025-04-25 17:25
myisamlog
3.85
MB
-rwxr-xr-x
2025-04-25 17:25
myisampack
3.89
MB
-rwxr-xr-x
2025-04-25 17:25
mysql
4.33
MB
-rwxr-xr-x
2025-04-25 17:20
mysql_config
4.51
KB
-rwxr-xr-x
2025-04-25 16:28
mysql_convert_table_format
4.12
KB
-rwxr-xr-x
2025-04-25 16:28
mysql_embedded
22.77
MB
-rwxr-xr-x
2025-04-25 17:20
mysql_find_rows
3.21
KB
-rwxr-xr-x
2025-04-25 16:28
mysql_fix_extensions
1.22
KB
-rwxr-xr-x
2025-04-25 16:28
mysql_install_db
22.35
KB
-rwxr-xr-x
2025-04-25 16:28
mysql_plugin
3.55
MB
-rwxr-xr-x
2025-04-25 17:20
mysql_secure_installation
13.48
KB
-rwxr-xr-x
2025-04-25 16:28
mysql_setpermission
17.56
KB
-rwxr-xr-x
2025-04-25 16:28
mysql_tzinfo_to_sql
3.54
MB
-rwxr-xr-x
2025-04-25 17:25
mysql_upgrade
3.64
MB
-rwxr-xr-x
2025-04-25 17:25
mysql_waitpid
3.53
MB
-rwxr-xr-x
2025-04-25 17:20
mysqlaccess
109.33
KB
-rwxr-xr-x
2025-04-25 16:28
mysqladmin
3.85
MB
-rwxr-xr-x
2025-04-25 17:20
mysqlbinlog
4.14
MB
-rwxr-xr-x
2025-04-25 17:20
mysqlcheck
3.84
MB
-rwxr-xr-x
2025-04-25 17:20
mysqld_multi
26.69
KB
-rwxr-xr-x
2025-04-25 16:28
mysqld_safe
30.4
KB
-rwxr-xr-x
2025-04-25 16:28
mysqld_safe_helper
3.5
MB
-rwxr-xr-x
2025-04-25 17:25
mysqldump
3.93
MB
-rwxr-xr-x
2025-04-25 17:20
mysqldumpslow
8.05
KB
-rwxr-xr-x
2025-04-25 16:28
mysqlhotcopy
34.15
KB
-rwxr-xr-x
2025-04-25 16:28
mysqlimport
3.84
MB
-rwxr-xr-x
2025-04-25 17:20
mysqlshow
3.83
MB
-rwxr-xr-x
2025-04-25 17:20
mysqlslap
3.85
MB
-rwxr-xr-x
2025-04-25 17:20
mytop
71.95
KB
-rwxr-xr-x
2025-04-25 16:28
nail
408.89
KB
-rwxr-xr-x
2019-10-13 00:19
named-rrchecker
19.88
KB
-rwxr-xr-x
2026-04-15 23:44
namei
33.1
KB
-rwxr-xr-x
2026-02-04 20:18
nano
247.94
KB
-rwxr-xr-x
2024-09-24 02:16
nc
436.8
KB
-rwxr-xr-x
2025-12-18 12:48
ncat
436.8
KB
-rwxr-xr-x
2025-12-18 12:48
ncurses6-config
5.87
KB
-rwxr-xr-x
2023-10-14 18:54
ncursesw6-config
5.88
KB
-rwxr-xr-x
2023-10-14 18:54
ndptool
24.45
KB
-rwxr-xr-x
2024-07-19 07:04
neato
12.26
KB
-rwxr-xr-x
2024-04-06 12:47
needs-restarting
3.62
KB
-rwxr-xr-x
2024-04-08 10:02
neqn
908
B
-rwxr-xr-x
2019-10-13 14:29
netstat
158.68
KB
-rwxr-xr-x
2020-08-30 17:47
newgidmap
47.81
KB
-rwxr-xr-x
2025-12-18 13:51
newgrp
42.46
KB
-rwsr-xr-x
2025-12-18 13:51
newuidmap
47.77
KB
-rwxr-xr-x
2025-12-18 13:51
nf-ct-add
16.46
KB
-rwxr-xr-x
2022-10-08 11:39
nf-ct-events
12.38
KB
-rwxr-xr-x
2022-10-08 11:39
nf-ct-list
16.49
KB
-rwxr-xr-x
2022-10-08 11:39
nf-exp-add
16.87
KB
-rwxr-xr-x
2022-10-08 11:39
nf-exp-delete
16.66
KB
-rwxr-xr-x
2022-10-08 11:39
nf-exp-list
16.49
KB
-rwxr-xr-x
2022-10-08 11:39
nf-log
12.35
KB
-rwxr-xr-x
2022-10-08 11:39
nf-monitor
12.36
KB
-rwxr-xr-x
2022-10-08 11:39
nf-queue
16.35
KB
-rwxr-xr-x
2022-10-08 11:39
ngettext
48.97
KB
-rwxr-xr-x
2019-11-18 17:17
nice
37.33
KB
-rwxr-xr-x
2026-03-24 13:05
nisdomainname
21.16
KB
-rwxr-xr-x
2019-10-11 13:06
nl
45.55
KB
-rwxr-xr-x
2026-03-24 13:05
nl-addr-add
12.34
KB
-rwxr-xr-x
2022-10-08 11:39
nl-addr-delete
16.77
KB
-rwxr-xr-x
2022-10-08 11:39
nl-addr-list
16.88
KB
-rwxr-xr-x
2022-10-08 11:39
nl-class-add
16.73
KB
-rwxr-xr-x
2022-10-08 11:39
nl-class-delete
12.63
KB
-rwxr-xr-x
2022-10-08 11:39
nl-class-list
12.59
KB
-rwxr-xr-x
2022-10-08 11:39
nl-classid-lookup
12.47
KB
-rwxr-xr-x
2022-10-08 11:39
nl-cls-add
16.77
KB
-rwxr-xr-x
2022-10-08 11:39
nl-cls-delete
16.77
KB
-rwxr-xr-x
2022-10-08 11:39
nl-cls-list
12.73
KB
-rwxr-xr-x
2022-10-08 11:39
nl-fib-lookup
12.5
KB
-rwxr-xr-x
2022-10-08 11:39
nl-link-enslave
11.87
KB
-rwxr-xr-x
2022-10-08 11:39
nl-link-ifindex2name
11.87
KB
-rwxr-xr-x
2022-10-08 11:39
nl-link-list
12.23
KB
-rwxr-xr-x
2022-10-08 11:39
nl-link-name2ifindex
11.86
KB
-rwxr-xr-x
2022-10-08 11:39
nl-link-release
11.86
KB
-rwxr-xr-x
2022-10-08 11:39
nl-link-set
12.77
KB
-rwxr-xr-x
2022-10-08 11:39
nl-link-stats
12.59
KB
-rwxr-xr-x
2022-10-08 11:39
nl-list-caches
12.27
KB
-rwxr-xr-x
2022-10-08 11:39
nl-list-sockets
11.87
KB
-rwxr-xr-x
2022-10-08 11:39
nl-monitor
12.52
KB
-rwxr-xr-x
2022-10-08 11:39
nl-neigh-add
12.63
KB
-rwxr-xr-x
2022-10-08 11:39
nl-neigh-delete
12.66
KB
-rwxr-xr-x
2022-10-08 11:39
nl-neigh-list
12.19
KB
-rwxr-xr-x
2022-10-08 11:39
nl-neightbl-list
12.01
KB
-rwxr-xr-x
2022-10-08 11:39
nl-pktloc-lookup
12.56
KB
-rwxr-xr-x
2022-10-08 11:39
nl-qdisc-add
12.65
KB
-rwxr-xr-x
2022-10-08 11:39
nl-qdisc-delete
12.63
KB
-rwxr-xr-x
2022-10-08 11:39
nl-qdisc-list
16.74
KB
-rwxr-xr-x
2022-10-08 11:39
nl-route-add
16.39
KB
-rwxr-xr-x
2022-10-08 11:39
nl-route-delete
16.88
KB
-rwxr-xr-x
2022-10-08 11:39
nl-route-get
12.35
KB
-rwxr-xr-x
2022-10-08 11:39
nl-route-list
16.44
KB
-rwxr-xr-x
2022-10-08 11:39
nl-rule-list
12.05
KB
-rwxr-xr-x
2022-10-08 11:39
nl-tctree-list
12.66
KB
-rwxr-xr-x
2022-10-08 11:39
nl-util-addr
11.85
KB
-rwxr-xr-x
2022-10-08 11:39
nm
50.38
KB
-rwxr-xr-x
2025-12-18 14:21
nm-online
20.84
KB
-rwxr-xr-x
2025-08-26 09:47
nmcli
1009
KB
-rwxr-xr-x
2025-08-26 09:47
nmtui
784.12
KB
-rwxr-xr-x
2025-08-26 09:47
nmtui-connect
784.12
KB
-rwxr-xr-x
2025-08-26 09:47
nmtui-edit
784.12
KB
-rwxr-xr-x
2025-08-26 09:47
nmtui-hostname
784.12
KB
-rwxr-xr-x
2025-08-26 09:47
nohup
37.41
KB
-rwxr-xr-x
2026-03-24 13:05
nop
12.5
KB
-rwxr-xr-x
2024-04-06 12:47
nproc
37.41
KB
-rwxr-xr-x
2026-03-24 13:05
nroff
3.23
KB
-rwxr-xr-x
2019-10-13 14:29
nsenter
33.3
KB
-rwxr-xr-x
2026-02-04 20:18
nslookup
146.26
KB
-rwxr-xr-x
2026-04-15 23:44
nss-policy-check
16.3
KB
-rwxr-xr-x
2026-04-14 17:44
nsupdate
73.05
KB
-rwxr-xr-x
2026-04-15 23:44
numfmt
65.64
KB
-rwxr-xr-x
2026-03-24 13:05
objcopy
240.07
KB
-rwxr-xr-x
2025-12-18 14:21
objdump
419.76
KB
-rwxr-xr-x
2025-12-18 14:21
od
73.8
KB
-rwxr-xr-x
2026-03-24 13:05
odbc_config
11.84
KB
-rwxr-xr-x
2025-12-18 13:02
odbcinst
28.88
KB
-rwxr-xr-x
2025-12-18 13:02
open
20.97
KB
-rwxr-xr-x
2023-10-14 21:01
openssl
745.95
KB
-rwxr-xr-x
2026-02-23 07:52
openvt
20.97
KB
-rwxr-xr-x
2023-10-14 21:01
os-prober
5.78
KB
-rwxr-xr-x
2026-01-23 09:05
osage
12.26
KB
-rwxr-xr-x
2024-04-06 12:47
p11-kit
37.15
KB
-rwxr-xr-x
2024-04-06 14:16
package-cleanup
3.62
KB
-rwxr-xr-x
2024-04-08 10:02
package_reinstaller.py
7.16
KB
-rwxr-xr-x
2026-03-10 14:09
page_owner_sort
11.34
KB
-rwxr-xr-x
2026-03-13 14:03
pango-list
11.88
KB
-rwxr-xr-x
2021-10-08 15:22
pango-view
57.44
KB
-rwxr-xr-x
2021-10-08 15:22
paperconf
13.07
KB
-rwxr-xr-x
2019-10-12 20:09
passmass
4.63
KB
-rwxr-xr-x
2019-10-12 10:41
passwd
32.77
KB
-rwsr-xr-x
2022-04-18 22:59
paste
37.4
KB
-rwxr-xr-x
2026-03-24 13:05
patch
206.46
KB
-rwxr-xr-x
2020-06-01 15:14
patchwork
12.26
KB
-rwxr-xr-x
2024-04-06 12:47
pathchk
37.34
KB
-rwxr-xr-x
2026-03-24 13:05
pathfix.py
6.63
KB
-rwxr-xr-x
2026-04-28 05:46
pcre-config
2.09
KB
-rwxr-xr-x
2021-10-08 19:17
pcre2-config
1.9
KB
-rwxr-xr-x
2022-08-02 16:07
pdf2dsc
698
B
-rwxr-xr-x
2025-06-03 02:48
pdf2ps
909
B
-rwxr-xr-x
2025-06-03 02:48
pdns_control
486.11
KB
-rwxr-xr-x
2025-08-26 16:35
pdnsutil
5.19
MB
-rwxr-xr-x
2025-08-26 16:35
peekfd
16.51
KB
-rwxr-xr-x
2020-11-06 14:24
perl
12.43
KB
-rwxr-xr-x
2025-07-28 08:07
perl5.26.3
12.43
KB
-rwxr-xr-x
2025-07-28 08:07
perlbug
44.39
KB
-rwxr-xr-x
2025-07-28 08:08
perldoc
118
B
-rwxr-xr-x
2019-10-13 11:53
perlivp
10.56
KB
-rwxr-xr-x
2025-07-28 08:07
perlml
6.61
KB
-rwxr-xr-x
2025-10-02 19:40
perlthanks
44.39
KB
-rwxr-xr-x
2025-07-28 08:08
perror
3.73
MB
-rwxr-xr-x
2025-04-25 17:25
pflags
2.57
KB
-rwxr-xr-x
2024-04-06 13:32
pftp
101.2
KB
-rwxr-xr-x
2019-10-12 12:59
pgrep
28.84
KB
-rwxr-xr-x
2023-10-14 20:31
php
937
B
-rwxr-xr-x
2025-04-03 11:08
pic
293.84
KB
-rwxr-xr-x
2019-10-13 14:29
piconv
8.08
KB
-rwxr-xr-x
2019-10-13 08:46
pidof
16.7
KB
-rwxr-xr-x
2023-10-14 20:31
pidstat
65.72
KB
-rwxr-xr-x
2024-07-03 09:57
pigz
125.38
KB
-rwxr-xr-x
2020-06-01 15:15
pinentry
2.35
KB
-rwxr-xr-x
2018-08-12 17:18
pinentry-curses
77.89
KB
-rwxr-xr-x
2019-11-24 17:39
ping
66.13
KB
-rwxr-xr-x
2023-10-14 17:19
pinky
41.46
KB
-rwxr-xr-x
2026-03-24 13:05
pip-2
206
B
-rwxr-xr-x
2022-04-21 18:08
pip-2.7
206
B
-rwxr-xr-x
2022-04-21 18:08
pip-3
209
B
-rwxr-xr-x
2024-04-06 13:40
pip-3.6
209
B
-rwxr-xr-x
2024-04-06 13:40
pip2
206
B
-rwxr-xr-x
2022-04-21 18:08
pip2.7
206
B
-rwxr-xr-x
2022-04-21 18:08
pip3
209
B
-rwxr-xr-x
2024-04-06 13:40
pip3.6
209
B
-rwxr-xr-x
2024-04-06 13:40
pk12util
111.12
KB
-rwxr-xr-x
2026-04-14 17:44
pkaction
16.38
KB
-rwxr-xr-x
2024-05-29 12:51
pkcheck
24.43
KB
-rwxr-xr-x
2024-05-29 12:51
pkexec
28.41
KB
-rwsr-xr-x
2024-05-29 12:51
pkg-config
40.04
KB
-rwxr-xr-x
2019-10-13 06:57
pkgconf
40.04
KB
-rwxr-xr-x
2019-10-13 06:57
pkill
28.84
KB
-rwxr-xr-x
2023-10-14 20:31
pkla-admin-identities
25.72
KB
-rwxr-xr-x
2019-11-18 15:17
pkla-check-authorization
33.78
KB
-rwxr-xr-x
2019-11-18 15:17
pkttyagent
20.38
KB
-rwxr-xr-x
2024-05-29 12:51
pl2pm
4.43
KB
-rwxr-xr-x
2025-07-28 08:08
pldd
16.75
KB
-rwxr-xr-x
2026-03-17 17:06
plesk_configure
342
B
-rwxr-xr-x
2022-08-30 11:44
plymouth
45.24
KB
-rwxr-xr-x
2025-11-05 08:11
pmap
32.78
KB
-rwxr-xr-x
2023-10-14 20:31
png-fix-itxt
11.85
KB
-rwxr-xr-x
2026-03-17 10:55
pngfix
52.85
KB
-rwxr-xr-x
2026-03-17 10:55
pod2html
4.04
KB
-rwxr-xr-x
2025-07-28 08:08
pod2man
14.68
KB
-rwxr-xr-x
2019-10-13 14:12
pod2text
10.55
KB
-rwxr-xr-x
2019-10-13 14:12
pod2usage
3.86
KB
-rwxr-xr-x
2019-10-13 11:57
podchecker
3.57
KB
-rwxr-xr-x
2019-10-13 11:46
podselect
2.47
KB
-rwxr-xr-x
2019-10-13 11:52
post-grohtml
238.73
KB
-rwxr-xr-x
2019-10-13 14:29
powernow-k8-decode
10.88
KB
-rwxr-xr-x
2026-03-13 14:03
pr
82.15
KB
-rwxr-xr-x
2026-03-24 13:05
pre-grohtml
130.55
KB
-rwxr-xr-x
2019-10-13 14:29
precat
5.52
KB
-rwxr-xr-x
2022-04-18 15:10
preconv
57.65
KB
-rwxr-xr-x
2019-10-13 14:29
preunzip
5.52
KB
-rwxr-xr-x
2022-04-18 15:10
prezip
5.52
KB
-rwxr-xr-x
2022-04-18 15:10
prezip-bin
11.98
KB
-rwxr-xr-x
2022-04-18 15:10
printenv
33.32
KB
-rwxr-xr-x
2026-03-24 13:05
printf
53.56
KB
-rwxr-xr-x
2026-03-24 13:05
prlimit
37.54
KB
-rwxr-xr-x
2026-02-04 20:18
procan
82.6
KB
-rwxr-xr-x
2025-07-15 09:33
protoc
16.49
KB
-rwxr-xr-x
2025-10-07 08:37
protoc-c
244.79
KB
-rwxr-xr-x
2023-10-14 21:21
protoc-gen-c
244.79
KB
-rwxr-xr-x
2023-10-14 21:21
prove
13.24
KB
-rwxr-xr-x
2019-10-13 12:42
prtstat
20.51
KB
-rwxr-xr-x
2020-11-06 14:24
prune
16.73
KB
-rwxr-xr-x
2024-04-06 12:47
ps
134.75
KB
-rwxr-xr-x
2023-10-14 20:31
ps2ascii
631
B
-rwxr-xr-x
2025-06-03 02:48
ps2epsi
2.69
KB
-rwxr-xr-x
2025-06-03 02:48
ps2pdf
272
B
-rwxr-xr-x
2025-06-03 02:48
ps2pdf12
215
B
-rwxr-xr-x
2025-06-03 02:48
ps2pdf13
215
B
-rwxr-xr-x
2025-06-03 02:48
ps2pdf14
215
B
-rwxr-xr-x
2025-06-03 02:48
ps2pdfwr
1.07
KB
-rwxr-xr-x
2025-06-03 02:48
ps2ps
647
B
-rwxr-xr-x
2025-06-03 02:48
ps2ps2
669
B
-rwxr-xr-x
2025-06-03 02:48
psfaddtable
20.66
KB
-rwxr-xr-x
2023-10-14 21:01
psfgettable
20.66
KB
-rwxr-xr-x
2023-10-14 21:01
psfstriptable
20.66
KB
-rwxr-xr-x
2023-10-14 21:01
psfxtable
20.66
KB
-rwxr-xr-x
2023-10-14 21:01
pslog
12.48
KB
-rwxr-xr-x
2020-11-06 14:24
pstree
33.53
KB
-rwxr-xr-x
2020-11-06 14:24
pstree.x11
33.53
KB
-rwxr-xr-x
2020-11-06 14:24
ptar
3.38
KB
-rwxr-xr-x
2019-10-13 07:10
ptardiff
2.48
KB
-rwxr-xr-x
2019-10-13 07:10
ptargrep
4.2
KB
-rwxr-xr-x
2019-10-13 07:10
ptx
78
KB
-rwxr-xr-x
2026-03-24 13:05
pure-pw
38.84
KB
-rwxr-xr-x
2025-06-06 14:16
pure-pwconvert
10.72
KB
-rwxr-xr-x
2025-06-06 14:16
pure-statsdecode
10.72
KB
-rwxr-xr-x
2025-06-06 14:16
pwd
37.42
KB
-rwxr-xr-x
2026-03-24 13:05
pwdx
12.68
KB
-rwxr-xr-x
2023-10-14 20:31
pwmake
12.27
KB
-rwxr-xr-x
2023-04-01 18:24
pwscore
12.27
KB
-rwxr-xr-x
2023-04-01 18:24
pydoc-3
89
B
-rwxr-xr-x
2026-04-28 05:55
pydoc2
78
B
-rwxr-xr-x
2024-04-10 04:58
pydoc2.7
78
B
-rwxr-xr-x
2024-04-10 04:58
pydoc3
89
B
-rwxr-xr-x
2026-04-28 05:55
pydoc3.12
79
B
-rwxr-xr-x
2026-04-27 16:33
pydoc3.6
89
B
-rwxr-xr-x
2026-04-28 05:55
pygettext2.7.py
21.56
KB
-rwxr-xr-x
2024-04-10 04:58
pygettext2.py
21.56
KB
-rwxr-xr-x
2024-04-10 04:58
pynche2
138
B
-rwxr-xr-x
2024-04-10 04:48
pynche2.7
138
B
-rwxr-xr-x
2024-04-10 04:48
python-html2text
406
B
-rwxr-xr-x
2020-03-17 12:40
python2
7.84
KB
-rwxr-xr-x
2024-04-10 04:58
python2-config
1.8
KB
-rwxr-xr-x
2024-04-10 04:58
python2.7
7.84
KB
-rwxr-xr-x
2024-04-10 04:58
python2.7-config
1.8
KB
-rwxr-xr-x
2024-04-10 04:58
python3
11.59
KB
-rwxr-xr-x
2026-04-28 05:56
python3-config
204
B
-rwxr-xr-x
2026-04-28 05:55
python3-html2text
406
B
-rwxr-xr-x
2020-03-17 12:40
python3.12
7.57
KB
-rwxr-xr-x
2026-04-27 16:36
python3.6
11.59
KB
-rwxr-xr-x
2026-04-28 05:56
python3.6-config
204
B
-rwxr-xr-x
2026-04-28 05:55
python3.6m
11.59
KB
-rwxr-xr-x
2026-04-28 05:56
python3.6m-config
204
B
-rwxr-xr-x
2026-04-28 05:55
python3.6m-x86_64-config
3.54
KB
-rwxr-xr-x
2026-04-28 05:49
pyvenv-3
446
B
-rwxr-xr-x
2026-04-28 05:55
pyvenv-3.6
446
B
-rwxr-xr-x
2026-04-28 05:55
quota
91.49
KB
-rwsr-xr-x
2021-10-09 07:08
quotasync
74.69
KB
-rwxr-xr-x
2021-10-09 07:08
ranlib
61.97
KB
-rwxr-xr-x
2025-12-18 14:21
raw
16.5
KB
-rwxr-xr-x
2026-02-04 20:18
read
28
B
-rwxr-xr-x
2025-08-26 08:48
readelf
624.54
KB
-rwxr-xr-x
2025-12-18 14:21
readlink
45.88
KB
-rwxr-xr-x
2026-03-24 13:05
realpath
49.94
KB
-rwxr-xr-x
2026-03-24 13:05
recode-sr-latin
17.99
KB
-rwxr-xr-x
2019-11-18 17:17
rename
16.5
KB
-rwxr-xr-x
2026-02-04 20:18
renew-dummy-cert
725
B
-rwxr-xr-x
2026-02-23 07:51
renice
16.46
KB
-rwxr-xr-x
2026-02-04 20:18
replace
3.52
MB
-rwxr-xr-x
2025-04-25 17:25
repo-graph
3.62
KB
-rwxr-xr-x
2024-04-08 10:02
repoclosure
3.62
KB
-rwxr-xr-x
2024-04-08 10:02
repodiff
3.62
KB
-rwxr-xr-x
2024-04-08 10:02
repomanage
3.62
KB
-rwxr-xr-x
2024-04-08 10:02
repoquery
3.62
KB
-rwxr-xr-x
2024-04-08 10:02
reposync
3.62
KB
-rwxr-xr-x
2024-04-08 10:02
repotrack
3.62
KB
-rwxr-xr-x
2024-04-08 10:02
rescan-scsi-bus.sh
38.24
KB
-rwxr-xr-x
2022-10-08 11:49
reset
24.76
KB
-rwxr-xr-x
2023-10-14 18:54
resizecons
20.77
KB
-rwxr-xr-x
2023-10-14 21:01
resolve_stack_dump
3.54
MB
-rwxr-xr-x
2025-04-25 17:25
resolvectl
195.75
KB
-rwxr-xr-x
2026-04-23 11:13
resolveip
3.54
MB
-rwxr-xr-x
2025-04-25 17:25
restore_infected
1019
B
-rwxr-xr-x
2024-01-23 10:33
rev
12.46
KB
-rwxr-xr-x
2026-02-04 20:18
rftp
8.68
KB
-rwxr-xr-x
2019-10-12 10:41
rhn_register
11.88
KB
-rwxr-xr-x
2021-10-08 19:29
rlogin-cwd
501
B
-rwxr-xr-x
2019-10-12 10:41
rm
70.38
KB
-rwxr-xr-x
2026-03-24 13:05
rmdir
45.46
KB
-rwxr-xr-x
2026-03-24 13:05
rnano
247.94
KB
-rwxr-xr-x
2024-09-24 02:16
rpcbind
61.55
KB
-rwxr-xr-x
2022-10-12 11:00
rpcinfo
32.64
KB
-rwxr-xr-x
2022-10-12 11:00
rpm
20.85
KB
-rwxr-xr-x
2024-12-17 04:11
rpm2archive
20.46
KB
-rwxr-xr-x
2024-12-17 04:11
rpm2cpio
11.84
KB
-rwxr-xr-x
2024-12-17 04:11
rpmdb
16.96
KB
-rwxr-xr-x
2024-12-17 04:11
rpmkeys
16.87
KB
-rwxr-xr-x
2024-12-17 04:11
rpmquery
20.85
KB
-rwxr-xr-x
2024-12-17 04:11
rpmverify
20.85
KB
-rwxr-xr-x
2024-12-17 04:11
rsync
510.13
KB
-rwxr-xr-x
2026-04-02 11:49
rsyslog-recover-qi.pl
5.96
KB
-rwxr-xr-x
2024-11-05 02:34
run-parts
1.94
KB
-rwxr-xr-x
2021-04-08 09:38
run-with-aspell
85
B
-rwxr-xr-x
2022-04-18 15:10
runcon
37.38
KB
-rwxr-xr-x
2026-03-24 13:05
rvi
1.13
MB
-rwxr-xr-x
2026-04-29 09:00
rview
1.13
MB
-rwxr-xr-x
2026-04-29 09:00
sadf
334.57
KB
-rwxr-xr-x
2024-07-03 09:57
sar
135.77
KB
-rwxr-xr-x
2024-07-03 09:57
scalar
2.18
MB
-rwxr-xr-x
2025-07-23 06:59
sccmap
20.62
KB
-rwxr-xr-x
2024-04-06 12:47
scl
36.87
KB
-rwxr-xr-x
2023-04-01 16:10
scl_enabled
258
B
-rwxr-xr-x
2017-08-25 08:23
scl_source
1.82
KB
-rwxr-xr-x
2023-04-01 16:10
scp
102.84
KB
-rwxr-xr-x
2026-04-02 13:37
screen
482.46
KB
-rwxr-sr-x
2021-05-05 10:04
script
36.8
KB
-rwxr-xr-x
2026-02-04 20:18
scriptreplay
29
KB
-rwxr-xr-x
2026-02-04 20:18
scsi-rescan
38.24
KB
-rwxr-xr-x
2022-10-08 11:49
scsi_logging_level
8.38
KB
-rwxr-xr-x
2022-10-08 11:49
scsi_mandat
3.52
KB
-rwxr-xr-x
2022-10-08 11:49
scsi_readcap
1.3
KB
-rwxr-xr-x
2022-10-08 11:49
scsi_ready
1.09
KB
-rwxr-xr-x
2022-10-08 11:49
scsi_satl
3.77
KB
-rwxr-xr-x
2022-10-08 11:49
scsi_start
1.25
KB
-rwxr-xr-x
2022-10-08 11:49
scsi_stop
1.44
KB
-rwxr-xr-x
2022-10-08 11:49
scsi_temperature
936
B
-rwxr-xr-x
2022-10-08 11:49
sdiff
105.33
KB
-rwxr-xr-x
2020-05-04 15:15
secon
25.46
KB
-rwxr-xr-x
2024-07-02 21:04
secret-tool
21.17
KB
-rwxr-xr-x
2019-11-15 09:37
sed
115.27
KB
-rwxr-xr-x
2026-04-14 19:22
selectorctl
7.63
KB
-rwxr-xr-x
2026-04-10 12:50
semodule_expand
12.28
KB
-rwxr-xr-x
2024-07-02 21:04
semodule_link
12.28
KB
-rwxr-xr-x
2024-07-02 21:04
semodule_package
16.68
KB
-rwxr-xr-x
2024-07-02 21:04
semodule_unpackage
12.3
KB
-rwxr-xr-x
2024-07-02 21:04
seq
53.45
KB
-rwxr-xr-x
2026-03-24 13:05
sessreg
17.38
KB
-rwxr-xr-x
2019-10-15 13:08
setarch
20.76
KB
-rwxr-xr-x
2026-02-04 20:18
setfacl
37.65
KB
-rwxr-xr-x
2024-04-06 12:15
setfont
45.19
KB
-rwxr-xr-x
2023-10-14 21:01
setkeycodes
12.56
KB
-rwxr-xr-x
2023-10-14 21:01
setleds
16.6
KB
-rwxr-xr-x
2023-10-14 21:01
setmetamode
12.56
KB
-rwxr-xr-x
2023-10-14 21:01
setpriv
45.16
KB
-rwxr-xr-x
2026-02-04 20:18
setsid
16.38
KB
-rwxr-xr-x
2026-02-04 20:18
setterm
45.13
KB
-rwxr-xr-x
2026-02-04 20:18
setup-nsssysinit
1.5
KB
-rwxr-xr-x
2026-04-14 17:44
setup-nsssysinit.sh
1.5
KB
-rwxr-xr-x
2026-04-14 17:44
setvtrgb
16.64
KB
-rwxr-xr-x
2023-10-14 21:01
sfdp
12.26
KB
-rwxr-xr-x
2024-04-06 12:47
sftp
159.74
KB
-rwxr-xr-x
2026-04-02 13:37
sg
42.46
KB
-rwsr-xr-x
2025-12-18 13:51
sg_bg_ctl
16.07
KB
-rwxr-xr-x
2022-10-08 11:49
sg_compare_and_write
20.9
KB
-rwxr-xr-x
2022-10-08 11:49
sg_copy_results
20.81
KB
-rwxr-xr-x
2022-10-08 11:49
sg_dd
44.58
KB
-rwxr-xr-x
2022-10-08 11:49
sg_decode_sense
20.33
KB
-rwxr-xr-x
2022-10-08 11:49
sg_emc_trespass
12.26
KB
-rwxr-xr-x
2022-10-08 11:49
sg_format
33.37
KB
-rwxr-xr-x
2022-10-08 11:49
sg_get_config
33.31
KB
-rwxr-xr-x
2022-10-08 11:49
sg_get_lba_status
20.46
KB
-rwxr-xr-x
2022-10-08 11:49
sg_ident
16.17
KB
-rwxr-xr-x
2022-10-08 11:49
sg_inq
117.91
KB
-rwxr-xr-x
2022-10-08 11:49
sg_logs
150.02
KB
-rwxr-xr-x
2022-10-08 11:49
sg_luns
24.85
KB
-rwxr-xr-x
2022-10-08 11:49
sg_map
16.41
KB
-rwxr-xr-x
2022-10-08 11:49
sg_map26
24.87
KB
-rwxr-xr-x
2022-10-08 11:49
sg_modes
43.88
KB
-rwxr-xr-x
2022-10-08 11:49
sg_opcodes
28.69
KB
-rwxr-xr-x
2022-10-08 11:49
sg_persist
34.13
KB
-rwxr-xr-x
2022-10-08 11:49
sg_prevent
12.07
KB
-rwxr-xr-x
2022-10-08 11:49
sg_raw
24.38
KB
-rwxr-xr-x
2022-10-08 11:49
sg_rbuf
20.84
KB
-rwxr-xr-x
2022-10-08 11:49
sg_rdac
15.88
KB
-rwxr-xr-x
2022-10-08 11:49
sg_read
24.41
KB
-rwxr-xr-x
2022-10-08 11:49
sg_read_attr
34.79
KB
-rwxr-xr-x
2022-10-08 11:49
sg_read_block_limits
12.12
KB
-rwxr-xr-x
2022-10-08 11:49
sg_read_buffer
20.96
KB
-rwxr-xr-x
2022-10-08 11:49
sg_read_long
16.27
KB
-rwxr-xr-x
2022-10-08 11:49
sg_readcap
20.86
KB
-rwxr-xr-x
2022-10-08 11:49
sg_reassign
16.22
KB
-rwxr-xr-x
2022-10-08 11:49
sg_referrals
16.23
KB
-rwxr-xr-x
2022-10-08 11:49
sg_rep_zones
20.66
KB
-rwxr-xr-x
2022-10-08 11:49
sg_requests
16.3
KB
-rwxr-xr-x
2022-10-08 11:49
sg_reset
16.73
KB
-rwxr-xr-x
2022-10-08 11:49
sg_reset_wp
16.17
KB
-rwxr-xr-x
2022-10-08 11:49
sg_rmsn
12.06
KB
-rwxr-xr-x
2022-10-08 11:49
sg_rtpg
16.16
KB
-rwxr-xr-x
2022-10-08 11:49
sg_safte
20.27
KB
-rwxr-xr-x
2022-10-08 11:49
sg_sanitize
24.58
KB
-rwxr-xr-x
2022-10-08 11:49
sg_sat_identify
16.71
KB
-rwxr-xr-x
2022-10-08 11:49
sg_sat_phy_event
20.59
KB
-rwxr-xr-x
2022-10-08 11:49
sg_sat_read_gplog
16.3
KB
-rwxr-xr-x
2022-10-08 11:49
sg_sat_set_features
16.27
KB
-rwxr-xr-x
2022-10-08 11:49
sg_scan
16.5
KB
-rwxr-xr-x
2022-10-08 11:49
sg_seek
16.85
KB
-rwxr-xr-x
2022-10-08 11:49
sg_senddiag
25.27
KB
-rwxr-xr-x
2022-10-08 11:49
sg_ses
118.23
KB
-rwxr-xr-x
2022-10-08 11:49
sg_ses_microcode
29.48
KB
-rwxr-xr-x
2022-10-08 11:49
sg_start
20.93
KB
-rwxr-xr-x
2022-10-08 11:49
sg_stpg
20.3
KB
-rwxr-xr-x
2022-10-08 11:49
sg_stream_ctl
20.27
KB
-rwxr-xr-x
2022-10-08 11:49
sg_sync
16.22
KB
-rwxr-xr-x
2022-10-08 11:49
sg_test_rwbuf
20.73
KB
-rwxr-xr-x
2022-10-08 11:49
sg_timestamp
20.74
KB
-rwxr-xr-x
2022-10-08 11:49
sg_turs
16.74
KB
-rwxr-xr-x
2022-10-08 11:49
sg_unmap
24.32
KB
-rwxr-xr-x
2022-10-08 11:49
sg_verify
20.46
KB
-rwxr-xr-x
2022-10-08 11:49
sg_vpd
108.75
KB
-rwxr-xr-x
2022-10-08 11:49
sg_wr_mode
20.3
KB
-rwxr-xr-x
2022-10-08 11:49
sg_write_buffer
21.24
KB
-rwxr-xr-x
2022-10-08 11:49
sg_write_long
16.33
KB
-rwxr-xr-x
2022-10-08 11:49
sg_write_same
24.48
KB
-rwxr-xr-x
2022-10-08 11:49
sg_write_verify
20.78
KB
-rwxr-xr-x
2022-10-08 11:49
sg_write_x
53.75
KB
-rwxr-xr-x
2022-10-08 11:49
sg_xcopy
40.59
KB
-rwxr-xr-x
2022-10-08 11:49
sg_zone
16.3
KB
-rwxr-xr-x
2022-10-08 11:49
sginfo
74.85
KB
-rwxr-xr-x
2022-10-08 11:49
sgm_dd
32.55
KB
-rwxr-xr-x
2022-10-08 11:49
sgp_dd
36.95
KB
-rwxr-xr-x
2022-10-08 11:49
sh
1.1
MB
-rwxr-xr-x
2025-08-26 08:48
sha1hmac
32.66
KB
-rwxr-xr-x
2024-03-30 14:16
sha1sum
45.55
KB
-rwxr-xr-x
2026-03-24 13:05
sha224hmac
32.66
KB
-rwxr-xr-x
2024-03-30 14:16
sha224sum
45.58
KB
-rwxr-xr-x
2026-03-24 13:05
sha256hmac
32.66
KB
-rwxr-xr-x
2024-03-30 14:16
sha256sum
45.58
KB
-rwxr-xr-x
2026-03-24 13:05
sha384hmac
32.66
KB
-rwxr-xr-x
2024-03-30 14:16
sha384sum
45.59
KB
-rwxr-xr-x
2026-03-24 13:05
sha512hmac
32.66
KB
-rwxr-xr-x
2024-03-30 14:16
sha512sum
45.59
KB
-rwxr-xr-x
2026-03-24 13:05
shasum
9.66
KB
-rwxr-xr-x
2019-10-14 12:00
showconsolefont
20.73
KB
-rwxr-xr-x
2023-10-14 21:01
showkey
16.58
KB
-rwxr-xr-x
2023-10-14 21:01
showrgb
13.05
KB
-rwxr-xr-x
2019-10-15 13:08
shred
61.85
KB
-rwxr-xr-x
2026-03-24 13:05
shuf
58.09
KB
-rwxr-xr-x
2026-03-24 13:05
sieve-dump
30.84
KB
-rwxr-xr-x
2026-02-03 19:40
sieve-filter
40.27
KB
-rwxr-xr-x
2026-02-03 19:40
sieve-test
40.2
KB
-rwxr-xr-x
2026-02-03 19:40
sievec
35.1
KB
-rwxr-xr-x
2026-02-03 19:40
signver
114.79
KB
-rwxr-xr-x
2026-04-14 17:44
sim_client
16.28
KB
-rwxr-xr-x
2025-06-03 02:06
size
33.25
KB
-rwxr-xr-x
2025-12-18 14:21
skill
28.8
KB
-rwxr-xr-x
2023-10-14 20:31
slabinfo
36.15
KB
-rwxr-xr-x
2026-03-13 14:03
slabtop
20.84
KB
-rwxr-xr-x
2023-10-14 20:31
sleep
37.4
KB
-rwxr-xr-x
2026-03-24 13:05
slencheck
12.29
KB
-rwxr-xr-x
2025-12-18 13:02
sm3hmac
32.66
KB
-rwxr-xr-x
2024-03-30 14:16
smtpd2.7.py
18.11
KB
-rwxr-xr-x
2024-04-10 04:57
smtpd2.py
18.11
KB
-rwxr-xr-x
2024-04-10 04:57
snice
28.8
KB
-rwxr-xr-x
2023-10-14 20:31
socat
406.49
KB
-rwxr-xr-x
2025-07-15 09:33
soelim
42.55
KB
-rwxr-xr-x
2019-10-13 14:29
sort
123.48
KB
-rwxr-xr-x
2026-03-24 13:05
sotruss
4.18
KB
-rwxr-xr-x
2026-03-17 16:54
spell
122
B
-rwxr-xr-x
2022-04-18 15:10
splain
18.7
KB
-rwxr-xr-x
2025-07-28 08:08
split
58.05
KB
-rwxr-xr-x
2026-03-24 13:05
sprof
28.67
KB
-rwxr-xr-x
2026-03-17 17:06
sqlite3
1.28
MB
-rwxr-xr-x
2025-07-29 01:27
ssh
757.5
KB
-rwxr-xr-x
2026-04-02 13:37
ssh-add
346.11
KB
-rwxr-xr-x
2026-04-02 13:37
ssh-agent
325.58
KB
-rwxr-xr-x
2026-04-02 13:37
ssh-copy-id
10.44
KB
-rwxr-xr-x
2026-04-02 13:37
ssh-keygen
427.19
KB
-rwxr-xr-x
2026-04-02 13:37
ssh-keyscan
428.52
KB
-rwxr-xr-x
2026-04-02 13:37
ssltap
130.51
KB
-rwxr-xr-x
2026-04-14 17:44
sss_ssh_authorizedkeys
28.78
KB
-rwxr-xr-x
2026-02-10 17:01
sss_ssh_knownhostsproxy
28.78
KB
-rwxr-xr-x
2026-02-10 17:01
stat
86.16
KB
-rwxr-xr-x
2026-03-24 13:05
stdbuf
49.5
KB
-rwxr-xr-x
2026-03-24 13:05
strace
1.94
MB
-rwxr-xr-x
2025-01-28 01:32
strace-log-merge
1.78
KB
-rwxr-xr-x
2021-02-16 08:00
stream
11.83
KB
-rwxr-xr-x
2025-04-01 13:15
strings
37.43
KB
-rwxr-xr-x
2025-12-18 14:21
strip
240.09
KB
-rwxr-xr-x
2025-12-18 14:21
stty
77.61
KB
-rwxr-xr-x
2026-03-24 13:05
su
48.99
KB
-rwsr-x---
2026-02-04 20:18
sudo
186.52
KB
---s--x--x
2026-04-29 08:49
sudoedit
186.52
KB
---s--x--x
2026-04-29 08:49
sudoreplay
119.2
KB
---x--x--x
2026-04-29 08:49
sum
45.53
KB
-rwxr-xr-x
2026-03-24 13:05
sxpm
28.81
KB
-rwxr-xr-x
2024-03-30 13:53
sync
37.35
KB
-rwxr-xr-x
2026-03-24 13:05
systemctl
218.45
KB
-rwxr-xr-x
2026-04-23 11:13
systemd-analyze
1.56
MB
-rwxr-xr-x
2026-04-23 11:13
systemd-ask-password
12.02
KB
-rwxr-xr-x
2026-04-23 11:13
systemd-cat
16.03
KB
-rwxr-xr-x
2026-04-23 11:13
systemd-cgls
16.44
KB
-rwxr-xr-x
2026-04-23 11:13
systemd-cgtop
32.88
KB
-rwxr-xr-x
2026-04-23 11:13
systemd-delta
24.45
KB
-rwxr-xr-x
2026-04-23 11:13
systemd-detect-virt
11.88
KB
-rwxr-xr-x
2026-04-23 11:13
systemd-escape
16.01
KB
-rwxr-xr-x
2026-04-23 11:13
systemd-firstboot
36.98
KB
-rwxr-xr-x
2026-04-23 11:13
systemd-hwdb
28.91
KB
-rwxr-xr-x
2026-04-23 11:13
systemd-inhibit
16.03
KB
-rwxr-xr-x
2026-04-23 11:13
systemd-machine-id-setup
24.75
KB
-rwxr-xr-x
2026-04-23 11:13
systemd-mount
52.63
KB
-rwxr-xr-x
2026-04-23 11:13
systemd-notify
16.03
KB
-rwxr-xr-x
2026-04-23 11:13
systemd-path
16.02
KB
-rwxr-xr-x
2026-04-23 11:13
systemd-resolve
195.75
KB
-rwxr-xr-x
2026-04-23 11:13
systemd-run
48.95
KB
-rwxr-xr-x
2026-04-23 11:13
systemd-socket-activate
24.77
KB
-rwxr-xr-x
2026-04-23 11:13
systemd-stdio-bridge
16.02
KB
-rwxr-xr-x
2026-04-23 11:13
systemd-sysusers
53.05
KB
-rwxr-xr-x
2026-04-23 11:13
systemd-tmpfiles
73.3
KB
-rwxr-xr-x
2026-04-23 11:13
systemd-tty-ask-password-agent
32.82
KB
-rwxr-xr-x
2026-04-23 11:13
systemd-umount
52.63
KB
-rwxr-xr-x
2026-04-23 11:13
tabs
16.55
KB
-rwxr-xr-x
2023-10-14 18:54
tac
41.49
KB
-rwxr-xr-x
2026-03-24 13:05
tail
74.13
KB
-rwxr-xr-x
2026-03-24 13:05
tapestat
41.32
KB
-rwxr-xr-x
2024-07-03 09:57
tar
448.99
KB
-rwxr-xr-x
2025-08-26 08:57
taskset
37.26
KB
-rwxr-xr-x
2026-02-04 20:18
tbl
154.61
KB
-rwxr-xr-x
2019-10-13 14:29
tclsh
9.04
KB
-rwxr-xr-x
2019-10-12 00:25
tclsh8.6
9.04
KB
-rwxr-xr-x
2019-10-12 00:25
tcptraceroute
1.55
KB
-rwxr-xr-x
2025-03-11 07:45
teamd
160.52
KB
-rwxr-xr-x
2023-03-31 20:40
teamdctl
30.37
KB
-rwxr-xr-x
2023-03-31 20:40
teamnl
20.47
KB
-rwxr-xr-x
2023-03-31 20:40
tee
41.48
KB
-rwxr-xr-x
2026-03-24 13:05
test
53.55
KB
-rwxr-xr-x
2026-03-24 13:05
tic
85.31
KB
-rwxr-xr-x
2023-10-14 18:54
timed-read
303
B
-rwxr-xr-x
2019-10-12 10:41
timed-run
277
B
-rwxr-xr-x
2019-10-12 10:41
timedatectl
36.96
KB
-rwxr-xr-x
2026-04-23 11:13
timeout
41.85
KB
-rwxr-xr-x
2026-03-24 13:05
tload
16.76
KB
-rwxr-xr-x
2023-10-14 20:31
tmon
39.63
KB
-rwxr-xr-x
2026-03-13 14:03
tmpwatch
35.47
KB
-rwxr-xr-x
2019-10-12 11:32
toe
16.45
KB
-rwxr-xr-x
2023-10-14 18:54
top
121.7
KB
-rwxr-xr-x
2023-10-14 20:31
touch
93.94
KB
-rwxr-xr-x
2026-03-24 13:05
tput
24.8
KB
-rwxr-xr-x
2023-10-14 18:54
tr
49.63
KB
-rwxr-xr-x
2026-03-24 13:05
tracepath
20.44
KB
-rwxr-xr-x
2023-10-14 17:19
traceroute
70.97
KB
-rwxr-xr-x
2025-03-11 07:45
traceroute6
70.97
KB
-rwxr-xr-x
2025-03-11 07:45
tred
16.59
KB
-rwxr-xr-x
2024-04-06 12:47
troff
805.02
KB
-rwxr-xr-x
2019-10-13 14:29
true
33.33
KB
-rwxr-xr-x
2026-03-24 13:05
truncate
41.36
KB
-rwxr-xr-x
2026-03-24 13:05
trust
219.55
KB
-rwxr-xr-x
2024-04-06 14:16
tset
24.76
KB
-rwxr-xr-x
2023-10-14 18:54
tsort
41.49
KB
-rwxr-xr-x
2026-03-24 13:05
tty
33.31
KB
-rwxr-xr-x
2026-03-24 13:05
turbostat
130.8
KB
-rwxr-xr-x
2026-03-13 14:03
twopi
12.26
KB
-rwxr-xr-x
2024-04-06 12:47
type
28
B
-rwxr-xr-x
2025-08-26 08:48
tzselect
15.01
KB
-rwxr-xr-x
2026-03-17 16:54
uapi
3.38
MB
-rwxr-xr-x
2026-04-24 03:04
ucs2any
24.41
KB
-rwxr-xr-x
2021-10-09 23:42
udevadm
424.56
KB
-rwxr-xr-x
2026-04-23 11:13
udisksctl
60.73
KB
-rwxr-xr-x
2025-09-03 09:08
ul
20.59
KB
-rwxr-xr-x
2026-02-04 20:18
ulimit
30
B
-rwxr-xr-x
2025-08-26 08:48
umask
29
B
-rwxr-xr-x
2025-08-26 08:48
umount
32.75
KB
-rwsr-xr-x
2026-02-04 20:18
unalias
31
B
-rwxr-xr-x
2025-08-26 08:48
uname
37.33
KB
-rwxr-xr-x
2026-03-24 13:05
uname26
20.76
KB
-rwxr-xr-x
2026-02-04 20:18
unbuffer
640
B
-rwxr-xr-x
2019-10-12 10:41
unexpand
45.61
KB
-rwxr-xr-x
2026-03-24 13:05
unflatten
16.63
KB
-rwxr-xr-x
2024-04-06 12:47
unicode_start
2.55
KB
-rwxr-xr-x
2023-10-14 20:59
unicode_stop
363
B
-rwxr-xr-x
2023-10-14 20:59
uniq
49.64
KB
-rwxr-xr-x
2026-03-24 13:05
unlink
33.34
KB
-rwxr-xr-x
2026-03-24 13:05
unpigz
125.38
KB
-rwxr-xr-x
2020-06-01 15:15
unshare
24.93
KB
-rwxr-xr-x
2026-02-04 20:18
unversioned-python
157
B
-rwxr-xr-x
2026-04-28 05:55
unxz
82.09
KB
-rwxr-xr-x
2022-06-14 13:03
unzip
201.88
KB
-rwxr-xr-x
2025-06-03 02:10
unzipsfx
101.48
KB
-rwxr-xr-x
2025-06-03 02:10
update-ca-trust
1.24
KB
-rwxr-xr-x
2025-10-30 14:25
update-crypto-policies
87
B
-rwxr-xr-x
2023-08-01 15:18
update-gtk-immodules
313
B
-rwxr-xr-x
2021-04-06 13:52
update-mime-database
57.22
KB
-rwxr-xr-x
2024-04-06 14:07
uptime
12.59
KB
-rwxr-xr-x
2023-10-14 20:31
users
37.4
KB
-rwxr-xr-x
2026-03-24 13:05
usleep
11.88
KB
-rwxr-xr-x
2025-11-10 10:42
utmpdump
28.66
KB
-rwxr-xr-x
2026-02-04 20:18
uuclient
15.88
KB
-rwxr-xr-x
2025-06-03 02:06
uuidgen
16.38
KB
-rwxr-xr-x
2026-02-04 20:18
uuidparse
37.13
KB
-rwxr-xr-x
2026-02-04 20:18
vdir
139.91
KB
-rwxr-xr-x
2026-03-24 13:05
vi
1.13
MB
-rwxr-xr-x
2026-04-29 09:00
view
1.13
MB
-rwxr-xr-x
2026-04-29 09:00
vimdot
1.06
KB
-rwxr-xr-x
2024-04-06 12:47
vlock
20.83
KB
-rwxr-xr-x
2023-10-14 21:01
vmstat
36.79
KB
-rwxr-xr-x
2023-10-14 20:31
w
20.75
KB
-rwxr-xr-x
2023-10-14 20:31
wait
28
B
-rwxr-xr-x
2025-08-26 08:48
wall
33.05
KB
-rwxr-xr-x
2026-02-04 20:18
watch
29.19
KB
-rwxr-xr-x
2023-10-14 20:31
watchgnupg
16.44
KB
-rwxr-xr-x
2026-01-16 01:48
wc
49.64
KB
-rwxr-xr-x
2026-03-24 13:05
wdctl
36.98
KB
-rwxr-xr-x
2026-02-04 20:18
weather
2.18
KB
-rwxr-xr-x
2019-10-12 10:41
wget
521.41
KB
-rwxr-xr-x
2024-08-13 22:22
whatis
54.04
KB
-rwxr-xr-x
2021-10-08 13:04
whereis
29.27
KB
-rwxr-xr-x
2026-02-04 20:18
which
29.38
KB
-rwxr-xr-x
2025-08-26 08:54
whiptail
33.09
KB
-rwxr-xr-x
2020-06-01 14:11
who
53.59
KB
-rwxr-xr-x
2026-03-24 13:05
whoami
33.34
KB
-rwxr-xr-x
2026-03-24 13:05
wish
13.05
KB
-rwxr-xr-x
2019-10-16 17:25
wish8.6
13.05
KB
-rwxr-xr-x
2019-10-16 17:25
wmf2eps
17.15
KB
-rwxr-xr-x
2019-10-14 15:47
wmf2fig
17.15
KB
-rwxr-xr-x
2019-10-14 15:47
wmf2gd
17.14
KB
-rwxr-xr-x
2019-10-14 15:47
wmf2svg
17.16
KB
-rwxr-xr-x
2019-10-14 15:47
wmf2x
17.13
KB
-rwxr-xr-x
2019-10-14 15:47
word-list-compress
11.99
KB
-rwxr-xr-x
2022-04-18 15:10
write
20.62
KB
-rwxr-sr-x
2026-02-04 20:18
wsrep_sst_backup
2.39
KB
-rwxr-xr-x
2025-04-25 16:28
wsrep_sst_common
66.82
KB
-rw-r--r--
2025-04-25 16:28
wsrep_sst_mariabackup
49.47
KB
-rwxr-xr-x
2025-04-25 16:28
wsrep_sst_mysqldump
8.08
KB
-rwxr-xr-x
2025-04-25 16:28
wsrep_sst_rsync
29.72
KB
-rwxr-xr-x
2025-04-25 16:28
wsrep_sst_rsync_wan
29.72
KB
-rwxr-xr-x
2025-04-25 16:28
x265
117.12
KB
-rwxr-xr-x
2021-07-12 15:31
x86_64
20.76
KB
-rwxr-xr-x
2026-02-04 20:18
x86_64-redhat-linux-c++
1.21
MB
-rwxr-xr-x
2025-08-26 09:47
x86_64-redhat-linux-g++
1.21
MB
-rwxr-xr-x
2025-08-26 09:47
x86_64-redhat-linux-gcc
1.21
MB
-rwxr-xr-x
2025-08-26 09:47
x86_64-redhat-linux-gcc-8
1.21
MB
-rwxr-xr-x
2025-08-26 09:47
x86_64-redhat-linux-gnu-pkg-config
424
B
-rwxr-xr-x
2019-10-13 06:57
x86_energy_perf_policy
31.95
KB
-rwxr-xr-x
2026-03-13 14:03
xargs
74.11
KB
-rwxr-xr-x
2025-12-18 14:57
xgamma
17.08
KB
-rwxr-xr-x
2019-10-15 13:08
xgettext
283.88
KB
-rwxr-xr-x
2019-11-18 17:17
xhost
17.12
KB
-rwxr-xr-x
2019-10-15 13:08
xinput
63.61
KB
-rwxr-xr-x
2019-10-15 13:08
xkibitz
4.75
KB
-rwxr-xr-x
2019-10-12 10:41
xkill
17.1
KB
-rwxr-xr-x
2019-10-15 13:08
xml2-config
1.71
KB
-rwxr-xr-x
2017-07-23 05:10
xmlcatalog
20.38
KB
-rwxr-xr-x
2026-04-28 11:31
xmllint
73.37
KB
-rwxr-xr-x
2026-04-28 11:31
xmlwf
36.96
KB
-rwxr-xr-x
2025-11-20 07:31
xmodmap
39.98
KB
-rwxr-xr-x
2019-10-15 13:08
xorg-x11-fonts-update-dirs
1.29
KB
-rwxr--r--
2021-10-09 23:42
xrandr
65.46
KB
-rwxr-xr-x
2019-10-15 13:08
xrdb
33.98
KB
-rwxr-xr-x
2019-10-15 13:08
xrefresh
17.94
KB
-rwxr-xr-x
2019-10-15 13:08
xset
37.2
KB
-rwxr-xr-x
2019-10-15 13:08
xsetpointer
13.05
KB
-rwxr-xr-x
2019-10-15 13:08
xsetroot
21.44
KB
-rwxr-xr-x
2019-10-15 13:08
xslt-config
2.36
KB
-rwxr-xr-x
2015-05-10 14:11
xsltproc
28.47
KB
-rwxr-xr-x
2025-08-26 08:55
xstdcmap
17.68
KB
-rwxr-xr-x
2019-10-15 13:08
xsubpp
4.96
KB
-rwxr-xr-x
2019-10-13 08:58
xz
82.09
KB
-rwxr-xr-x
2022-06-14 13:03
xzcat
82.09
KB
-rwxr-xr-x
2022-06-14 13:03
xzcmp
6.48
KB
-rwxr-xr-x
2022-06-14 13:03
xzdec
16.48
KB
-rwxr-xr-x
2022-06-14 13:03
xzdiff
6.48
KB
-rwxr-xr-x
2022-06-14 13:03
xzegrep
5.76
KB
-rwxr-xr-x
2022-06-14 13:03
xzfgrep
5.76
KB
-rwxr-xr-x
2022-06-14 13:03
xzgrep
5.76
KB
-rwxr-xr-x
2022-06-14 13:03
xzless
1.76
KB
-rwxr-xr-x
2022-06-14 13:03
xzmore
2.11
KB
-rwxr-xr-x
2022-06-14 13:03
yat2m
33.34
KB
-rwxr-xr-x
2019-10-12 12:20
yes
33.37
KB
-rwxr-xr-x
2026-03-24 13:05
ypdomainname
21.16
KB
-rwxr-xr-x
2019-10-11 13:06
yum
2.05
KB
-rwxr-xr-x
2025-03-11 09:47
yum-builddep
3.62
KB
-rwxr-xr-x
2024-04-08 10:02
yum-config-manager
3.62
KB
-rwxr-xr-x
2024-04-08 10:02
yum-debug-dump
3.62
KB
-rwxr-xr-x
2024-04-08 10:02
yum-debug-restore
3.62
KB
-rwxr-xr-x
2024-04-08 10:02
yum-groups-manager
3.62
KB
-rwxr-xr-x
2024-04-08 10:02
yumdownloader
3.62
KB
-rwxr-xr-x
2024-04-08 10:02
zcat
1.94
KB
-rwxr-xr-x
2022-04-27 05:49
zcmp
1.64
KB
-rwxr-xr-x
2022-04-27 05:49
zdiff
5.74
KB
-rwxr-xr-x
2022-04-27 05:49
zegrep
29
B
-rwxr-xr-x
2022-04-27 05:49
zfgrep
29
B
-rwxr-xr-x
2022-04-27 05:49
zforce
2.03
KB
-rwxr-xr-x
2022-04-27 05:49
zgrep
7.4
KB
-rwxr-xr-x
2022-04-27 05:49
zip
229
KB
-rwxr-xr-x
2019-10-11 13:11
zipcloak
102.91
KB
-rwxr-xr-x
2019-10-11 13:11
zipdetails
49.39
KB
-rwxr-xr-x
2019-10-13 09:48
zipgrep
2.88
KB
-rwxr-xr-x
2008-10-10 17:40
zipinfo
201.88
KB
-rwxr-xr-x
2025-06-03 02:10
zipnote
97.76
KB
-rwxr-xr-x
2019-10-11 13:11
zipsplit
97.76
KB
-rwxr-xr-x
2019-10-11 13:11
zless
2.15
KB
-rwxr-xr-x
2022-04-27 05:49
zmore
1.8
KB
-rwxr-xr-x
2022-04-27 05:49
znew
4.45
KB
-rwxr-xr-x
2022-04-27 05:49
zone2json
1.38
MB
-rwxr-xr-x
2025-08-26 16:35
zone2sql
1.4
MB
-rwxr-xr-x
2025-08-26 16:35
zsoelim
42.55
KB
-rwxr-xr-x
2019-10-13 14:29
Save
Rename
#!/usr/bin/perl # Copyright (c) 2000, 2017, Oracle and/or its affiliates. All rights reserved. # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU Library General Public # License as published by the Free Software Foundation; version 2 # 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 # Library General Public License for more details. # # You should have received a copy of the GNU Library General Public # License along with this library; if not, write to the Free # Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, # MA 02110-1335 USA # **************************** package MySQLaccess; #use strict; use File::Temp qw(tempfile tmpnam); use Fcntl; BEGIN { # **************************** # static information... $VERSION = "2.10, 13 Sep 2019"; $0 =~ m%/([^/]+)$%o; $script = $1; $script = 'MySQLAccess' unless $script; $script_conf = "$script.conf"; $script_log = $ENV{'HOME'}."/$script.log"; # **************************** # information on MariaDB $MYSQL = '/usr/bin/mysql'; # path to mysql executable $SERVER = '3.21'; $MYSQL_OPT = ' --batch --unbuffered'; $ACCESS_DB = 'mysql'; # name of DB with grant-tables $ACCESS_H = 'host'; # $ACCESS_U = 'user'; # $ACCESS_D = 'db'; # # Add/Edit privileges $ACCESS_H_TMP = 'host_tmp'; $ACCESS_U_TMP = 'user_tmp'; $ACCESS_D_TMP = 'db_tmp'; $ACCESS_H_BCK = 'host_backup'; $ACCESS_U_BCK = 'user_backup'; $ACCESS_D_BCK = 'db_backup'; $DIFF = '/usr/bin/diff'; $MYSQLDUMP = '/usr/bin/mysqldump'; #path to mysqldump executable $MYSQLADMIN= 'http://foobar.com/MySQLadmin'; #URL of CGI for manipulating #the temporary grant-tables } END { unlink $MYSQL_CNF if defined $MYSQL_CNF and not $DEBUG; } $INFO = <<"_INFO"; -------------------------------------------------------------------------- mysqlaccess (Version $VERSION) ~~~~~~~~~~~ Copyright (C) 1997,1998 Yves.Carlier\@rug.ac.be University of Ghent (RUG), Belgium Administratieve Informatieverwerking (AIV) report the access-privileges for a USER from a HOST to a DB Many thanks go to <monty\@mysql.com> and <psmith\@BayNetworks.COM> for their suggestions, debugging and patches. use `$script -?' to get more information on available options. From version 2.0x, $script can also be used through a WEB-browser if it is ran as a CGI-script. (See the release-notes) -------------------------------------------------------------------------- _INFO $OPTIONS = <<_OPTIONS; Usage: $script [host [user [db]]] OPTIONS -?, --help display this helpscreen and exit -v, --version print information on the program `$script' -u, --user=# username for logging in to the db -p, --password=# validate password for user -h, --host=# name or IP-number of the host -d, --db=# name of the database -U, --superuser=# connect as superuser -P, --spassword=# password for superuser -H, --rhost=# remote MariaDB-server to connect to --old_server connect to old MariaDB-server (before v3.21) which does not yet know how to handle full where clauses. -b, --brief single-line tabular report -t, --table report in table-format --relnotes print release-notes --plan print suggestions/ideas for future releases --howto some examples of how to run `$script' --debug=N enter debuglevel N (0..3) --copy reload temporary grant-tables from original ones --preview show differences in privileges after making changes in (temporary) grant-tables --commit copy grant-rules from temporary tables to grant-tables (!don't forget to do an mysqladmin reload) --rollback undo the last changes to the grant-tables. Note: At least the user and the db must be given (even with wildcards) If no host is given, `localhost' is assumed Wilcards (*,?,%,_) are allowed for host, user and db, but be sure to escape them from your shell!! (ie type \\* or '*') _OPTIONS $RELEASE = <<'_RELEASE'; Release Notes: ------------- 0.1-beta1: internal - first trial. 0.1-beta2: (1997-02-27) - complete rewrite of the granting-rules, based on the documentation found in de FAQ. - IP-number and name for a host are equiv. 0.1-beta3: (1997-03-10) - more information - 'localhost' and the name/ip of the local machine are now equiv. 0.1-beta4: (1997-03-11) - inform the user if he has not enough priv. to read the mysql db 1.0-beta1: (1997-03-12) suggestions by Monty: - connect as superuser with superpassword. - mysqlaccess could also notice if all tables are empty. This means that all user have full access! - It would be nice if one could optionally start mysqlaccess without any options just the arguments 'user db' or 'host user db', where host is 'localhost' if one uses only two arguments. 1.0-beta2: (1997-03-14) - bugfix: translation to reg.expr of \_ and \%. - bugfix: error in matching regular expression and string given by user which resulted in 'test_123' being matched with 'test' 1.0-beta3: (1997-03-14) - bugfix: the user-field should not be treated as a sql-regexpr, but as a plain string. - bugfix: the host-table should not be used if the host isn't empty in db or if the host isn't emty in user (Monty) 1.0-beta4: (1997-03-14) - bugfix: in an expression "$i = $j or $k", the '=' binds tighter than the or which results in problems... (by Monty) - running mysqlaccess with "perl -w" gives less warnings... ;-) 1.0-beta5: (1997-04-04) - bugfix: The table sorting was only being applied to the "user" table; all the tables need to be sorted. Rewrote the sort algorithm, and the table walk algorithm (no temp file anymore), and various other cleanups. I believe the access calculation is 100% correct. (by Paul D. Smith <psmith\@baynetworks.com>) - Allow the debug level to be set on the cmd line with --debug=N. (by Paul D. Smith <psmith\@baynetworks.com>) - More -w cleanups; should be totally -w-clean. (by Paul D. Smith <psmith\@baynetworks.com>) 1.1-beta1: (1997-04-xx) 1.1-beta2: (1997-04-11) - new options: --all_users : report access-rights for all possible users --all_dbs : report access-rights for all possible dbs --all_hosts : report access-rights for all possible hosts --brief : as brief as possible, don't mention notes,warnings and rules --password : validate password for user - layout: long messages are wrapped on the report. - functionality: more descriptive notes and warnings wildcards (*,?) are allowed in the user,host and db options setting xxxx=* is equiv to using option --all_xxxx note: make sure you escape your wildcards, so they don't get interpreted by the shell. use \* or '*' - bugfix: Fieldnames which should be skipped on the output can now have a first capital letter. - bugfix: any option with a '.' (eg ip-number) was interpreted as a wildcard-expression. - bugfix: When no entry was found in the db-table, the default accessrights are N, instead of the faulty Y in a previous version. 1.1-beta-3 : (1997-04-xx) 1.1-beta-4 : (1997-04-xx) 1.1-beta-5 : (1997-04-xx) 1.1 : (1997-04-28) - new options: --rhost : name of mysql-server to connect to --plan : print suggestions/ideas for future releases --relnotes : display release-notes --howto : display examples on how to use mysqlaccess --brief : single-line tabular output - functionality/bugfix: * removed options --all_users,--all_dbs,--all_hosts, which were redundant with the wildcard-expressions for the corresponding options. They made the processing of the commandline too painful and confusing ;-) (suggested by psmith) * redefined the option --brief, which now gives a single-line tabular output * Now we check if the right version of the mysql-client is used, since we might use an option not yet implemented in an older version (--unbuffered, since 3.0.18) Also the error-messages the mysql-client reports are better interpreted ;-) * Wildcards can now be given following the SQL-expression (%,_) and the Regular-expression (*,?) syntax. - speed: we now open a bidirectional pipe to the mysql-client, and keep it open throughout the whole run. Queries are written to, and the answers read from the pipe. (suggested by monty) - bugfixes: * the Rules were not properly reset over iterations * when in different tables the field-names were not identical, eg. Select_priv and select_priv, they were considered as definitions of 2 different access-rights. * the IP-number of a host with a name containing wildcards should not be searched for in Name2IP and IP2Name. * various other small things, pointed out by <monty> and <psmith> 1.2 : (1997-05-13) - bugfix: * Fixed bug in acl with anonymous user: Now if one gets accepted by the user table as a empty user name, the user name is set to '' when checking against the 'db' and 'host' tables. (Bug fixed in MySQL3.20.19) 1.2-1 : (1997-xx-xx) - bugfix: * hashes should be initialized with () instead of {} <psmith> * "my" variable $name masks earlier declaration in same scope, using perl 5.004 <????> 1.2-2 : (1997-06-10) 2.0p1-3 : (1997-10-xx) - new * packages * log-file for debug-output : /tmp/mysqlaccess.log * default values are read from a configuration file $script.conf first this file is looked for in the current directory; if not found it is looked for in /etc Note that when default-values are given, these can't get overridden by empty (blanc) values! * CGI-BIN version with HTML and forms interface. Simply place the script in an ScriptAliased directory, make the configuration file available in the that directory or in /etc, and point your browser to the right URL. * copy the grant-rules to temporary tables, where you are safe to play with them. * preview changes in privileges after changing grant-rules, before taking them into production * copy the new grant-rules from the temporary tables back to the grant-tables. * Undo all changes made in the grant-tables (1-level undo). -new options: * --table : as opposite of the --brief option. * --copy : (re)load temporary grant-tables from original ones. * --preview : preview changes in privileges after changing some or more entries in the grant-tables. * --commit : copy grant-rules from temporary tables to grant-tables (!don't forget to do an mysqladmin reload) * --rollback: undo the last changes to the grant-tables. - bugfix: * if the table db is empty, mysqlaccess freezed (by X Zhu <X.Zhu@Bradford.ac.uk>) 2.0 : (1997-10-09) - fixed some "-w" warnings. - complain when certain programs and paths can't be found. 2.01 : (1997-12-12) - bugfix: * rules for db-table where not calculated and reported correctly. 2.02 : (1998-01-xx) - bugfix: * Privileges of the user-table were not AND-ed properly with the other privileges. (reported by monty) - new option: * --old_server: mysqlaccess will now use a full where clause when retrieving information from the MySQL-server. If you are connecting to an old server (before v3.21) then use the option --old_server. 2.03 : (1998-02-27) - bugfix: * in Host::MatchTemplate: incorrect match if host-field was left empty. 2.04-alpha1 : (2000-02-11) Closes vulnerability due to former implementation requiring passwords to be passed on the command line. - functionality Option values for --password -p -spassword -P may now be omitted from command line, in which case the values will be prompted for. (fix supplied by Steve Harvey <sgh@vex.net>) 2.05: (2000-02-17) Monty Moved the log file from /tmp to ~ 2.06: Don't print '+++USING FULL WHERE CLAUSE+++' _RELEASE $TODO = <<_TODO; Plans: ----- -a full where clause is use now. How can we handle older servers? -add some more functionality for DNS. -select the warnings more carefuly. >> I think that the warnings should either be enhanced to _really_ >> understand and report real problems accurately, or restricted to >> only printing things that it knows with 100% certainty. <psmith) >> Why do I have both '%' and 'any_other_host' in there? Isn't that >> the same thing? I think it's because I have an actual host '%' in >> one of my tables. Probably the script should catch that and not >> duplicate output. <psmith> _TODO # From the FAQ: the Grant-algorithm # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # The host table is mainly to maintain a list of "secure" servers. # At TCX hosts contain a list of all machines on local network. These are granted # all privileges. # Technically the user grant is calculated by: # # 1.First sort all entries by host by putting host without wildcards first, # after this host with wildcards and entries with host = ". # Under each host sort user by the same criterias. # 2.Get grant for user from the "db" table. # 3.If hostname is "empty" for the found entry, AND the privileges with # the privileges for the host in "host" table. # (Remove all which is not "Y" in both) # 4.OR (add) the privileges for the user from the "user" table. # (add all privileges which is "Y" in "user") # # When matching, use the first found match. # # ----------------------------------------------------------------------------------- $HOWTO = <<_HOWTO; Examples of how to call $script: ~~~~~~~~ 1)Calling $script with 2 arguments: \$ $script root mysql ->report rights of user root logged on at the local host in db mysql Access-rights for USER 'root', from HOST 'localhost', to DB 'mysql' +-----------------+---+ +-----------------+---+ | select_priv | Y | | drop_priv | Y | | insert_priv | Y | | reload_priv | Y | | update_priv | Y | | shutdown_priv | Y | | delete_priv | Y | | process_priv | Y | | create_priv | Y | | file_priv | Y | +-----------------+---+ +-----------------+---+ BEWARE: Everybody can access your DB as user 'root' : WITHOUT supplying a password. Be very careful about it!! The following rules are used: db : 'No matching rule' host : 'Not processed: host-field is not empty in db-table.' user : 'localhost','root','','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y' 2)Calling $script with 3 arguments: \$ $script foo.bar nobody Foo ->report rights of user root logged in at machine foobar to db Foo Access-rights for USER 'nobody', from HOST 'foo.bar', to DB 'Foo' +-----------------+---+ +-----------------+---+ | select_priv | Y | | drop_priv | N | | insert_priv | Y | | reload_priv | N | | update_priv | Y | | shutdown_priv | N | | delete_priv | Y | | process_priv | N | | create_priv | N | | file_priv | N | +-----------------+---+ +-----------------+---+ BEWARE: Everybody can access your DB as user 'nobody' : WITHOUT supplying a password. Be very careful about it!! The following rules are used: db : 'foo.bar','Foo','nobody','Y','Y','Y','N','N','N' host : 'Not processed: host-field is not empty in db-table.' user : 'foo.bar','nobody','','N','N','N','Y','N','N','N','N','N','N' 3)Using wildcards: \$ $script \\* nobody Foo --brief ->report access-rights of user nobody from all machines to db Foo, and use a matrix-report. Sel Ins Upd Del Crea Drop Reld Shut Proc File Host,User,DB ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- -------------------- Y Y Y Y N N N N N N localhost,nobody,Foo N N N N N N N N N N %,nobody,Foo N N N N N N N N N N any_other_host,nobody,Foo _HOWTO # +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ # # START OF THE PROGRAM # # +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ # use Getopt::Long; use Sys::Hostname; use IPC::Open3; # **************************** # debugging flag # can be set to 0,1,2,3 # a higher value gives more info # ! this can also be set on the command-line $DEBUG = 0; # ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++>8 # Normally nothing should be changed beneeth this line # **************************** # no caching on STDOUT $|=1; $MYSQL_CNF = tmpnam(); %MYSQL_CNF = (client => { }, mysql => { }, mysqldump => { }, ); $NEW_USER = 'ANY_NEW_USER'; $NEW_DB = 'ANY_NEW_DB' ; # %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% # # mysqlaccess: # # ~~~~~~~~~~~ # # Lets get to it, # # and start the program by processing the parameters # # %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% # ($CMD,$CGI) = GetMode(); # **************************** # the copyright message should # always be printed (once) MySQLaccess::Report::Print_Header(); # ***************************** # Read configuration-file MySQLaccess::Debug::Print(1, "Reading configuration file..."); if (-f "/etc/$script_conf") { print "Configuration file '$script_conf' is found in '/etc/'\n"; require "/etc/$script_conf"; } elsif (-f "/usr/$script_conf") { print "Configuration file '$script_conf' is found in '/usr/'\n"; require "/usr/$script_conf"; } elsif (-f "./$script_conf") { print "\nERROR! Configuration file '$script_conf' is found in the current "; print "directory.\nThe permissible locations for this file are either "; print "/etc/ or /usr/\n"; print "Please move it to one of these locations and retry.\n\n"; exit 0; } # **************************** # Read in all parameters if ($MySQLaccess::CMD) { #command-line version # ---------------------------- # Get options from commandline $Getopt::Long::ignorecase=0; #case sensitive options if ( grep(/\-\?/,@ARGV) ) { MySQLaccess::Report::Print_Usage(); exit 0; } GetOptions("help" => \$Param{'help'} ,"host|h=s" => \$Param{'host'} ,"user|u=s" => \$Param{'user'} ,"password|p:s" => \$Param{'password'} ,"db|d=s" => \$Param{'db'} ,"superuser|U=s" => \$Param{'superuser'} ,"spassword|P:s" => \$Param{'spassword'} ,"rhost|H=s" => \$Param{'rhost'} ,"old_server" => \$Param{'old_server'} ,"debug=i" => \$Param{'DEBUG'} ,"brief|b" => \$Param{'brief'} ,"table|t" => \$Param{'table'} ,"relnotes" => \$Param{'relnotes'} ,"plan" => \$Param{'plan'} ,"howto" => \$Param{'howto'} ,"version|v" => \$Param{'version'} ,"preview" => \$Param{'preview'} ,"copy" => \$Param{'copy'} ,"commit" => \$Param{'commit'} ,'rollback' => \$Param{'rollback'} ); # ----------------------------- # set DEBUG $DEBUG = $Param{'DEBUG'} if ($Param{'DEBUG'}>=$DEBUG); # ----------------------------- # check for things which aren't # declared as options: # 2 arguments: (user,db) -> ('localhost','user','db') if ($#ARGV == 1) { MySQLaccess::Debug::Print(2,"$script called with 2 arguments:"); $Param{'host'} = $Param{'host'} || 'localhost'; $Param{'user'} = $ARGV[0] || $Param{'user'}; $Param{'db'} = $ARGV[1] || $Param{'db'}; } # 3 arguments: (host,user,db) if ($#ARGV == 2) { MySQLaccess::Debug::Print(2,"$script called with 3 arguments:"); $Param{'host'} = $ARGV[0] || $Param{'host'}; $Param{'user'} = $ARGV[1] || $Param{'user'}; $Param{'db'} = $ARGV[2] || $Param{'db'}; } # ------------------------------------- # prompt for user password if requested if ( defined($Param{'password'}) && length($Param{'password'}) == 0 ) { $Param{'password'} = PromptPass( "Password for MySQL user $Param{'user'}: "); } } if ($MySQLaccess::CGI) { #CGI-version require CGI; $Q = new CGI; $Param{'help'} = $Q->param('help') ; $Param{'host'} = $Q->param('host') || $Q->param('h') || $Param{'host'}; $Param{'user'} = $Q->param('user') || $Q->param('u') || $Param{'user'}; $Param{'db'} = $Q->param('db') || $Q->param('d') || $Param{'db'}; $Param{'password'} = $Q->param('password') || $Q->param('p') || $Param{'password'}; $Param{'superuser'} = $Q->param('superuser') || $Q->param('U') || $Param{'superuser'}; $Param{'spassword'} = $Q->param('spassword') || $Q->param('P') || $Param{'spassword'}; $Param{'rhost'} = $Q->param('rhost') || $Q->param('H') || $Param{'rhost'}; $Param{'old_server'}= $Q->param('old_server')|| $Param{'old_server'}; $Param{'debug'} = $Q->param('debug') || $Param{'debug'}; $Param{'brief'} = $Q->param('brief') || $Param{'brief'}; $Param{'table'} = $Q->param('table') || $Param{'table'}; $Param{'relnotes'} = $Q->param('relnotes'); $Param{'plan'} = $Q->param('plan'); $Param{'howto'} = $Q->param('howto'); $Param{'version'} = $Q->param('version') ? $Q->param('version') : $Q->param('v'); $Param{'edit'} = $Q->param('edit'); $Param{'preview'} = $Q->param('preview'); $Param{'copy'} = $Q->param('copy'); $Param{'commit'} = $Q->param('commit'); $Param{'rollback'} = $Q->param('rollback'); # ----------------------------- # set DEBUG $DEBUG = $Q->param('debug') if ($Q->param('debug')>=$DEBUG); } # ---------------------- # brief and table-format # exclude each-other # table-format is preferred if (defined($Param{'table'})) { undef($Param{'brief'}); } if (defined($Param{'preview'}) or defined($Param{'copy'}) or defined($Param{'commit'}) or defined($Param{'rollback'}) ) { $Param{'edit'}='on'; } # ---------------------- # if no host is given # assume we mean 'localhost' if (!defined($Param{'host'})) { $Param{'host'}='localhost'; } # ---------------------- # perform some checks # -> eliminate 'broken pipe' error push(@MySQLaccess::Grant::Error,'not_found_mysql') if !(-x $MYSQL); push(@MySQLaccess::Grant::Error,'not_found_diff') if !(-x $DIFF); push(@MySQLaccess::Grant::Error,'not_found_mysqldump') if !(-x $MYSQLDUMP); if (@MySQLaccess::Grant::Error) { MySQLaccess::Report::Print_Error_Messages() ; exit 0; } #----------------------- # get info/help if necc. $print_usage=1; if ( defined($Param{'version'}) ) { MySQLaccess::Report::Print_Version(); $print_usage=0; MySQLaccess::Report::Print_Footer(); MySQLaccess::DB::CloseConnection(); exit 0; # exit 0; } if ( defined($Param{'relnotes'}) ) { MySQLaccess::Report::Print_Relnotes(); $print_usage=0; MySQLaccess::Report::Print_Footer(); MySQLaccess::DB::CloseConnection(); exit 0; # exit 0; } if ( defined($Param{'plan'}) ) { MySQLaccess::Report::Print_Plans(); $print_usage=0; MySQLaccess::Report::Print_Footer(); MySQLaccess::DB::CloseConnection(); exit 0; # exit 0; } if ( defined($Param{'howto'}) ) { MySQLaccess::Report::Print_HowTo(); $print_usage=0; MySQLaccess::Report::Print_Footer(); MySQLaccess::DB::CloseConnection(); exit 0; # exit 0; } # ----------------------------- # generate a help-screen in CMD-mode # or a blanc form in CGI-mode if ( defined($Param{'help'}) or !defined($Param{'user'}) or !defined($Param{'host'}) or !defined($Param{'db'}) ) { push(@MySQLaccess::Grant::Error,'user_required') unless defined($Param{'user'}); push(@MySQLaccess::Grant::Error,'db_required') unless defined($Param{'db'}); push(@MySQLaccess::Grant::Error,'host_required') unless defined($Param{'host'}); MySQLaccess::Report::Print_Usage() if $print_usage; exit 0; } # ---------------------------- # get hostname and local-ip # for localhost $localhost = MySQLaccess::Host::LocalHost(); $local_ip = MySQLaccess::Host::Name2IP($localhost); $MySQLaccess::Host::localhost = MySQLaccess::Host::LocalHost(); $MySQLaccess::Host::local_ip = MySQLaccess::Host::Name2IP($localhost); MySQLaccess::Debug::Print(3, "localhost name=$localhost, ip=$local_ip"); #----------------------------------- # version of MySQL-server to connect # to determine use of full where clause $MySQLaccess::Host::SERVER = $Param{'old_server'} ? '3.20' : $SERVER; #--------------------------------- # create the config file for mysql and mysqldump # to avoid passing authentication info on the command line # MergeConfigFiles(); die "Unsafe config file found: $unsafeConfig\n" if $unsafeConfig; if (defined($Param{'superuser'})) { $MYSQL_CNF{'mysql'}{'user'} = $Param{'superuser'}; $MYSQL_CNF{'mysqldump'}{'user'} = $Param{'superuser'}; } if (defined($Param{'spassword'})) { if ( $CMD && length($Param{'spassword'}) == 0 ) { $Param{'spassword'} = PromptPass("Password for MySQL superuser $Param{'superuser'}: "); } if ( length($Param{'spassword'}) > 0 ) { $MYSQL_CNF{'mysql'}{'password'} = $Param{'spassword'}; $MYSQL_CNF{'mysqldump'}{'password'} = $Param{'spassword'}; } } WriteTempConfigFile(); #--------------------------------- # Inform user if he has not enough # privileges to read the access-db if ( $nerror=MySQLaccess::DB::OpenConnection() ) { MySQLaccess::Report::Print_Error_Access($nerror); exit 0; } # ----------------------- # Read MySQL ACL-files if ($nerror=MySQLaccess::Grant::ReadTables()) { MySQLaccess::Report::Print_Error_Access($nerror); exit 0; }; if ($Param{'edit'} and $nerror=MySQLaccess::Grant::ReadTables('tmp')) { MySQLaccess::Report::Print_Error_Access($nerror); exit 0; } #--------------------------------- # reload temporay grant-tables # with data from original ones if ( defined($Param{'copy'}) ) { $nerror=MySQLaccess::DB::LoadTmpTables(); if ($nerror) { MySQLaccess::Report::Print_Error_Access($nerror); exit 0; } my $msg = "The grant-rules are copied from the grant-tables to\n" . "the temporary tables."; MySQLaccess::Report::Print_Message([$msg]); # MySQLaccess::Report::Print_Footer(); # MySQLaccess::DB::CloseConnection(); # exit 0; } #--------------------------------- # preview result of changes in the # grant-tables if ( defined($Param{'preview'}) ) { $aref=MySQLaccess::Grant::Diff_Privileges(); MySQLaccess::Report::Print_Diff_ACL($aref); # MySQLaccess::Report::Print_Footer(); # MySQLaccess::DB::CloseConnection(); # exit 0; } #--------------------------------- # reload grant-tables # with data from temporary tables if ( defined($Param{'commit'}) ) { if ($nerror = MySQLaccess::DB::CommitGrantTables()) { MySQLaccess::Report::Print_Error_Access($nerror); exit 0; } my $msg = "The grant-rules have been copied from the temporary tables\n" . "to the grant-tables."; my $msg1= "Don't forget to do an 'mysqladmin reload' before these\n" . "changes take effect."; my $msg2= "A backup-version of your original grant-rules are saved in the\n" . "backup-tables, so you can always perform a 1-level rollback."; MySQLaccess::Report::Print_Message([$msg,$msg1,$msg2]); # MySQLaccess::Report::Print_Footer(); # MySQLaccess::DB::CloseConnection(); # exit 0; } #--------------------------------- # restore previous grant-rules # with data from backup tables if ( defined($Param{'rollback'}) ) { if ($nerror = MySQLaccess::DB::RollbackGrantTables()) { MySQLaccess::Report::Print_Error_Access($nerror); exit 0; } my $msg = "The old grant-rules have been copied back from the backup tables\n" . "to the grant-tables."; my $msg1= "Don't forget to do an 'mysqladmin reload' before these\n" . "changes take effect."; MySQLaccess::Report::Print_Message([$msg,$msg1]); # MySQLaccess::Report::Print_Footer(); # MySQLaccess::DB::CloseConnection(); # exit 0; } #---------------------------------- # show edit-taskbar if ( defined($Param{'edit'})) { if ($MySQLaccess::CGI ) { MySQLaccess::Report::Print_Edit(); $print_usage=0; MySQLaccess::Report::Print_Footer(); MySQLaccess::DB::CloseConnection(); exit 0; } else { MySQLaccess::Report::Print_Edit(); $print_usage=0; MySQLaccess::Report::Print_Footer(); MySQLaccess::DB::CloseConnection(); exit 0; } } # ----------------------------- # Build list of users,dbs,hosts # to process... @all_dbs = @{MySQLaccess::DB::Get_All_dbs($Param{'db'})}; @all_users = @{MySQLaccess::DB::Get_All_users($Param{'user'})}; @all_hosts = @{MySQLaccess::DB::Get_All_hosts($Param{'host'})}; #if EDIT-mode #@all_dbs_tmp = @{MySQLaccess::DB::Get_All_dbs($Param{'db'},'tmp')}; #@all_users_tmp = @{MySQLaccess::DB::Get_All_users($Param{'user'},'tmp')}; #@all_hosts_tmp = @{MySQLaccess::DB::Get_All_hosts($Param{'host'},'tmp')}; # ----------------------------- # Report access-rights for each # tuple (host,user,db) #$headers=0; my %Access = (); foreach $host (@all_hosts) { foreach $user (@all_users) { foreach $db (@all_dbs) { MySQLaccess::Grant::Initialize(); %Access = MySQLaccess::Grant::Get_Access_Rights($host,$user,$db); MySQLaccess::Report::Print_Access_rights($host,$user,$db,\%Access); } } } # ----------------------------- # End script MySQLaccess::Report::Print_Footer(); MySQLaccess::DB::CloseConnection(); exit 0; ############################################################# # FUNCTIONS # ############### sub GetMode { my $cmd=0; my $cgi=0; if (defined($ENV{'HTTP_HOST'})) { $cmd=0; $cgi=1; } else { $cmd=1; $cgi=0; } return ($cmd,$cgi); } # ================================ # sub PromptPass # prompt tty for a password # ================================ sub PromptPass { my ($prompt) = @_; my $password; $ENV{PATH} = "/bin:/usr/bin"; $ENV{IFS} = " \t\n"; $ENV{SHELL} = "/bin/sh"; system "stty -echo"; print $prompt; chomp($password = <STDIN>); print "\n"; system "stty echo"; $password; } # ================================= # sub CheckUnsafeFile # tell if a config file containing a password is unsafe # ================================= sub CheckUnsafeFile { my ($fname) = @_; my ($dev, $ino, $mode, $nlink, $uid, $gid, $rdev, $size, $atime, $mtime, $ctime, $blksize, $blocks) = stat($fname); if ( $uid != $< ) { # unsafe if owned by other than current user return 1; } if ( $mode & 066 ) { # unsafe if accessible by other return 1; } $fname =~ s#/[^/]+$##; if ( (length $fname) > 0 ) { return CheckUnsafeDir($fname); } return 0; } # ================================= # sub CheckUnsafeDir # tell if a directory is unsafe # ================================= sub CheckUnsafeDir { my ($fname) = @_; my ($dev, $ino, $mode, $nlink, $uid, $gid, $rdev, $size, $atime, $mtime, $ctime, $blksize, $blocks) = stat($fname); # not owned by me or root if ( ($uid != $<) && ($uid != 0) ) { return 1; } if ( $mode & 022 ) { # unsafe if writable by other return 1 unless $mode & 01000; # but sticky bit ok } $fname =~ s#/[^/]+$##; if ( (length $fname) > 0 ) { return CheckUnsafeDir($fname); } return 0; } # ================================= # sub MergeConfigFile # merge data from .cnf file # ================================= sub MergeConfigFile { my ($fname) = @_; my ($group, $item, $value); if ( open CNF, $fname ) { while (<CNF>) { s/^\s+//; next if /^[#;]/; if ( /\[\s*(\w+)\s*]/ ) { $group = $1; $group =~ tr/A-Z/a-z/; if ( !exists $MYSQL_CNF{$group} ) { undef $group; } } elsif ( defined $group ) { ($item, $value) = /((?:\w|-)+)\s*=\s*(\S+)/; # don't unquote backslashes as we just write it back out if ( defined $item ) { if ( $item =~ /^password$/ ) { if ( CheckUnsafeFile($fname) ) { $unsafeConfig = $fname; } } if ( $group eq 'client' || $group eq "client-server") { $MYSQL_CNF{'mysql'}{$item} = $value; $MYSQL_CNF{'mysqldump'}{$item} = $value; } else { $MYSQL_CNF{$group}{$item} = $value; } } } } close(CNF); } } # ================================= # sub MergeConfigFiles # merge options from config files # NOTE: really should do two separate merges for each # client to exactly duplicate order of resulting argument lists # ================================= sub MergeConfigFiles { my ($name,$pass,$uid,$gid,$quota,$comment,$gcos,$dir,$shell) = getpwuid $<; MergeConfigFile("/usr/my.cnf"); MergeConfigFile("/etc/my.cnf"); MergeConfigFile("$dir/.my.cnf"); } # ================================= # sub WriteTempConfigFile # write # ================================= sub WriteTempConfigFile { sysopen CNFFILE, $MYSQL_CNF, O_RDWR|O_CREAT|O_EXCL, 0700 or die "sysopen $MYSQL_CNF: $!"; # groups may be in any order, generic groups such as [client] assumed # here to be empty foreach $group (keys %MYSQL_CNF) { print CNFFILE "[$group]\n"; foreach $item (keys %{$MYSQL_CNF{$group}}) { if ( defined $MYSQL_CNF{$group}{$item} ) { print CNFFILE "$item=$MYSQL_CNF{$group}{$item}\n"; } else { print CNFFILE "$item\n"; } } print CNFFILE "\n"; } close(CNFFILE); } ###################################################################### package MySQLaccess::DB; ########### BEGIN { $DEBUG = 2; $DEBUG = $MySQLaccess::DEBUG unless ($DEBUG); # Error-messages from the MySQL client %ACCESS_ERR= ('Access_denied' => 'Access denied' ,'Dbaccess_denied' => 'Access to database denied' ,'Unrecognized_option' => 'unrecognized option' ,'Unknown_table' => "Can't find file:" ,'unknown_error' => '^ERROR:' ); } # ###################################### # Connecting to the MYSQL DB # ====================================== # sub OpenConnection # Open an connection to the mysql-db # questions to MYSQL_Q # answers from MYSQL_A # ====================================== sub OpenConnection { my $pid; MySQLaccess::Debug::Print(2,"OpenConnection:"); # check path to mysql-client executable if (! -f $MySQLaccess::MYSQL) { if ($MySQLaccess::CMD) { die "Could not find MySQL-client '$MySQLaccess::MYSQL'"; } if ($MySQLaccess::CGI) { print "<center>\n<font color=Red>\n"; print "ERROR: Could not find MySQL-client '$MySQLaccess::MYSQL'"; print "</center>\n</font>\n"; exit 0; } } # path to mysql executable my $connect = "$MySQLaccess::MYSQL --defaults-file=$MySQLaccess::MYSQL_CNF"; $connect .= " $MySQLaccess::MYSQL_OPT"; # superuser, spassword transmitted via defaults-file if (defined($MySQLaccess::Param{'rhost'})) { $connect .= " --host=$MySQLaccess::Param{'rhost'}"; } # other options?? # grant-database $connect .= " $MySQLaccess::ACCESS_DB"; # open connection (not using /bin/sh -c) MySQLaccess::Debug::Print(2,"Connecting to: $connect"); $pid=IPC::Open3::open3(\*MYSQL_Q,\*MYSQL_A,"",split /\s+/,$connect); MySQLaccess::Debug::Print(2,"PID of open pipe: $pid"); # check connection print MYSQL_Q "select 'ok';\n"; $answer = <MYSQL_A>; #answer from mysql MySQLaccess::Debug::Print(2,"Answer: $answer\n"); foreach $nerror (sort(keys(%ACCESS_ERR))) { MySQLaccess::Debug::Print(3,"check answer for error $ACCESS_ERR{$nerror}"); if (grep(/$ACCESS_ERR{$nerror}/i,$answer)) { MySQLaccess::Debug::Print(2,"Answer contain error [$nerror]"); return $nerror; } } if (0) { # check server-version print MYSQL_Q "select 'ok';\n"; $answer = <MYSQL_A>; #answer from mysql MySQLaccess::Debug::Print(2,"Answer: $answer\n"); foreach $nerror (sort(keys(%ACCESS_ERR))) { MySQLaccess::Debug::Print(3,"check answer for error $ACCESS_ERR{$nerror}"); if (grep(/$ACCESS_ERR{$nerror}/i,$answer)) { MySQLaccess::Debug::Print(2,"Answer contain error [$nerror]"); return $nerror; } } } my $skip=<MYSQL_A>; return 0; } # ====================================== # sub CloseConnection # Close the connection to the mysql-db # ====================================== sub CloseConnection { close MYSQL_Q; close MYSQL_A; } # =========================================================== # sub CreateTable($table) # Create temporary/backup table # =========================================================== sub CreateTable { my $pid; my ($table,$force) = @_; my %tables = ( $MySQLaccess::ACCESS_U_TMP => $MySQLaccess::ACCESS_U, $MySQLaccess::ACCESS_H_TMP => $MySQLaccess::ACCESS_H, $MySQLaccess::ACCESS_D_TMP => $MySQLaccess::ACCESS_D, $MySQLaccess::ACCESS_U_BCK => $MySQLaccess::ACCESS_U, $MySQLaccess::ACCESS_H_BCK => $MySQLaccess::ACCESS_H, $MySQLaccess::ACCESS_D_BCK => $MySQLaccess::ACCESS_D, $MySQLaccess::ACCESS_U => $MySQLaccess::ACCESS_U_BCK, $MySQLaccess::ACCESS_H => $MySQLaccess::ACCESS_H_BCK, $MySQLaccess::ACCESS_D => $MySQLaccess::ACCESS_D_BCK, ); my $tbl; my $query=""; my $delim; my $skip; my $create; my @known_tables=(); # print STDERR "CreateTable($table)\n"; MySQLaccess::Debug::Print(1,"CreateTable($table):"); ## error-handling return 'Unknown_table' unless defined($tables{$table}); ## build list of known/existing tables; ## if 'force' existing table is dropped first if (defined($force) and $force) { @known_tables = Show_Tables(); if (grep(/^$table$/,@known_tables)) { $query = "DROP TABLE $table;"; } } ## path to mysqldump executable my $connect = $MySQLaccess::MYSQLDUMP; $connect .= " --defaults-file=$MySQLaccess::MYSQL_CNF --no-data"; # superuser, spassword transmitted via defaults-file if (defined($MySQLaccess::Param{'rhost'})) { $connect .= " --host=$MySQLaccess::Param{'rhost'}"; } $connect .= " $MySQLaccess::ACCESS_DB"; $connect .= " $tables{$table}"; ## get creation-data for original table $create = ''; my $mysqldump = $connect; $mysqldump =~ s/ \$TABLE / $tbl /; # open connection (not using /bin/sh -c) MySQLaccess::Debug::Print(2,"Connecting to: $connect"); $pid=IPC::Open3::open3(\*DONTCARE,\*CREATE,"",split /\s+/,$mysqldump); MySQLaccess::Debug::Print(2,"PID of open pipe: $pid"); #open(CREATE,"$mysqldump"); @create = <CREATE>; $create = "@create"; foreach $nerror (sort(keys(%ACCESS_ERR))) { MySQLaccess::Debug::Print(3,"check answer for error $ACCESS_ERR{$nerror}"); if (grep(/$ACCESS_ERR{$nerror}/i,$create)) { MySQLaccess::Debug::Print(2,"Answer contain error [$nerror]"); return $nerror; } } close(CREATE); close(DONTCARE); ## manipulate result for creation-data for temporary table $create =~ s/CREATE TABLE $tables{$table} \(/CREATE TABLE $table \(/; ## recreate temporary table $query .= "$create\n"; $query .= "select 'ok';"; ## execute query print MYSQL_Q "$query\n"; # print STDERR $query; $answer = <MYSQL_A>; #answer from mysql # print STDERR "A>",$answer; MySQLaccess::Debug::Print(2,"Answer: $answer\n"); foreach $nerror (sort(keys(%ACCESS_ERR))) { # print STDERR "->$nerror?"; MySQLaccess::Debug::Print(3,"check answer for error $ACCESS_ERR{$nerror}"); if (grep(/$ACCESS_ERR{$nerror}/i,$answer)) { # print STDERR "Yes!"; MySQLaccess::Debug::Print(2,"Answer contain error [$nerror]"); return $nerror; } } $delim = <MYSQL_A>; # read header if ($delim ne "ok\n") { while (($line=<MYSQL_A>) ne "ok\n") { MySQLaccess::Debug::Print(3," A> $line"); } $skip = <MYSQL_A>; # skip result 'ok' } # print STDERR "CreateTable done\n"; return 0; } # =========================================================== # sub CopyTable() # Copy the structure and the data of a table to another table # =========================================================== sub CopyTable { my ($from,$to,$force) = @_; my @known_tables = Show_Tables(); my $query = ""; my $nerror= 0; my $skip; # print STDERR "CopyTable($from,$to)\n"; MySQLaccess::Debug::Print(1,"MySQLaccess::DB::CopyTable($from,$to)"); ## error-handling if (!grep(/^$from$/,@known_tables)) { return 'Unknown_table'; } ## copy structure ## if forced if (defined($force) and $force) { return $nerror if ($nerror=CreateTable($to,$force)); # print STDERR "Structure copied\n"; } ## copy data $query .= "DELETE FROM $to;"; $query .= "INSERT INTO $to SELECT * FROM $from;"; $query .= "SELECT 'ok';\n"; MySQLaccess::Debug::Print(2,"Query: $query"); ## execute query print MYSQL_Q "$query\n"; # print STDERR $query; ## check for errors... my $answer = <MYSQL_A>; #answer from mysql # print STDERR $answer; MySQLaccess::Debug::Print(2,"Answer: $answer\n"); foreach $nerror (sort(keys(%ACCESS_ERR))) { MySQLaccess::Debug::Print(3,"check answer for error $ACCESS_ERR{$nerror}"); if (grep(/$ACCESS_ERR{$nerror}/i,$answer)) { MySQLaccess::Debug::Print(2,"Answer contain error [$nerror]"); return $nerror; } } my $delim = <MYSQL_A>; # read header # print STDERR $delim; if ($delim ne "ok\n") { while (($line=<MYSQL_A>) ne "ok\n") { MySQLaccess::Debug::Print(3," A> $line"); } $skip = <MYSQL_A>; # skip result 'ok' } return 0; } # =========================================================== # sub LoadTmpTables() # (Re)load temporary tables with entries of ACL-tables # =========================================================== sub LoadTmpTables { my %tables = ( $MySQLaccess::ACCESS_U => $MySQLaccess::ACCESS_U_TMP, $MySQLaccess::ACCESS_H => $MySQLaccess::ACCESS_H_TMP, $MySQLaccess::ACCESS_D => $MySQLaccess::ACCESS_D_TMP, ); my $tbl; my $nerror; # print STDERR "LoadTmpTables:\n"; MySQLaccess::Debug::Print(1,"LoadTmpTables():"); foreach $tbl (keys(%tables)) { # print STDERR "$tbl -> $tables{$tbl}\n"; MySQLaccess::Debug::Print(2,"Loading table $tbl -> $tables{$tbl}."); return $nerror if ($nerror=CopyTable($tbl,$tables{$tbl},'force')); } return 0; } # =========================================================== # sub BackupGrantTables() # Make a backup of the original grant-tables # =========================================================== sub BackupGrantTables { my %tables = ( $MySQLaccess::ACCESS_U => $MySQLaccess::ACCESS_U_BCK, $MySQLaccess::ACCESS_H => $MySQLaccess::ACCESS_H_BCK, $MySQLaccess::ACCESS_D => $MySQLaccess::ACCESS_D_BCK, ); my $tbl; my $nerror; # print STDERR "BackupGrantTables:\n"; MySQLaccess::Debug::Print(1,"BackupGrantTables():"); foreach $tbl (keys(%tables)) { # print STDERR "$tbl -> $tables{$tbl}\n"; MySQLaccess::Debug::Print(2,"Backup table $tbl -> $tables{$tbl}."); return $nerror if ($nerror=CopyTable($tbl,$tables{$tbl},'force')); } return 0; } # =========================================================== # sub RollbackGrantTables() # Rollback the backup of the grant-tables # =========================================================== sub RollbackGrantTables { my %tables = ( $MySQLaccess::ACCESS_U_BCK => $MySQLaccess::ACCESS_U, $MySQLaccess::ACCESS_H_BCK => $MySQLaccess::ACCESS_H, $MySQLaccess::ACCESS_D_BCK => $MySQLaccess::ACCESS_D, ); my $tbl; my $nerror; # print STDERR "RollbackGrantTables:\n"; MySQLaccess::Debug::Print(1,"RollbackGrantTables():"); foreach $tbl (keys(%tables)) { # print STDERR "$tbl -> $tables{$tbl}\n"; MySQLaccess::Debug::Print(2,"Rollback table $tbl -> $tables{$tbl}."); return $nerror if ($nerror=CopyTable($tbl,$tables{$tbl},'force')); } return 0; } # =========================================================== # sub CommitGrantTables() # Copy grant-rules from temporary tables to the ACL-tables # =========================================================== sub CommitGrantTables { my %tables = ( $MySQLaccess::ACCESS_U => $MySQLaccess::ACCESS_U_TMP, $MySQLaccess::ACCESS_H => $MySQLaccess::ACCESS_H_TMP, $MySQLaccess::ACCESS_D => $MySQLaccess::ACCESS_D_TMP, ); my $tbl; my $query; my $delim; my $skip; my $create; print STDERR "CommitGrantTables()\n"; MySQLaccess::Debug::Print(1,"CommitGrantTables():"); ## Make backup of original grant-tables MySQLaccess::Debug::Print(2,"Making backup of original grant-tables..."); BackupGrantTables(); ## Copy data from temporay tables to grant-tables foreach $tbl (keys(%tables)) { print STDERR "$tbl -> $tables{$tbl}\n"; MySQLaccess::Debug::Print(2,"Loading data $tables{$tbl} -> $tbl."); return $nerror if ($nerror=CopyTable($tables{$tbl},$tbl)); } return 0; } # =========================================================== # sub Show_Fields($table): # return (a reference to) a hash which holds the names # of all relevant grant-fields, with their index in the record, # and (a reference to) an array which holds the fieldnames. # =========================================================== sub Show_Fields { my ($table) = @_; my %skip = ('host' => [0,1] ,'user' => [0,1,2] ,'db' => [0,1,2] ); my %Struct = (); my @Struct = (); my $query = "show fields from $table;select 'ok';\n"; my $i=0; my $line; #print STDERR $query; MySQLaccess::Debug::Print(1,"Show_Fields($table):"); MySQLaccess::Debug::Print(2,"SQL: $query"); print MYSQL_Q "$query"; my $skip = <MYSQL_A>; #skip header while (($line=<MYSQL_A>) ne "ok\n") { #print STDERR ">",$line; chop($line); MySQLaccess::Debug::Print(2," $table>: $line"); my ($field,$type,$null,$key,$default,$extra) = split(' ',$line); $field = ucfirst($field); MySQLaccess::Debug::Print(3, " <split: $field - $type - $null - $key - $default - $extra"); if (! grep(/$i/,@{$skip{$table}}) ){ $Struct{$field} = $i; #hash push(@Struct,$field); #array MySQLaccess::Debug::Print(3," ==> added column[$i]: $field ($Struct{$field})"); } else { MySQLaccess::Debug::Print(3," ==> skipped column[$i], value=[$field]"); } $i++; } $skip=<MYSQL_A>; # Get ok row (found already ok header) MySQLaccess::Debug::Print(2, "Array:"); foreach $field (@Struct) { MySQLaccess::Debug::Print(2,"+ $field"); } MySQLaccess::Debug::Print(2,"Hash:"); foreach $field (keys(%Struct)) { MySQLaccess::Debug::Print(2,"+ $field -> $Struct{$field}"); } return (\%Struct,\@Struct); } # =========================================================== # sub Show_Tables(): # return (a reference to) an array which holds all # known tables. # =========================================================== sub Show_Tables { my @Tables = (); my $query = "show tables;select 'ok';\n"; my $i=0; my $line; MySQLaccess::Debug::Print(1,"Show_Tables():"); MySQLaccess::Debug::Print(2,"SQL: $query"); print MYSQL_Q "$query"; my $skip = <MYSQL_A>; #skip header while (($line=<MYSQL_A>) ne "ok\n") { chop($line); push(@Tables,$line); #array MySQLaccess::Debug::Print(3," ==> added table: $line"); } $skip=<MYSQL_A>; # Get ok row (found already ok header) MySQLaccess::Debug::Print(2, "Array:"); foreach $tbl (@Tables) { MySQLaccess::Debug::Print(2,"+ $tbl"); } return @Tables; } # ====================================== # sub Validate_Password($passwd,$host,$user,$encpw) # Validate the given password # for user '$user' # connecting from host '$host' # ====================================== sub Validate_Password { my ($password,$host,$user,$encpw) = @_; my $valid=0; MySQLaccess::Debug::Print(1,"Validate_Password($password,$host,$user,$encpw)"); my $sql = "select host,user,password from user having " ."host='$host' and user='$user' and password='$encpw' " ."and password=PASSWORD('$password');\n"; $sql .= "select 'ok';\n"; MySQLaccess::Debug::Print(2,"SQL = $sql"); print MYSQL_Q "$sql"; # if password is valid, at least 1 row returns before we read 'ok' while ( ($line=<MYSQL_A>) ne "ok\n") { MySQLaccess::Debug::Print(2," A> $line"); $valid = defined($line); } my $skip = <MYSQL_A>; # read 'ok' return $valid; } # ========================================================== # sub Sort_fields: (rewritten by psmith) # Build the query for an ordered list of entries # ========================================================== sub Sort_fields { my ($start, $end, $sofar, $this, @rest) = (@_); my @where = ("((FIELD not like '\\%') AND (FIELD <> ''))", "((FIELD like '%\\%%') OR (FIELD like '%\\_%'))", "(FIELD = '')"); my $res = ''; $this or return ("$start $sofar $end"); $sofar .= ' AND ' if $sofar; foreach $w (@where) { my $f = $w; $f =~ s/FIELD/$this/g; $res .= Sort_fields($start, $end, "$sofar$f", @rest); } return ($res); } # =========================================================== # sub Sort_table: (rewritten by psmith) # return all entries in the given table, # in an ordered fashion # =========================================================== sub Sort_table { my ($tbl, @order) = @_; my @res=(); # as long as there's no full where clause (Distrib 3.20)... # use having :-( # NOTE: this clause WILL NOT work on 3.21, because of the # order of 'ORDER BY' and 'HAVING' my $start = "SELECT *,UCASE(host) as ucase_host FROM $tbl "; $start .= 'ORDER BY ' . join(',', @order) ." HAVING "; my $end = ";\n"; # server version 3.21 has a full where clause :-) if ($MySQLaccess::Host::SERVER >= '3.21') { # print "+++USING FULL WHERE CLAUSE+++\n"; $start = "SELECT *,UCASE(host) as ucase_host FROM $tbl WHERE "; $end = ' ORDER BY ' . join(',', @order) . ";\n"; } MySQLaccess::Debug::Print(1,"Sort_table():"); MySQLaccess::Debug::Print(2,"Sorting table $tbl by `@order'"); my $tmp; foreach $tmp (@order) { $tmp="UCASE(host)" if ($tmp eq "ucase_host"); } my $query = Sort_fields($start, $end, '', @order); $query .= "select 'ok';\n"; MySQLaccess::Debug::Print(2,"Query: $query"); print MYSQL_Q "$query\n"; my $delim = <MYSQL_A>; # read header MySQLaccess::Debug::Print(3," A> $delim"); if ($delim ne "ok\n") { if ($delim =~ /^ERROR/) { push(@MySQLaccess::Grant::Error,'use_old_server'); MySQLaccess::Report::Print_Error_Messages() ; exit 1; } while (($line=<MYSQL_A>) ne "ok\n") { MySQLaccess::Debug::Print(3," A> $line"); push(@res,$line); } } my $skip = <MYSQL_A>; # skip result 'ok' # remove columnheaders from output @res = grep(!/^\Q$delim\E$/, @res); # remove trailing \n from each returned record chomp(@res); # each record has 1 field to much : ucase_host @res = grep { /(.*)\t.*$/; $_ = $1; } @res; MySQLaccess::Debug::Print(2,"Result of sorted table $tbl:"); foreach $line (@res) { MySQLaccess::Debug::Print(2," >>$line"); } return @res; } # =========================================================== # sub Get_All_db(template): # return all db the grant-tables are working on, # which conform to the template # =========================================================== sub Get_All_dbs { my ($template,$tmp) = @_; my @db=(); my $aref; # working with temporary tables or production tables if (defined($tmp) and $tmp) { $aref = \@MySQLaccess::Grant::sorted_db_tmp_table ; } else { $aref = \@MySQLaccess::Grant::sorted_db_table; } MySQLaccess::Debug::Print(1," template=[$template]"); # get all db for which access-rights can be calculated, # which conform to the template. # !! these db's don't have to exist yet, so it's not # enough to look which db already exist on the system $reg_expr = $template; if ($template =~ /[\*\?]/) { $reg_expr =~ tr/*?/%_/; #$reg_expr = MySQLaccess::Wildcards::Wild2Reg($template); } $reg_expr = MySQLaccess::Wildcards::SQL2Reg("$reg_expr"); if ( ! ($template =~ /[\*\?%_]/) ) { push(@db,$template); return \@db; } MySQLaccess::Debug::Print(2,"#Reading db-table..."); foreach $record (@{$aref}) { #MySQLaccess::Grant::sorted_db_table) { my @record=split(/\t/,$record); my $db = $record[1]; MySQLaccess::Debug::Print(2,"> $db "); if ( (!grep(/$db/i,@db)) and ($db =~/$reg_expr/i) ) { push(@db,$db); MySQLaccess::Debug::Print(2,"added"); } else { MySQLaccess::Debug::Print(2,"skipped"); } } # if no rule is found for a certain db in the db-table, # the rights of the user are used, so we should inform # the user for if (!grep(/^%$/,@db)) { push(@db,"$MySQLaccess::NEW_DB"); } return \@db; } # =========================================================== # sub Get_All_users(template): # return all users the grant-tables are working on, # which conform to the template # =========================================================== sub Get_All_users { ($template,$tmp) = @_; # nog verder uitwerken!!! my @user=(); my $aref; # working with temporary tables or production tables if (defined($tmp) and $tmp) { $aref = \@MySQLaccess::Grant::sorted_user_tmp_table ; } else { $aref = \@MySQLaccess::Grant::sorted_user_table; } MySQLaccess::Debug::Print(1,"Debug Get_All_users:"); # get all db for which access-rights can be calculated. # !! these db's don't have to exist yet, so it's not # enough to look which db already exist on the system $reg_expr = $template; if ($template =~ /[\*\?]/) { $reg_expr =~ tr/*?/%_/; #$reg_expr = MySQLaccess::Wildcards::Wild2Reg($template); } $reg_expr = MySQLaccess::Wildcards::SQL2Reg("$reg_expr"); if ( ! ($template =~ /[\*\?%_]/) ) { push(@user,$template); return \@user; } MySQLaccess::Debug::Print(2,"#Reading user-table..."); foreach $record (@{$aref}) { #MySQLaccess::Grant::sorted_user_table) { my @record=split(/\t/,$record); my $user = $record[1]; MySQLaccess::Debug::Print(2,"> $user "); if ( (!grep(/$user/,@user)) and ($user=~/$reg_expr/)) { push(@user,$user); MySQLaccess::Debug::Print(2, "added"); } else { MySQLaccess::Debug::Print(2, "skipped"); } } # Any user means also: # - the 'empty' user, ie without supplying a username # - any user still to be defined/created #push(@user,''); #without_suplying_a_username push(@user,"$MySQLaccess::NEW_USER"); #push(@Warnings,'minimum_priv'); return \@user; } # =========================================================== # sub Get_All_hosts(template): # return all hosts the grant-tables are working on, # which conform to the template # =========================================================== sub Get_All_hosts { my ($template,$tmp) = @_; my @host=(); my $aref; my $aref1; # working with temporary tables or production tables if (defined($tmp) and $tmp) { $aref = \@MySQLaccess::Grant::sorted_host_tmp_table ; $aref1= \@MySQLaccess::Grant::sorted_db_tmp_table ; } else { $aref = \@MySQLaccess::Grant::sorted_host_table; $aref1= \@MySQLaccess::Grant::sorted_db_table ; } MySQLaccess::Debug::Print(1, "Debug Get_All_hosts:"); # get all db for which access-rights can be calculated. # !! these db's don't have to exist yet, so it's not # enough to look which db already exist on the system $reg_expr = $template; if ($template =~ /[\*\?]/) { $reg_expr =~ tr/*?/%_/; #$reg_expr = MySQLaccess::Wildcards::Wild2Reg($template); } $reg_expr = MySQLaccess::Wildcards::SQL2Reg("$reg_expr"); if ( ! ($template =~ /[\*\?%_]/) ) { push(@host,$template); return \@host; } MySQLaccess::Debug::Print(1, "#Reading db-table..."); foreach $record (@{$aref1}) { #MySQLaccess::Grant::sorted_db_table) { my @record=split(/\t/,$record); my $host = $record[0]; MySQLaccess::Debug::Print(2, "> $host "); if (! grep(/$host/i,@host)) { push(@host,$host); MySQLaccess::Debug::Print(2, "added"); } else { MySQLaccess::Debug::Print(2, "skipped"); } } MySQLaccess::Debug::Print(1, "#Reading host-table..."); foreach $record (@{$aref}) { my @record=split(/\t/,$record); my $host = $record[0]; MySQLaccess::Debug::Print(2, "> $host "); if ( (!grep(/$host/,@host)) and ($host=~/$reg_expr/)) { push(@host,$host); MySQLaccess::Debug::Print(2, "added"); } else { MySQLaccess::Debug::Print(2, "skipped"); } } # DOUBT: #print "#Reading user-table...\n" if ($DEBUG>1); #foreach $record (@MySQLaccess::Grant::sorted_user_table) { # my @record=split(/\t/,$record); # my $host = $record[0]; # print "> $host " if ($DEBUG>2); # if ( (!grep(/$host/,@host)) and ($host=~/$reg_expr/)) { # push(@host,$host); # print "added\n" if ($DEBUG>2); # } # else { # print "skipped\n" if ($DEBUG>2); # } #} # Any host also means: # - any host still to be defined/created #push(@host,"any_other_host"); @host = sort(@host); return \@host; } ########################################################################## package MySQLaccess::Grant; ############## BEGIN { $DEBUG = 0; $DEBUG = $MySQLaccess::DEBUG unless ($DEBUG); } # =========================================================== # sub Diff_Privileges() # Calculate diff between temporary and original grant-tables # =========================================================== sub Diff_Privileges { my @before=(); my @after =(); my @diffs =(); # ----------------------------- # Build list of users,dbs,hosts # to process... my @all_dbs = @{MySQLaccess::DB::Get_All_dbs('*')}; my @all_users = @{MySQLaccess::DB::Get_All_users('*')}; my @all_hosts = @{MySQLaccess::DB::Get_All_hosts('*')}; #if EDIT-mode my @all_dbs_tmp = @{MySQLaccess::DB::Get_All_dbs('*','tmp')}; my @all_users_tmp = @{MySQLaccess::DB::Get_All_users('*','tmp')}; my @all_hosts_tmp = @{MySQLaccess::DB::Get_All_hosts('*','tmp')}; my %Access; # ------------------------------------ # Build list of priv. for grant-tables foreach $host (@all_hosts) { foreach $user (@all_users) { foreach $db (@all_dbs) { MySQLaccess::Grant::Initialize(); %Access = MySQLaccess::Grant::Get_Access_Rights($host,$user,$db); push(@before,MySQLaccess::Report::Raw_Report($host,$user,$db,\%Access)); } } } # ---------------------------------- # Build list of priv. for tmp-tables foreach $host (@all_hosts_tmp) { foreach $user (@all_users_tmp) { foreach $db (@all_dbs_tmp) { MySQLaccess::Grant::Initialize('tmp'); %Access = MySQLaccess::Grant::Get_Access_Rights($host,$user,$db,'tmp'); push(@after,MySQLaccess::Report::Raw_Report($host,$user,$db,\%Access)); } } } # ---------------------------------- # Write results to temp-file to make # DIFF @before = sort(@before); @after = sort(@after); ($hb, $before) = tempfile("$MySQLaccess::script.XXXXXX") or push(@MySQLaccess::Report::Errors,"Can't create temporary file: $!"); ($ha, $after) = tempfile("$MySQLaccess::script.XXXXXX") or push(@MySQLaccess::Report::Errors,"Can't create temporary file: $!"); print $hb join("\n",@before); print $ha join("\n",@after); close $hb; close $ha; # ---------------------------------- # compute difference my $cmd="$MySQLaccess::DIFF $before $after |"; open(DIFF,"$cmd"); @diffs = <DIFF>; @diffs = grep(/[<>]/,@diffs); chomp(@diffs); close(DIFF); # ---------------------------------- # cleanup temp. files unlink($before); unlink($after); return \@diffs; } # =========================================================== # sub Initialize() # # =========================================================== sub Initialize { %MySQLaccess::Grant::Access = %{Default_Access_Rights()}; @MySQLaccess::Grant::Errors = (); @MySQLaccess::Grant::Warnings = (); @MySQLaccess::Grant::Notes = (); # ----- # rules $MySQLaccess::Grant::Rules{'user'} = 'no_rule_found'; $MySQLaccess::Grant::Rules{'db'} = 'no_rule_found'; $MySQLaccess::Grant::Rules{'host'} = 'no_equiv_host'; $MySQLaccess::Grant::full_access = 1; $MySQLaccess::Grant::process_host_table = 0; return 1; } # =========================================================== # sub ReadTables() # # =========================================================== sub ReadTables { my ($tmp) = @_; my ($HOST,$DB,$USER); my @tables; # build list of available tables @tables = MySQLaccess::DB::Show_Tables(); # reading production grant-tables or temporary tables? $tmp = (defined($tmp) and $tmp) ? 1 : 0; if ($tmp) { #reading temporary tables $HOST=$MySQLaccess::ACCESS_H_TMP; $DB =$MySQLaccess::ACCESS_D_TMP; $USER=$MySQLaccess::ACCESS_U_TMP; # ---------------------------- # do tables exist? if (!grep(/$HOST/,@tables)) { MySQLaccess::DB::CreateTable($HOST); } if (!grep(/$USER/,@tables)) { MySQLaccess::DB::CreateTable($USER); } if (!grep(/$DB/,@tables)) { MySQLaccess::DB::CreateTable($DB); } MySQLaccess::Debug::Print(1,"Finding fields in tmp-ACL files:"); # ----------------------------- # Get record-layout my ($h1,$h2) = MySQLaccess::DB::Show_Fields($HOST); my ($d1,$d2) = MySQLaccess::DB::Show_Fields($DB); my ($u1,$u2) = MySQLaccess::DB::Show_Fields($USER); %MySQLaccess::Grant::H_tmp = %{$h1}; @MySQLaccess::Grant::H_tmp = @{$h2}; %MySQLaccess::Grant::D_tmp = %{$d1}; @MySQLaccess::Grant::D_tmp = @{$d2}; %MySQLaccess::Grant::U_tmp = %{$u1}; @MySQLaccess::Grant::U_tmp = @{$u2}; # @MySQLaccess::Grant::Privileges_tmp=@{Make_Privlist()}; # MySQLaccess::Debug::Print(1, "Reading sorted temp-tables:"); @MySQLaccess::Grant::sorted_db_tmp_table = MySQLaccess::DB::Sort_table($DB, 'ucase_host', 'user', 'db'); @MySQLaccess::Grant::sorted_host_tmp_table= MySQLaccess::DB::Sort_table($HOST, 'ucase_host', 'db'); @MySQLaccess::Grant::sorted_user_tmp_table= defined($MySQLaccess::Param{'password'}) ? MySQLaccess::DB::Sort_table($USER, 'ucase_host', 'user', 'password'): MySQLaccess::DB::Sort_table($USER, 'ucase_host', 'user'); } else { #reading production grant-tables $HOST=$MySQLaccess::ACCESS_H; $DB =$MySQLaccess::ACCESS_D; $USER=$MySQLaccess::ACCESS_U; MySQLaccess::Debug::Print(1,"Finding fields in ACL files:"); # ----------------------------- # Get record-layout my ($h1,$h2) = MySQLaccess::DB::Show_Fields($HOST); my ($d1,$d2) = MySQLaccess::DB::Show_Fields($DB); my ($u1,$u2) = MySQLaccess::DB::Show_Fields($USER); %MySQLaccess::Grant::H = %{$h1}; @MySQLaccess::Grant::H = @{$h2}; %MySQLaccess::Grant::D = %{$d1}; @MySQLaccess::Grant::D = @{$d2}; %MySQLaccess::Grant::U = %{$u1}; @MySQLaccess::Grant::U = @{$u2}; @MySQLaccess::Grant::Privileges=@{Make_Privlist()}; MySQLaccess::Debug::Print(1, "Reading sorted tables:"); @MySQLaccess::Grant::sorted_db_table = MySQLaccess::DB::Sort_table($DB, 'ucase_host', 'user', 'db'); @MySQLaccess::Grant::sorted_host_table= MySQLaccess::DB::Sort_table($HOST, 'ucase_host', 'db'); @MySQLaccess::Grant::sorted_user_table= defined($MySQLaccess::Param{'password'}) ? MySQLaccess::DB::Sort_table($USER, 'ucase_host', 'user', 'password'): MySQLaccess::DB::Sort_table($USER, 'ucase_host', 'user'); } return 0; } # =========================================================== # sub Get_Access_Rights(host,user,db) # report the access_rights for the tuple ($host,$user,$db). # =========================================================== sub Get_Access_Rights { local ($host,$user,$db,$tmp) = @_; my $aref_user; my $aref_host; my $aref_db; # working with temporary tables or production tables if (defined($tmp) and $tmp) { $aref_user = \@MySQLaccess::Grant::sorted_user_tmp_table; $aref_host = \@MySQLaccess::Grant::sorted_host_tmp_table; $aref_db = \@MySQLaccess::Grant::sorted_db_tmp_table; } else { $aref_user = \@MySQLaccess::Grant::sorted_user_table; $aref_host = \@MySQLaccess::Grant::sorted_host_table; $aref_db = \@MySQLaccess::Grant::sorted_db_table; } my ($refrecord,$refgrant); my ($_host_,$_user_,$encpw_); my %_Access_; MySQLaccess::Debug::Print(1, "for ($host,$user,$db):"); # ****************************************************************************** # Create default access-rights # default access-rights are no access at all!! # ****************************************************************************** # get hostname for IP-address # get IP-address for hostname local $host_name = MySQLaccess::Host::IP2Name($host); local $host_ip = MySQLaccess::Host::Name2IP($host); MySQLaccess::Debug::Print(3,"host=$host, hostname=$host_name, host-ip =$host_ip"); MySQLaccess::Debug::Print(3,"user=$user"); MySQLaccess::Debug::Print(3,"db =$db"); # *********************************************************************** # retrieve information on USER # check all records in mysql::user for matches with the tuple (host,user) # *********************************************************************** # 4.OR (add) the privileges for the user from the "user" table. # (add all privileges which is "Y" in "user") ($refrecord,$refgrant) = Get_grant_from_user($host,$user,$aref_user); ($_host_,$_user_,$encpw_) = @{$refrecord}; %_access_ = %{$refgrant}; foreach $field (keys(%U)) { ##only priv. set in user-table $MySQLaccess::Grant::Access{$field} = ($MySQLaccess::Grant::Access{$field} or $_access_{$field}); } if ($_user_ eq $MySQLaccess::NEW_USER) { push(@Warnings,'minimum_priv'); } if ($_user_ ne $user) { $user=$_user_; push(@Warnings,'anonymous_access'); } # ******************************************************* # Validate password if this has been asked to do # ******************************************************* if (defined($password)) { $valid = Validate_Password($password,$_host_,$_user_,$_encpw_,$aref_user); if (!$valid) { push(@Errors,'invalid_password'); } else { push(@Notes,'valid_password'); } } # ****************************************************************************** # retrieve information on DB # check all records in mysql::db for matches with the triple (host,db,user) # first match is used. # ****************************************************************************** # 2.Get grant for user from the "db" table. ($refrecord,$refgrant)=Get_grant_from_db($host,$db,$user,$aref_db); #set process_host_table ($_host_,$_user_,$encpw_) = @{$refrecord}; %_access_ = %{$refgrant}; foreach $field (keys(%D)) { ##only priv. set in db-table $MySQLaccess::Grant::Access{$field} = ($MySQLaccess::Grant::Access{$field} or $_access_{$field}); } # *********************************************************************** # retrieve information on HOST # check all records in mysql::host for matches with the tuple (host,db) # # ' The host table is mainly to maintain a list of "secure" servers. ' # *********************************************************************** # 3.If hostname is "empty" for the found entry, AND the privileges with # the privileges for the host in "host" table. # (Remove all which is not "Y" in both) if ($MySQLaccess::Grant::process_host_table) { ($refrecord,$refgrant)=Get_grant_from_host($host,$db,$aref_host); ($_host_,$_user_,$encpw_) = @{$refrecord}; %_access_ = %{$refgrant}; foreach $field (keys(%H)) { ##only priv. set in host-table $MySQLaccess::Grant::Access{$field} = ($MySQLaccess::Grant::Access{$field} and $_access_{$field}); } } MySQLaccess::Debug::Print(1,"done for ($host,$user,$db)"); return %MySQLaccess::Grant::Access; } # #################################### # FINDING THE RIGHT GRANT-RULE # ========================================================== # sub Get_grant_from_user: # ========================================================== sub Get_grant_from_user { my ($host,$user,$aref) = @_; MySQLaccess::Debug::Print(1, ""); MySQLaccess::Debug::Print(1, "(host=$host,user=$user)"); my %Access_user = %{Default_Access_Rights()}; my $rule_found=0; my @record = (); my $record; foreach $record (@{$aref}) { $MySQLaccess::Grant::full_access=0; MySQLaccess::Debug::Print(3, "Record= $record"); @record=split(/\t/,$record); # check host and db # with possible wildcards in field # replace mysql-wildcards by reg-wildcards my $host_tpl = MySQLaccess::Wildcards::SQL2Reg($record[0]); my $user_tpl = $record[1]; #user field isn't pattern-matched!! my $passwd = $record[2]; MySQLaccess::Debug::Print(3, "=>host_tpl : read=$record[0] -> converted=$host_tpl"); MySQLaccess::Debug::Print(3, "=>user_tpl : read=$record[1] -> $user_tpl"); MySQLaccess::Debug::Print(3, "=>password : read=$record[2] -> $passwd"); if ( MySQLaccess::Host::MatchTemplate($host,$host_tpl) and MySQLaccess::Wildcards::MatchTemplate($user_tpl,$user) ) { MySQLaccess::Debug::Print(2, "FOUND!!"); if ($passwd eq '') { push(@Warnings,'insecure_user'); } else { push(@Notes,'password_required'); } foreach $field (keys(%U)) { $Access_user{$field} = $MySQLaccess::Report::Answer{$record[$U{$field}]}; } #print "\n" if $DEBUG; $MySQLaccess::Grant::Rules{'user'} = $record; $rule_found=1; last; } } # ------------------------------- # setting privileges to user-priv MySQLaccess::Debug::Print(2, "Rights after parsing user-table..:"); if (! $rule_found ) { @record=(); MySQLaccess::Debug::Print(2, "NO record found in the user-table!!"); } else { MySQLaccess::Debug::Print(2, "Selected record=@record"); MySQLaccess::Debug::Print(2, "<=?=> $record"); } MySQLaccess::Debug::Print(1, "returning @record"); return (\@record,\%Access_user); #matching record in user-table } # ========================================================== # sub Get_grant_from_db: # ========================================================== sub Get_grant_from_db { my ($host,$db,$user,$aref) = @_; MySQLaccess::Debug::Print(1, "(host=$host,user=$user,db=$db)"); my %Access_db = %{Default_Access_Rights()}; my $rule_found=0; foreach $record (@{$aref}) { $full_access=0; MySQLaccess::Debug::Print(2, "Read db: $record"); @record=split(/\t/,$record); # check host and db # with possible wildcards in field # replace mysql-wildcards by reg-wildcards my $host_tpl = MySQLaccess::Wildcards::SQL2Reg($record[0]); my $db_tpl = MySQLaccess::Wildcards::SQL2Reg($record[1]); my $user_tpl = $record[2]; #user field isn't pattern matched!! MySQLaccess::Debug::Print(3, "=>host_tpl : read=$record[0] -> converted=$host_tpl"); MySQLaccess::Debug::Print(3, "=>db_tpl : read=$record[1] -> $db_tpl"); MySQLaccess::Debug::Print(3, "=>user_tpl : read=$record[2] -> $user_tpl"); if ( ( MySQLaccess::Host::Is_localhost($host_tpl) or MySQLaccess::Wildcards::MatchTemplate($host_tpl,$host_name) or MySQLaccess::Wildcards::MatchTemplate($host_tpl,$host_ip) ) and ( MySQLaccess::Wildcards::MatchTemplate($db_tpl,$db) ) and ( MySQLaccess::Wildcards::MatchTemplate($user_tpl,$user) ) ) { $MySQLaccess::Grant::process_host_table = ($record[0] eq ''); if ($user_tpl eq '') { push(@Warnings,'public_database'); } foreach $field (keys(%D)) { $Access_db{$field} = $MySQLaccess::Report::Answer{$record[$D{$field}]}; } $rule_found=1; $MySQLaccess::Grant::Rules{'db'} = $record; last; } } # ------------------------------- # setting privileges to db-priv MySQLaccess::Debug::Print(2, "Rights after parsing db-table..:"); if (! $rule_found ) { MySQLaccess::Debug::Print(2, "NO rule found in db-table => no access granted!!"); } return (\@record,\%Access_db); } # ========================================================== # sub Get_grant_from_host: # ========================================================== sub Get_grant_from_host { my ($host,$db,$aref) = @_; MySQLaccess::Debug::Print(1, "Get_grant_from_host()"); my %Access_host = %{Default_Access_Rights()}; # the host-table doesn't have to be processed if the host-field # in the db-table isn't empty if (!$MySQLaccess::Grant::process_host_table) { MySQLaccess::Debug::Print(2, ">> Host-table doesn't have to be processed!!"); $MySQLaccess::Grant::Rules{'host'} = 'no_equiv_host'; return ([],\%Access_host); } my $rule_found=0; my @record = (); foreach $record (@{$aref}) { $full_access=0; MySQLaccess::Debug::Print(2, "host: $record"); @record=split(/\t/,$record); # check host and db # with possible wildcards in field # replace mysql-wildcards by reg-wildcards my $host_tpl = MySQLaccess::Wildcards::SQL2Reg($record[0]); my $db_tpl = MySQLaccess::Wildcards::SQL2Reg($record[1]); MySQLaccess::Debug::Print(3, "=>host_tpl : $record[0] -> $host_tpl"); MySQLaccess::Debug::Print(3, "=>db_tpl : $record[1] -> $db_tpl"); if ( ( MySQLaccess::Host::Is_localhost($host_tpl) or MySQLaccess::Wildcards::MatchTemplate($host_tpl,$host_name) or MySQLaccess::Wildcards::MatchTemplate($host_tpl,$host_ip) ) and ( MySQLaccess::Wildcards::MatchTemplate($db_tpl,$db) ) ) { $MySQLaccess::Grant::Rules{'host'} = $record; $rule_found=1; foreach $field (keys(%H)) { $Access_host{$field} = $MySQLaccess::Report::Answer{$record[$H{$field}]}; } last; } } # ------------------------------- # setting privileges to host-priv MySQLaccess::Debug::Print(2, "Rights after parsing host-table..:"); if (! $rule_found ) { @record=(); MySQLaccess::Debug::Print(2, "NO restrictions found in the host-table!!"); } # -------------------------------- # debugging access-rights in db return (\@record,\%Access_host); #matching record in host-table } # =========================================================== # sub Default_Access_Rights(): # return (a reference to) a hash which holds all default # priviliges currently defined in the grant-tables. # =========================================================== sub Default_Access_Rights { my %right = (); MySQLaccess::Debug::Print(2, "Debug Default_Access_Rights():"); # add entry for all fields in the HOST-table foreach $field (keys(%MySQLaccess::Grant::H)) { $right{$field}='0' unless (defined($right{$field})); } # add entry for all fields in the DB-table foreach $field (keys(%MySQLaccess::Grant::D)) { $right{$field}='0' unless (defined($right{$field})); } # add entry for all fields in the USER-table foreach $field (keys(%MySQLaccess::Grant::U)) { $right{$field}='0' unless (defined($right{$field})); } # -------------- # debugging info foreach $field (keys(%right)) { MySQLaccess::Debug::Print(3, sprintf("> %15s : %1s",$field,$right{$field})); } return \%right; } # ====================================== # sub Make_Privlist # Make an ordered list of the privileges # that should be reported # ====================================== sub Make_Privlist { # layout: #'select_priv', 'create_priv', #'insert_priv', 'drop_priv', #'update_priv', 'reload_priv', #'delete_priv', 'process_priv', #'file_priv', 'shutdown_priv'); my $right; my @privlist=(); foreach $right (@U) { if (! grep(/$right/,@privlist)) { push(@privlist,$right); } }; foreach $right (@D) { if (! grep(/$right/,@privlist)) { push(@privlist,$right); } }; foreach $right (@H) { if (! grep(/$right/,@privlist)) { push(@privlist,$right); } }; # print "Privileges:\n"; # foreach $field (@privlist) { print " > $field\n"; } return \@privlist; } ######################################################################## package MySQLaccess::Report; use Exporter (); @EXPORT = qw(&Print_Header()); BEGIN { $FORM = $ENV{'SCRIPT_NAME'}; $DEBUG = 0; $DEBUG = $MySQLaccess::DEBUG unless ($DEBUG); # translation-table for poss. answers %Answer = ('Y' => 1 , 'N' => 0 , 1 => 'Y', 0 => 'N' ,'?' => '?', '' => '?' ); $headers = 0; $separator = 0; # **************************** # Notes and warnings %MESSAGES = ( 'insecure_user' => "Everybody can access your DB as user `\$user' from host `\$host'\n" ."WITHOUT supplying a password.\n" ."Be very careful about it!!" ,'password_required' => "A password is required for user `\$user' :-(" ,'invalid_password' => "The password '\$password' for user `\$user' is invalid :-P" , 'valid_password' => "You supplied the right password for user `\$user' :-)" ,'public_database' => "Any user with the appropriate permissions has access to your DB!\n" ."Check your users!" ,'full_access' => "All grant-tables are empty, which gives full access to ALL users !!" ,'no_rule_found' => "No matching rule" ,'no_equiv_host' => "Not processed: host-field is not empty in db-table." ,'least_priv' => "If the final priveliges of the user are more then you gave the user,\n" ."check the priveliges in the db-table `\$db'." ,'minimum_priv' => "The privileges for any new user are AT LEAST\n" ."the ones shown in the table above,\n" ."since these are the privileges of the db `\$db'.\n" ,'not_found_mysql' => "The MySQL client program <$MySQLaccess::MYSQL> could not be found.\n" ."+ Check your path, or\n" ."+ edit the source of this script to point \$MYSQL to the mysql client.\n" ,'not_found_mysqldump' => "The MySQL dump program <$MySQLaccess::MYSQLDUMP> could not be found.\n" ."+ Check your path, or\n" ."+ edit the source of this script to point \$MYSQLDUMP to the mysqldump program.\n" ,'not_found_diff' => "The diff program <$MySQLaccess::DIFF> could not be found.\n" ."+ Check your path, or\n" ."+ edit the source of this script to point \$DIFF to the diff program.\n" ,'Unrecognized_option' => "Sorry,\n" ."You are using an old version of the mysql-program,\n" ."which does not yet implement a neccessary option.\n" ."\n" ."You need at least Version 6.2 of the mysql-client,\n" ."which was build in MySQL v3.0.18, to use this version\n" ."of `$MySQLaccess::script'." ,'Access_denied' => "Sorry,\n" ."An error occurred when trying to connect to the database\n" ."with the grant-tables:\n" ."* Maybe YOU do not have READ-access to this database?\n" ."* If you used the -U option, you may have supplied an invalid username?\n" ." for the superuser?\n" ."* If you used the -U option, it may be possible you have to supply\n" ." a superuser-password to, with the -P option?\n" ."* If you used the -P option, you may have supplied an invalid password?\n" ,'Dbaccess_denied' => "Sorry,\n" ."An error occurred when trying to connect to the database\n" ."with the grant-tables. (dbaccess denied)\n" ,'Unknown_tmp_table' => "Sorry,\n" ."An error occurred when trying to work with the temporary tables in the database\n" ."with the grant-tables. (One of the temporary tables does not exist)\n" ,'Unknown_table' => "Sorry,\n" ."An error occurred when trying to work with some tables in the database\n" ."with the grant-tables. (table does not exist)\n" ,'use_old_server' => "Sorry,\n" ."An error occurred when executing an SQL statement.\n" ."You might consider altering the use of the parameter `--old_server' when \n" ."calling `$MySQLaccess::script'." ,'unknown_error' => "Sorry,\n" ."An error occurred when trying to connect to the database\n" ."with the grant-tables. (unknown error)\n" ,'anonymous_access' => "Accessing the db as an anonymous user.\n" ."Your username has no relevance\n" ,'user_required' => "You have to supply a userid." ,'db_required' => "You have to supply the name of a database." ,'host_required' => "You have to supply the name of a host." ); } # ===================================== # sub Print_Header: # print header info # ===================================== sub Print_Header { if ($MySQLaccess::CMD) { #command-line mode print "$MySQLaccess::script Version $MySQLaccess::VERSION\n" ."By RUG-AIV, by Yves Carlier (Yves.Carlier\@rug.ac.be)\n" ."Changes by Steve Harvey (sgh\@vex.net)\n" ."This software comes with ABSOLUTELY NO WARRANTY.\n"; } if ($MySQLaccess::CGI) { #CGI-BIN mode print "content-type: text/html\n\n" . "<HTML>\n" ."<HEAD>\n" ."<TITLE>MySQLaccess</TITLE>\n" ."</HEAD>\n" ."<BODY>\n" ."<H1>$MySQLaccess::script Version $MySQLaccess::VERSION</H1>\n" ."<CENTER>\n<ADDRESS>\n" ."By RUG-AIV, by Yves Carlier (<a href=mailto:Yves.Carlier\@rug.ac.be>Yves.Carlier\@rug.ac.be</a>)<BR>\n" ."Changes by Steve Harvey (<a href=mailto:sgh\@vex.net>sgh\@vex.net</a>)<BR>\n" ."This software comes with ABSOLUTELY NO WARRANTY.<BR>\n" ."</ADDRESS>\n</CENTER>\n" ."<HR>\n"; Print_Taskbar(); print "<HR>\n"; } return 1; } # ===================================== # sub Print_Footer: # print footer info # ===================================== sub Print_Footer { if ($MySQLaccess::CMD) { #command-line mode print "\n" ."BUGs can be reported at https://jira.mariadb.org\n"; } if ($MySQLaccess::CGI) { #CGI-BIN mode if ($MySQLaccess::Param{'brief'}) { print "</table>\n"; #close table in brief-output } print "<HR>\n" ."<ADDRESS>\n" ."BUGs can be reported at <a href=\"https://jira.mariadb.org\">MariaDB JIRA</a><BR>\n" # ."Don't forget to mention the version $VERSION!<BR>\n" ."</ADDRESS>\n" ."</BODY>\n" ."</HTML>\n"; } return 1; } # ===================================== # sub Print_Taskbar: # print taskbar on STDOUT # ===================================== sub Print_Taskbar { print "<CENTER>\n" ."[<a href=$FORM?relnotes=on>Release Notes</a>] \n" ."[<a href=$FORM?version=on>Version</a>] \n" ."[<a href=$FORM?plan=on>Future Plans</a>] \n" ."[<a href=$FORM?howto=on>Examples</a>] \n" ."[<a href=$FORM?help=on>New check</a>] \n" ."[<a href=$FORM?edit=on>Change/edit ACL</a>] \n" ."</CENTER>\n"; return 1; } # ===================================== # sub Print_Form: # print CGI-form # ===================================== sub Print_Form { print <<EOForm; <center> <!-- Quering --> <FORM method=POST action=$FORM> <table border width="100%" > <tr> <th>MySQL server</th> <th>User information</th> <th>Reports</th> </tr> <tr> <td valign=top> <table> <tr> <td halign=right><b>Host</b><br><font size=-2>(Host on which MySQL-server resides.)</font></td> <td valign=top><INPUT name=rhost type=text size=15 maxlength=15 value="$MySQLaccess::Param{'rhost'}"></td> </tr> <tr> <td halign=right><b>Superuser</b><br><font size=-2>(User which has <font color="Red">read-access</font> to grant-tables.)</font></td> <td valign=top><INPUT name=superuser type=text size=15 maxlength=15 value="$MySQLaccess::Param{'superuser'}"></td> </tr> <tr> <td halign=right><b>Password</b><br><font size=-2>(of Superuser.)</font></td> <td valign=top><INPUT name=spassword type=password size=15 maxlength=15 value="$MySQLaccess::Param{'spassword'}"></td> </tr> </table> </td> <td valign=top> <table> <tr> <td halign=right><b><font color=Red>User</font></b><br><font size=-2>(Userid used to connect to MySQL-database.)</font></td> <td halign=top><INPUT name=user type=text size=15 maxlength=15 value="$MySQLaccess::Param{'user'}"></td> </tr> <tr> <td halign=right><b>Password</b><br><font size=-2>(Password user has to give to get access to MySQL-database.)</font></td> <td valign=top><INPUT name=password type=password size=15 maxlength=15 value="$MySQLaccess::Param{'password'}"></td> </tr> <tr> <td halign=right><b><font color=Red>Database</font></b><br><font size=-2>(Name of MySQL-database user tries to connect to.</font><br><font size=-2>Wildcards <font color="Green">(*,?,%,_)</font> are allowed.)</font></td> <td valign=top><INPUT name=db type=text size=15 maxlength=15 value="$MySQLaccess::Param{'db'}"></td> </tr> <tr> <td halign=right><b>Host</b><br><font size=-2>(Host from where the user is trying to connect to MySQL-database.</font><br><font size=-2>Wildcards <font color="Green">(*,?,%,_)</font> are allowed.)</font></td> <td valign=top><INPUT name=host type=text size=15 maxlength=15 value="$MySQLaccess::Param{'host'}"></td> </tr> </table> </td> <td valign=center> <table cellspacing=5 cellpadding=2 cols=1 height="100%"> <tr align=center> <td halign=right><INPUT type=submit name=brief value="Brief"><br> <INPUT type=submit name=table value="Tabular"></td> </tr> <tr align=center> <td></td> </tr> <tr align=center> <td halign=right><INPUT type=reset value="Clear"></td> </tr> </table> </td> </tr> </table> </form> </BODY> </HTML> EOForm return 1; } # ===================================== # sub Print_Usage: # print some information on STDOUT # ===================================== sub Print_Usage { Print_Error_Messages(); if ($MySQLaccess::CMD) { #command-line mode Print_Options(); } if ($MySQLaccess::CGI) { #CGI-BIN mode Print_Form(); } return 1; } # ====================================== # sub Print_Version: # ====================================== sub Print_Version { if ($MySQLaccess::CMD) { print $MySQLaccess::INFO; } if ($MySQLaccess::CGI) { print "<PRE>\n"; print $MySQLaccess::INFO; print "</PRE>\n"; } return 1; } # ====================================== # sub Print_Relnotes: # ====================================== sub Print_Relnotes { if ($MySQLaccess::CMD) { print $MySQLaccess::RELEASE; } if ($MySQLaccess::CGI) { print "<PRE>\n"; print $MySQLaccess::RELEASE; print "</PRE>\n"; } return 1; } # ====================================== # sub Print_Plans: # ====================================== sub Print_Plans { if ($MySQLaccess::CMD) { print $MySQLaccess::TODO; } if ($MySQLaccess::CGI) { print "<PRE>\n"; print $MySQLaccess::TODO; print "</PRE>\n"; } return 1; } # ====================================== # sub Print_HowTo: # ====================================== sub Print_HowTo { if ($MySQLaccess::CMD) { print $MySQLaccess::HOWTO; } if ($MySQLaccess::CGI) { print "<PRE>\n"; print $MySQLaccess::HOWTO; print "</PRE>\n"; } return 1; } # ====================================== # sub Print_Options: # ====================================== sub Print_Options { if ($MySQLaccess::CGI) { print "<PRE>\n"; } print $MySQLaccess::OPTIONS; if ($MySQLaccess::CGI) { print "</PRE>\n"; } return 1; } # ====================================== # sub Print_Error_Access: # ====================================== sub Print_Error_Access { my ($error) = @_; print "\n"; if ($MySQLaccess::CGI) { print "<font color=Red>\n<PRE>\n"; } print $MESSAGES{$error}; if ($MySQLaccess::CGI) { print "</PRE>\n</font>\n"; } print "\n"; return 1; } # ====================================== # sub Print_Error_Messages: # ====================================== sub Print_Error_Messages { # my ($error) = @_; print "\n"; if ($MySQLaccess::CGI) { print "<font color=Red>\n<center>\n"; } foreach $error (@MySQLaccess::Grant::Error) { print $MESSAGES{$error}; print $MySQLaccess::CGI ? "<br>\n" : "\n"; } if ($MySQLaccess::CGI) { print "</center>\n</font>\n"; } print "\n"; return 1; } # ====================================== # sub Print_Message: # ====================================== sub Print_Message { my ($aref) = @_; my @messages = @{$aref}; print "\n"; if ($MySQLaccess::CGI) { print "<font color=DarkGreen>\n<center>\n"; } foreach $msg (@messages) { print $msg; print $MySQLaccess::CGI ? "<br>\n" : "\n"; } if ($MySQLaccess::CGI) { print "</center>\n</font>\n"; } print "\n"; return 1; } # ====================================== # sub Print_Edit: # ====================================== sub Print_Edit { print "\n"; if (!$MySQLaccess::CGI) { print "Note: Editing the temporary tables is NOT supported in CMD-line mode!\n"; return 0; } print "<CENTER>\n" ."<form action=$FORM method=GET>\n" ."<table width=90% border>\n" ."<tr>\n" ." <td><input type=checkbox name=copy value=on> Copy grant-rules to temporary tables<br></td>\n" ." <td rowspan=5 align=center valign=center><input type=submit value=Go></td>\n" ."</tr>\n" ."<tr>\n" ." <td> Edit temporary tables with external application:<br>" ." <a href=\"$MySQLaccess::MYSQLADMIN\">$MySQLaccess::MYSQLADMIN</a></td>\n" ."</tr>\n" ."<tr>\n" ." <td><input type=checkbox name=preview value=on> Preview changes made in temporary tables</td>\n" ."</tr>\n" ."<tr>\n" ." <td><input type=checkbox name=commit value=on> Make changes permanent</td>\n" ."</tr>\n" ."<tr>\n" ." <td><input type=checkbox name=rollback value=on> Restore previous grand-rules</td>\n" ."</tr>\n" ."<tr>\n" ." <td colspan=2 align=center><font size=-2 color=Red>You need write,delete and drop-privileges to perform the above actions</font></td>\n" ."</tr>\n" ."</table>\n" ."</form>\n" ."</CENTER>\n"; return 1; } # ====================================== # sub Print_Access_rights: # print the access-rights on STDOUT # ====================================== sub Print_Access_rights { my ($host,$user,$db,$refhash) = @_; if (defined($MySQLaccess::Param{'brief'})) { # if ($MySQLaccess::CGI) { print "<PRE>\n"; } Matrix_Report($host,$user,$db,$refhash); # if ($MySQLaccess::CGI) { print "</PRE>\n"; } } else { Tabular_Report($host,$user,$db,$refhash); $MySQLaccess::Report::separator = $MySQLaccess::CGI ? "<hr>" : "-"x80; } return 1; } # ====================================== # sub Print_Diff_ACL: # print the diff. in the grants before and after # ====================================== sub Print_Diff_ACL { my ($aref) = @_; my @diffs = @{$aref}; my %block = ( '<' => 'Before', '>' => 'After', ); my %color = ( '<' => 'Green', '>' => 'Red', ); my $curblock = ''; # ----------------------------- # create column-headers foreach $field (@MySQLaccess::Grant::Privileges) { push(@headers,substr($field,0,4)); } if ($MySQLaccess::CMD) { print "\n"; print "Differences in access-rights BEFORE and AFTER changes in grant-tables\n"; # print "---------------------------------------------------------------------\n"; my $line1=""; my $line2=""; $line1 .= sprintf("| %-30s|",'Host,User,DB'); $line2 .= sprintf("+-%-30s+",'-' x 30); foreach $header (@headers) { $line1 .= sprintf("%-4s|",$header); $line2 .= sprintf("%s+",'----'); } print "$line2\n"; print "$line1\n"; print "$line2\n"; $format = "format STDOUT = \n" . "^<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< " . " @|||" x 10 ."\n" . '$host_user_db,@priv' . "\n" . ".\n"; #print $format; eval $format; } if ($MySQLaccess::CGI) { print "<table border width=100%>\n"; print "<tr>\n"; print "<th colspan=11>"; print "Differences in access-rights <font color=$color{'<'}>BEFORE</font> " ."and <font color=$color{'>'}>AFTER</font> changes to grant-tables</font>\n"; print "</th>"; print "</tr>\n"; print "<tr>\n"; $line1 .= sprintf("<th>%-20s</th>",'Host, User, DB'); foreach $header (@headers) { $line1 .= sprintf("<th>%-4s</th>",$header); } print "$line1</tr>\n"; } foreach $line (@diffs) { $type = substr($line,0,1); $line = substr($line,1); ($host,$user,$db,@priv) = split(/,/,$line); if ($MySQLaccess::CMD) { if ($type ne $curblock) { $curblock = $type; print $block{$curblock},":\n"; } #print "$line\n"; write; } if ($MySQLaccess::CGI) { if ($type ne $curblock) { $curblock = $type; print "<tr><td><b>$block{$curblock}<b></td></tr>\n"; } $line1="<td><font color=$color{$type}>$host, $user, $db</font></td>"; foreach $field (@priv) { $line1 .= sprintf("<td align=center><font color=$color{$type}>%-4s</font></td>",$field); } print "<tr>$line1</tr>\n"; } } print "\n"; if ($MySQLaccess::CMD) { print "---------------------------------------------------------------------\n"; } if ($MySQLaccess::CGI) { print "</table><br>"; } return 1; } # ====================================== # sub Tabular_Report # Tabular report, # suitable for 1 triple (host,db,user) # ====================================== sub Tabular_Report { my ($host,$user,$db,$a) = @_; my $column=2; # ----------------------------- # separator if ($MySQLaccess::Report::separator) { print "$MySQLaccess::Report::separator\n"; } # ----------------------------- # print table of access-rights my $rows = int(@MySQLaccess::Grant::Privileges/2); #round up my @table=(); $j=0; for $i (0 .. $rows-1) { $table[$j]=$MySQLaccess::Grant::Privileges[$i]; $j = $j+2; } $j=1; for $i ($rows .. $#MySQLaccess::Grant::Privileges) { $table[$j]=$MySQLaccess::Grant::Privileges[$i]; $j = $j+2; } if ($MySQLaccess::CMD) { print "\n"; print "Access-rights\n"; print "for USER '$user', from HOST '$host', to DB '$db'\n"; } if ($MySQLaccess::CGI) { print "<table border width=100%>\n"; print "<tr>\n"; } if ($MySQLaccess::CGI) { print "<th colspan=5>"; print "<font color=Red>Access-rights</font>\n"; print "for USER '<font color=Green>$user</font>', from HOST '<font color=Green>$host</font>', to DB '<font color=Green>$db</font>'\n"; print "</th>"; print "</tr>\n"; print "<tr>\n"; } if ($MySQLaccess::CMD) { print "\t+-----------------+---+\t+-----------------+---+"; } foreach $field (@table) { if ($MySQLaccess::CMD) { if ($column==2) { print "\n\t"; $column=1;} else { print "\t"; $column=2;} printf "| %-15s | %s |",$field,$Answer{$a->{$field}}; } if ($MySQLaccess::CGI) { if ($column==2) { print "</tr>\n<tr>\n"; $column=1;} else { print "<td width=10%></td>"; $column=2;} printf " <td width=35%><b>%-15s</b></td><td width=10%>%s</td>\n",$field,$Answer{$a->{$field}}; } } print "\n"; if ($MySQLaccess::CMD) { print "\t+-----------------+---+\t+-----------------+---+\n"; } if ($MySQLaccess::CGI) { print "</tr>\n</table><br>"; } # --------------- # print notes: foreach $note (@MySQLaccess::Grant::Notes) { my $message = $MESSAGES{$note}; $message =~ s/\$user/$user/g; $message =~ s/\$db/$db/g; $message =~ s/\$host/$host/g; $message =~ s/\$password/$password/g; $PREFIX='NOTE'; if ($MySQLaccess::CMD) { my @lines = split(/\n/,$message); foreach $line (@lines) { print "$PREFIX:\t $line\n"; $PREFIX=' '; } } if ($MySQLaccess::CGI) { print "<b>$PREFIX:</b> $message<br>\n"; } } # --------------- # print warnings: foreach $warning (@MySQLaccess::Grant::Warnings) { my $message = $MESSAGES{$warning}; $message =~ s/\$user/$user/g; $message =~ s/\$db/$db/g; $message =~ s/\$host/$host/g; $message =~ s/\$password/$password/g; $PREFIX='BEWARE'; if ($MySQLaccess::CMD) { my @lines = split(/\n/,$message); foreach $line (@lines) { print "$PREFIX:\t $line\n"; $PREFIX=' '; } } if ($MySQLaccess::CGI) { print "<b>$PREFIX:</b> $message<br>\n"; } } # --------------- # print errors: foreach $error (@MySQLaccess::Grant::Errors) { my $message = $MESSAGES{$error}; $message =~ s/\$user/$user/g; $message =~ s/\$db/$db/g; $message =~ s/\$host/$host/g; $message =~ s/\$password/$password/g; $PREFIX='ERROR'; if ($MySQLaccess::CMD) { my @lines = split(/\n/,$message); foreach $line (@lines) { print "$PREFIX:\t $line\n"; $PREFIX=' '; } } if ($MySQLaccess::CGI) { print "<b>$PREFIX:</b> $message<br>\n"; } } # --------------- # inform if there are no rules ==> full access for everyone. if ($MySQLaccess::Grant::full_access) { print "$MESSAGES{'full_access'}\n"; } # --------------- # print the rules used print "\n"; if ($MySQLaccess::CMD) { print "The following rules are used:\n"; foreach $field (sort(keys(%MySQLaccess::Grant::Rules))) { my $rule = (defined($MESSAGES{$MySQLaccess::Grant::Rules{$field}}) ? $MESSAGES{$MySQLaccess::Grant::Rules{$field}} : $MySQLaccess::Grant::Rules{$field}); $rule =~ s/\t/','/g; printf " %-5s : '%s'\n",$field,$rule; } } if ($MySQLaccess::CGI) { print "<br>\n"; print "<table border width=100%>\n"; print "<tr><th colspan=2>The following rules are used:</th></tr>\n"; foreach $field (sort(keys(%MySQLaccess::Grant::Rules))) { my $rule = (defined($MESSAGES{$MySQLaccess::Grant::Rules{$field}}) ? $MESSAGES{$MySQLaccess::Grant::Rules{$field}} : $MySQLaccess::Grant::Rules{$field}); $rule =~ s/\t/','/g; printf "<tr><th>%-5s</th><td>'%s'</td></tr>\n",$field,$rule; } print "</table>\n"; } return 1; } # ====================================== # sub Matrix_Report: # single-line output foreach triple, # no notes,warnings,... # ====================================== sub Matrix_Report { my ($host,$user,$db,$a) = @_; my @headers = (); if (! $headers) { # ----------------------------- # create column-headers foreach $field (@MySQLaccess::Grant::Privileges) { push(@headers,substr($field,0,4)); } # ----------------------------- # print column-headers print "\n"; if ($MySQLaccess::CMD) { my $line1=""; my $line2=""; foreach $header (@headers) { $line1 .= sprintf("%-4s ",$header); $line2 .= sprintf("%s ",'----'); } $line1 .= sprintf("| %-20s",'Host,User,DB'); $line2 .= sprintf("+ %-20s",'-' x 20); print "$line1\n"; print "$line2\n"; } if ($MySQLaccess::CGI) { print "<table width=100% border>\n"; my $line1="<tr>"; foreach $header (@headers) { $line1 .= sprintf("<th>%-4s</th>",$header); } $line1 .= sprintf("<th>%-20s</th>",'Host, User, DB'); print "$line1</tr>\n"; } # ---------------------------- # column-headers should only be # printed once. $MySQLaccess::Report::headers=1; } # ------------------------ # print access-information if ($MySQLaccess::CMD) { foreach $field (@MySQLaccess::Grant::Privileges) { printf " %-2s ",$Answer{$a->{$field}}; } printf "| %-20s",join(',',$host,$user,$db); print "\n"; } if ($MySQLaccess::CGI) { print "<tr>"; foreach $field (@MySQLaccess::Grant::Privileges) { printf "<td align=center>%-2s</td>",$Answer{$a->{$field}}; } printf "<td><b>%-20s</b></td>",join(', ',$host,$user,$db); print "</tr>\n"; } return 1; } # ====================================== # sub Raw_Report: # single-line output foreach triple, # no notes,warnings,... # ====================================== sub Raw_Report { my ($host,$user,$db,$a) = @_; my @headers = (); my $string = ""; # ------------------------ # print access-information $string = "$host,$user,$db,"; foreach $field (@MySQLaccess::Grant::Privileges) { $string .= $Answer{$a->{$field}} . ","; } return $string; } ####################################################################### package MySQLaccess::Wildcards; BEGIN { $DEBUG = 0; $DEBUG = $MySQLaccess::DEBUG unless ($DEBUG); } # ############################################ # SQL, WILDCARDS and REGULAR EXPRESSIONS # ============================================ # translage SQL-expressions to Reg-expressions # ============================================ sub SQL2Reg { my ($expr) = @_; my $expr_o = $expr; $expr =~ s/\./\\./g; $expr =~ s/\\%/\002/g; $expr =~ s/%/.*/g; $expr =~ s/\002/%/g; $expr =~ s/\\_/\002/g; $expr =~ s/_/.+/g; $expr =~ s/\002/_/g; MySQLaccess::Debug::Print(2,"$expr_o --> $expr"); return $expr; } # translage WILDcards to Reg-expressions # ============================================ sub Wild2Reg { my ($expr) = @_; my $expr_o = $expr; $expr =~ s/\./\\./g; $expr =~ s/\\\*/\002/g; $expr =~ s/\*/.*/g; $expr =~ s/\002/*/g; $expr =~ s/\\\?/\002/g; $expr =~ s/\?/.+/g; $expr =~ s/\002/?/g; MySQLaccess::Debug::Print(2,"$expr_o --> $expr"); return $expr; } # ============================================= # match a given string with a template # ============================================= sub MatchTemplate { my ($tpl,$string) = @_; my $match=0; if ($string=~ /^$tpl$/ or $tpl eq '') { $match=1; } else { $match=0;} MySQLaccess::Debug::Print(2,"($tpl,$string) --> $match"); return $match; } ####################################################################### package MySQLaccess::Host; BEGIN { $localhost = undef; $DEBUG = 2; $DEBUG = $MySQLaccess::DEBUG unless ($DEBUG); } # ====================================== # sub IP2Name # return the Name with the corr. IP-nmbr # (no aliases yet!!) # ====================================== sub IP2Name { my ($ip) = @_; my $ip_o = $ip; if ($ip !~ /([0-9]+)\.([0-9]+)\.([0-9]+)\.([0-9]+)/o) { MySQLaccess::Debug::Print(3,"'$ip' is not an ip-number, returning IP=$ip"); return $ip; } MySQLaccess::Debug::Print(4,"IP=$ip split up => $1.$2.$3.$4"); $ip = pack "C4",$1,$2,$3,$4; MySQLaccess::Debug::Print(4,"IP packed -> >>$ip<<\n"); my ($name,$aliases,$addrtype,$length,@addrs) = gethostbyaddr($ip, AF_INET); MySQLaccess::Debug::Print(3,"IP=$ip_o => hostname=$name"); MySQLaccess::Debug::Print(4,"aliases=$aliases"); MySQLaccess::Debug::Print(4,"addrtype=$addrtype - length=$length"); return ($name || $ip); #return ($name || undef); } # ====================================== # sub Name2IP # return the IP-number of the host # ====================================== sub Name2IP { my ($name) = @_; if ($name =~ /[%_]/) { MySQLaccess::Debug::Print(3,"'$name' contains SQL-wildcards, returning name=$name"); return $name; } my ($_name,$aliases,$addrtype,$length,@addrs) = gethostbyname($name); my ($a,$b,$c,$d) = unpack('C4',$addrs[0]); my $ip = "$a.$b.$c.$d"; MySQLaccess::Debug::Print(3,"hostname=$name => IP=$ip"); MySQLaccess::Debug::Print(4,"aliases=$aliases"); MySQLaccess::Debug::Print(4,"addrtype=$addrtype - length=$length"); #if ($ip ne "") { return "$ip"; } #else { return undef; } return ($ip || $name); } # ======================================== # sub LocalHost # some special action has to be taken for # the localhost # ======================================== sub LocalHost { if (!defined($MySQLaccess::Host::localhost)) { $MySQLaccess::Host::localhost = Sys::Hostname::hostname(); MySQLaccess::Debug::Print(3,"Setting package variable \$localhost=$MySQLaccess::Host::localhost"); } my $host = $localhost; MySQLaccess::Debug::Print(3,"localhost = $host"); return $host; } # ======================================== # check if the given hostname (or ip) # corresponds with the localhost # ======================================== sub Is_localhost { my ($host_tpl) = @_; my $isit = 0; if (($MySQLaccess::host_name eq $localhost) or ($MySQLaccess::host_ip eq $local_ip)) { MySQLaccess::Debug::Print(2,"Checking for localhost"); MySQLaccess::Debug::Print(3,"because ($MySQLaccess::host_name EQ $localhost) AND ($MySQLaccess::host_ip EQ $local_ip)"); $isit = ( 'localhost' =~ /$host_tpl/ ) ? 1 : 0; MySQLaccess::Debug::Print(3," 'localhost' =?= $host_tpl -> $isit"); return $isit; } else { MySQLaccess::Debug::Print(4,"Not checking for localhost"); MySQLaccess::Debug::Print(4,"because ($MySQLaccess::host_name != $localhost) AND ($MySQLaccess::host_ip != $local_ip)"); return 0; } } # ========================================= # check if host (IP or name) can be matched # on the template. # ========================================= sub MatchTemplate { my ($host,$tpl) = @_; my $match = 0; MySQLaccess::Debug::Print(1, "($host) =?= ($tpl)"); my $host_name = IP2Name($host); my $host_ip = Name2IP($host); MySQLaccess::Debug::Print(2, "name=$host_name ; ip=$host_ip"); $match = (MySQLaccess::Wildcards::MatchTemplate($tpl,$host_name) or MySQLaccess::Wildcards::MatchTemplate($tpl,$host_ip)); MySQLaccess::Debug::Print(2, "($host_name,$host_ip) =?= ($tpl): $ncount"); return $match; } ######################################################################## package MySQLaccess::Debug; BEGIN { my $dbg_file = "$MySQLaccess::script_log"; open(DEBUG,"> $dbg_file") or warn "Could not open outputfile $dbg_file for debugging-info\n"; select DEBUG; $| = 1; select STDOUT; } # ========================================= # Print debugging information on STDERR # ========================================= sub Print { my ($level,$mesg) = @_; my ($pack,$file,$line,$subname,$hasargs,$wantarray) = caller(1); my ($PACK) = split('::',$subname); my $DEBUG = ${$PACK."::DEBUG"} ? ${$PACK."::DEBUG"} : $MySQLaccess::DEBUG ; my ($sec,$min,$hour) = localtime(); print DEBUG "[$hour:$min:$sec $subname] $mesg\n" if ($DEBUG>=$level); }