Linux ns8.secondary29.go.th 2.6.32-754.28.1.el6.x86_64 #1 SMP Wed Mar 11 18:38:45 UTC 2020 x86_64
Apache/2.2.15 (CentOS)
: 122.154.134.11 | : 122.154.134.9
Cant Read [ /etc/named.conf ]
5.6.40
apache
www.github.com/MadExploits
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
CPANEL RESET
CREATE WP USER
README
+ Create Folder
+ Create File
/
usr /
bin /
[ HOME SHELL ]
Name
Size
Permission
Action
.fipscheck.hmac
65
B
-rw-r--r--
.ssh.hmac
65
B
-rw-r--r--
411toppm
11.26
KB
-rwxr-xr-x
5250keys
876
B
-rwxr-xr-x
GET
14.18
KB
-rwxr-xr-x
HEAD
14.18
KB
-rwxr-xr-x
Mail
381.95
KB
-rwxr-xr-x
POST
14.18
KB
-rwxr-xr-x
[
36.13
KB
-rwxr-xr-x
a2p
109.27
KB
-rwxr-xr-x
a2ping
91.65
KB
-rwxr-xr-x
ab
49.54
KB
-rwxr-xr-x
abrt-action-analyze-backtrace
21.81
KB
-rwxr-xr-x
abrt-action-analyze-c
20.66
KB
-rwxr-xr-x
abrt-action-analyze-ccpp-local
1.28
KB
-rwxr-xr-x
abrt-action-analyze-core
6.52
KB
-rwxr-xr-x
abrt-action-analyze-oops
21.26
KB
-rwxr-xr-x
abrt-action-analyze-python
19.73
KB
-rwxr-xr-x
abrt-action-generate-backtrace
21.13
KB
-rwxr-xr-x
abrt-action-generate-core-back...
19.93
KB
-rwxr-xr-x
abrt-action-install-debuginfo
7.02
KB
-rwxr-xr-x
abrt-action-list-dsos
2.69
KB
-rwxr-xr-x
abrt-action-notify
8.66
KB
-rwxr-xr-x
abrt-action-save-kernel-data
1.26
KB
-rwxr-xr-x
abrt-action-save-package-data
29.41
KB
-rwxr-xr-x
abrt-action-trim-files
24.56
KB
-rwxr-xr-x
abrt-cli
31.16
KB
-rwxr-xr-x
abrt-cli-root
8.67
KB
-rwxr-xr-x
abrt-dedup-client
36.2
KB
-rwxr-xr-x
abrt-dump-oops
28.66
KB
-rwxr-xr-x
abrt-handle-upload
8.79
KB
-rwxr-xr-x
ac
24.23
KB
-rwxr-xr-x
aclocal
30.45
KB
-rwxr-xr-x
aclocal-1.11
30.45
KB
-rwxr-xr-x
aconnect
22.37
KB
-rwxr-xr-x
acpi_listen
14.63
KB
-rwxr-xr-x
addftinfo
25.52
KB
-rwxr-xr-x
addr2line
29.16
KB
-rwxr-xr-x
afs5log
76.61
KB
-rwxr-xr-x
aleph
458.53
KB
-rwxr-xr-x
allcm
3.3
KB
-rwxr-xr-x
allec
3.3
KB
-rwxr-xr-x
allneeded
903
B
-rwxr-xr-x
alsa-info
27.22
KB
-rwxr-xr-x
alsa-info.sh
27.22
KB
-rwxr-xr-x
alsaloop
1.49
MB
-rwxr-xr-x
alsamixer
74.68
KB
-rwxr-xr-x
amidi
22.94
KB
-rwxr-xr-x
amixer
54.85
KB
-rwxr-xr-x
amstex
650.74
KB
-rwxr-xr-x
anytopnm
11.11
KB
-rwxr-xr-x
aplay
76.96
KB
-rwxr-xr-x
aplaymidi
25.51
KB
-rwxr-xr-x
apropos
1.74
KB
-rwxr-xr-x
ar
59.55
KB
-rwxr-xr-x
arecord
76.96
KB
-rwxr-xr-x
arecordmidi
28.36
KB
-rwxr-xr-x
as
529.23
KB
-rwxr-xr-x
asciitopgm
10.2
KB
-rwxr-xr-x
aseqdump
20.84
KB
-rwxr-xr-x
aseqnet
21.88
KB
-rwxr-xr-x
aserver
32.12
KB
-rwxr-xr-x
assistant-qt4
947.75
KB
-rwxr-xr-x
assistant_adp
603.22
KB
-rwxr-xr-x
at
53.19
KB
-rwsr-xr-x
atktopbm
11.36
KB
-rwxr-xr-x
atq
53.19
KB
-rwsr-xr-x
atrm
53.19
KB
-rwsr-xr-x
attr
13.52
KB
-rwxr-xr-x
aulast
18.31
KB
-rwxr-xr-x
aulastlog
12.88
KB
-rwxr-xr-x
ausyscall
11.02
KB
-rwxr-xr-x
autoconf
14.29
KB
-rwxr-xr-x
autoheader
8.29
KB
-rwxr-xr-x
autom4te
31.04
KB
-rwxr-xr-x
automake
251.04
KB
-rwxr-xr-x
automake-1.11
251.04
KB
-rwxr-xr-x
autopoint
18.32
KB
-rwxr-xr-x
autoreconf
19.76
KB
-rwxr-xr-x
autoscan
16.67
KB
-rwxr-xr-x
autoupdate
32.97
KB
-rwxr-xr-x
auvirt
34.01
KB
-rwxr-xr-x
awk
373.78
KB
-rwxr-xr-x
b2m
10.87
KB
-rwxr-xr-x
b43-fwcutter
26.95
KB
-rwxr-xr-x
base64
32.08
KB
-rwxr-xr-x
bashbug-64
6.77
KB
-rwxr-xr-x
batch
137
B
-rwxr-xr-x
bc
85.78
KB
-rwxr-xr-x
bdftopcf
10.91
KB
-rwxr-xr-x
bdftops
292
B
-rwxr-xr-x
berkeley_db_svc
74.05
KB
-rwxr-xr-x
bibtex
100.58
KB
-rwxr-xr-x
bibtex8
126.81
KB
-rwxr-xr-x
bioradtopgm
10.41
KB
-rwxr-xr-x
bison
296.2
KB
-rwxr-xr-x
blkiomon
24.82
KB
-rwxr-xr-x
blkparse
46.11
KB
-rwxr-xr-x
blkrawverify
15.17
KB
-rwxr-xr-x
blktrace
38.83
KB
-rwxr-xr-x
bmp2tiff
17.5
KB
-rwxr-xr-x
bmptopnm
22.91
KB
-rwxr-xr-x
bmptoppm
22.91
KB
-rwxr-xr-x
bno_plot.py
3.38
KB
-rwxr-xr-x
brushtopbm
9.32
KB
-rwxr-xr-x
btrace
891
B
-rwxr-xr-x
btrecord
16.55
KB
-rwxr-xr-x
btreplay
26.84
KB
-rwxr-xr-x
btt
72.35
KB
-rwxr-xr-x
build-classpath
1.5
KB
-rwxr-xr-x
build-classpath-directory
383
B
-rwxr-xr-x
build-jar-repository
1.54
KB
-rwxr-xr-x
bunzip2
35.48
KB
-rwxr-xr-x
byacc
76.46
KB
-rwxr-xr-x
bzcat
35.48
KB
-rwxr-xr-x
bzcmp
2.08
KB
-rwxr-xr-x
bzdiff
2.08
KB
-rwxr-xr-x
bzgrep
1.64
KB
-rwxr-xr-x
bzip2
35.48
KB
-rwxr-xr-x
bzip2recover
13.14
KB
-rwxr-xr-x
bzless
1.23
KB
-rwxr-xr-x
bzmore
1.23
KB
-rwxr-xr-x
c++
264.98
KB
-rwxr-xr-x
c++filt
28.54
KB
-rwxr-xr-x
c2ph
35.74
KB
-rwxr-xr-x
c89
224
B
-rwxr-xr-x
c99
215
B
-rwxr-xr-x
ca-legacy
1.61
KB
-rwxr-xr-x
cal
21.09
KB
-rwxr-xr-x
callgrind_annotate
39.92
KB
-rwxr-xr-x
callgrind_control
11.25
KB
-rwxr-xr-x
cameratopam
110.96
KB
-rwxr-xr-x
cancel
14.33
KB
-rwxr-xr-x
cancel.cups
14.33
KB
-rwxr-xr-x
captoinfo
52.52
KB
-rwxr-xr-x
cas
17.01
KB
-rwxr-xr-x
cas-admin
9.84
KB
-rwxr-xr-x
catchsegv
3.3
KB
-rwxr-xr-x
cc
265.34
KB
-rwxr-xr-x
ccache-swig
49.04
KB
-rwxr-xr-x
certmaster-getcert
130.03
KB
-rwxr-xr-x
certutil
172.66
KB
-rwxr-xr-x
certwatch
18.33
KB
-rwxr-xr-x
cg_annotate
31.42
KB
-rwxr-xr-x
cg_diff
10.17
KB
-rwxr-xr-x
cg_merge
68.01
KB
-rwxr-xr-x
chacl
16.82
KB
-rwxr-xr-x
chage
68.83
KB
-rwsr-xr-x
chainsaw
693
B
-rwxr-xr-x
chattr
13.8
KB
-rwxr-xr-x
chcon
58.28
KB
-rwxr-xr-x
check-binary-files
3.25
KB
-rwxr-xr-x
checkmodule
274.53
KB
-rwxr-xr-x
checkpolicy
282.53
KB
-rwxr-xr-x
checksctp
7.75
KB
-rwxr-xr-x
cheetah
73
B
-rwxr-xr-x
cheetah-analyze
114
B
-rwxr-xr-x
cheetah-compile
89
B
-rwxr-xr-x
chfn
19.71
KB
-rws--x--x
chrt
12.77
KB
-rwxr-xr-x
chsh
19.59
KB
-rws--x--x
chvt
9.82
KB
-rwxr-xr-x
ci
90.02
KB
-rwxr-xr-x
cifsiostat
55.98
KB
-rwxr-xr-x
cjpeg
31.84
KB
-rwxr-xr-x
ck-history
27.01
KB
-rwxr-xr-x
ck-launch-session
11.2
KB
-rwxr-xr-x
ck-list-sessions
15.39
KB
-rwxr-xr-x
cksum
28.14
KB
-rwxr-xr-x
clean-binary-files
12.91
KB
-rwxr-xr-x
clear
8.16
KB
-rwxr-xr-x
cloog
14.98
KB
-rwxr-xr-x
clusterdb
57.98
KB
-rwxr-xr-x
cmp
23.09
KB
-rwxr-xr-x
cmsutil
103.77
KB
-rwxr-xr-x
cmuwmtopbm
9.7
KB
-rwxr-xr-x
co
85.62
KB
-rwxr-xr-x
col
14.21
KB
-rwxr-xr-x
colcrt
11.04
KB
-rwxr-xr-x
colrm
8.64
KB
-rwxr-xr-x
column
13.16
KB
-rwxr-xr-x
combinediff
48.13
KB
-rwxr-xr-x
comm
31.3
KB
-rwxr-xr-x
config_data
7.07
KB
-rwxr-xr-x
consolehelper
8.67
KB
-rwxr-xr-x
corelist
6.36
KB
-rwxr-xr-x
cpan
11.56
KB
-rwxr-xr-x
cpan2dist
21.88
KB
-rwxr-xr-x
cpanp
3.32
KB
-rwxr-xr-x
cpanp-run-perl
536
B
-rwxr-xr-x
cpp
264.98
KB
-rwxr-xr-x
crash
7.07
MB
-rwxr-xr-x
create-jar-links
4.55
KB
-rwxr-xr-x
createdb
59.52
KB
-rwxr-xr-x
createlang
61.05
KB
-rwxr-xr-x
createuser
59.81
KB
-rwxr-xr-x
crlutil
115.62
KB
-rwxr-xr-x
crontab
50.57
KB
-rwsr-xr-x
cscope
327.81
KB
-rwxr-xr-x
cscope-indexer
3.77
KB
-rwxr-xr-x
cslatex
650.74
KB
-rwxr-xr-x
csplain
650.74
KB
-rwxr-xr-x
csplit
106.16
KB
-rwxr-xr-x
csslint-0.6
22.67
KB
-rwxr-xr-x
ctags
230.13
KB
-rwxr-xr-x
ctangle
43.22
KB
-rwxr-xr-x
ctie
18.92
KB
-rwxr-xr-x
cupstestdsc
14.23
KB
-rwxr-xr-x
cupstestppd
62.62
KB
-rwxr-xr-x
curl
131.35
KB
-rwxr-xr-x
cut
44.47
KB
-rwxr-xr-x
cvs
626.08
KB
-rwxr-xr-x
cvsbug
13.7
KB
-rwxr-xr-x
cweave
80.28
KB
-rwxr-xr-x
db_archive
11.8
KB
-rwxr-xr-x
db_checkpoint
13.79
KB
-rwxr-xr-x
db_codegen
25.59
KB
-rwxr-xr-x
db_deadlock
14.16
KB
-rwxr-xr-x
db_dump
15.8
KB
-rwxr-xr-x
db_dump185
63.81
KB
-rwxr-xr-x
db_hotbackup
20.88
KB
-rwxr-xr-x
db_load
26.78
KB
-rwxr-xr-x
db_printlog
69.6
KB
-rwxr-xr-x
db_recover
13.48
KB
-rwxr-xr-x
db_stat
14.5
KB
-rwxr-xr-x
db_upgrade
12.31
KB
-rwxr-xr-x
db_verify
12.9
KB
-rwxr-xr-x
dbilogstrip
1.43
KB
-rwxr-xr-x
dbiprof
6.15
KB
-rwxr-xr-x
dbiproxy
5.35
KB
-rwxr-xr-x
dbus-binding-tool
87.89
KB
-rwxr-xr-x
dc
48.65
KB
-rwxr-xr-x
ddate
13.68
KB
-rwxr-xr-x
ddbugtopbm
10.95
KB
-rwxr-xr-x
deallocvt
10.28
KB
-rwxr-xr-x
debuginfo-install
7.46
KB
-rwxr-xr-x
dehtmldiff
1.32
KB
-rwxr-xr-x
desktop-file-install
51.77
KB
-rwxr-xr-x
desktop-file-validate
43.81
KB
-rwxr-xr-x
dialog
35.69
KB
-rwxr-xr-x
diff
84.34
KB
-rwxr-xr-x
diff-jars
1.2
KB
-rwxr-xr-x
diff3
26.94
KB
-rwxr-xr-x
diffstat
34.27
KB
-rwxr-xr-x
dig
150.51
KB
-rwxr-xr-x
dir
114.3
KB
-rwxr-xr-x
dircolors
35.74
KB
-rwxr-xr-x
dirname
25.65
KB
-rwxr-xr-x
djpeg
32.17
KB
-rwxr-xr-x
dltest
10.8
KB
-rwxr-xr-x
dmp
37.08
KB
-rwxr-xr-x
doxygen
5.47
MB
-rwxr-xr-x
doxytag
285.77
KB
-rwxr-xr-x
dprofpp
23.52
KB
-rwxr-xr-x
drill
63.46
KB
-rwxr-xr-x
dropdb
55.79
KB
-rwxr-xr-x
droplang
63.36
KB
-rwxr-xr-x
dropuser
55.79
KB
-rwxr-xr-x
dstat
81.42
KB
-rwxr-xr-x
du
96.88
KB
-rwxr-xr-x
dumphint
554
B
-rwxr-xr-x
dvi2fax
1.07
KB
-rwxr-xr-x
dvipdf
1.03
KB
-rwxr-xr-x
dvips
203.13
KB
-rwxr-xr-x
dvired
3.01
KB
-rwxr-xr-x
dvitomp
38.8
KB
-rwxr-xr-x
e2pall
2.66
KB
-rwxr-xr-x
easy_install
323
B
-rwxr-xr-x
easy_install-2.6
331
B
-rwxr-xr-x
ebrowse
46.57
KB
-rwxr-xr-x
ecj
117
B
-rwxr-xr-x
editdiff
1.91
KB
-rwxr-xr-x
eject
8.67
KB
-rwxr-xr-x
elinks
1.2
MB
-rwxr-xr-x
emacs
10.51
MB
-rwxr-xr-t
emacs-23.1
10.51
MB
-rwxr-xr-t
emacsclient
24.71
KB
-rwxr-xr-x
enc2xs
38.23
KB
-rwxr-xr-x
env
25.75
KB
-rwxr-xr-x
envsubst
32.77
KB
-rwxr-xr-x
eplain
650.74
KB
-rwxr-xr-x
eps2eps
632
B
-rwxr-xr-x
epsffit
13.96
KB
-rwxr-xr-x
epstopdf
12.02
KB
-rwxr-xr-x
eqn
140.8
KB
-rwxr-xr-x
eqn2graph
2.19
KB
-rwxr-xr-x
escp2topbm
9.98
KB
-rwxr-xr-x
espdiff
1.53
KB
-rwxr-xr-x
etags
100.07
KB
-rwxr-xr-x
etags.emacs
100.07
KB
-rwxr-xr-x
etex
650.74
KB
-rwxr-xr-x
eu-addr2line
25.46
KB
-rwxr-xr-x
eu-ar
36.27
KB
-rwxr-xr-x
eu-elfcmp
33.06
KB
-rwxr-xr-x
eu-elflint
101.55
KB
-rwxr-xr-x
eu-findtextrel
19.51
KB
-rwxr-xr-x
eu-make-debug-archive
2.84
KB
-rwxr-xr-x
eu-nm
46.32
KB
-rwxr-xr-x
eu-objdump
33.37
KB
-rwxr-xr-x
eu-ranlib
20.49
KB
-rwxr-xr-x
eu-readelf
174.43
KB
-rwxr-xr-x
eu-size
18.76
KB
-rwxr-xr-x
eu-stack
29.21
KB
-rwxr-xr-x
eu-strings
19.82
KB
-rwxr-xr-x
eu-strip
50.24
KB
-rwxr-xr-x
eu-unstrip
48.64
KB
-rwxr-xr-x
execstack
180.27
KB
-rwxr-xr-x
expand
29.79
KB
-rwxr-xr-x
expr
97.88
KB
-rwxr-xr-x
extconv
8
KB
-rwxr-xr-x
eyuvtoppm
11.86
KB
-rwxr-xr-x
f95
277.73
KB
-rwxr-xr-x
factor
47.84
KB
-rwxr-xr-x
fallocate
11.33
KB
-rwxr-xr-x
fastjar
47.43
KB
-rwxr-xr-x
fax2ps
19.02
KB
-rwxr-xr-x
fax2tiff
17.92
KB
-rwxr-xr-x
fc-cache
17.02
KB
-rwxr-xr-x
fc-cat
15.1
KB
-rwxr-xr-x
fc-list
12.71
KB
-rwxr-xr-x
fc-match
13.98
KB
-rwxr-xr-x
fc-query
11.38
KB
-rwxr-xr-x
fc-scan
11.74
KB
-rwxr-xr-x
fgconsole
10.38
KB
-rwxr-xr-x
fiascotopnm
92.72
KB
-rwxr-xr-x
file
19.32
KB
-rwxr-xr-x
filterdiff
44.24
KB
-rwxr-xr-x
find
233.4
KB
-rwxr-xr-x
find-jar
749
B
-rwxr-xr-x
find-repos-of-install
4.27
KB
-rwxr-xr-x
find2perl
23.06
KB
-rwxr-xr-x
findsmb
4.5
KB
-rwxr-xr-x
fipscheck
14.57
KB
-rwxr-xr-x
fipshmac
13.9
KB
-rwxr-xr-x
fitstopnm
16.29
KB
-rwxr-xr-x
fixcvsdiff
1.83
KB
-rwxr-xr-x
flac
191.95
KB
-rwxr-xr-x
flex
329.84
KB
-rwxr-xr-x
flex++
329.84
KB
-rwxr-xr-x
flipdiff
48.13
KB
-rwxr-xr-x
flock
14.15
KB
-rwxr-xr-x
floppy
27.98
KB
-rwxr-xr-x
fmt
33.23
KB
-rwxr-xr-x
fmtutil
28.47
KB
-rwxr-xr-x
fmtutil-sys
831
B
-rwxr-xr-x
fold
30.95
KB
-rwxr-xr-x
font2c
300
B
-rwxr-xr-x
fontinst
552
B
-rwxr-xr-x
fonttosfnt
36.59
KB
-rwxr-xr-x
foomatic-combo-xml
45.17
KB
-rwxr-xr-x
foomatic-compiledb
4.52
KB
-rwxr-xr-x
foomatic-configure
133.59
KB
-rwxr-xr-x
foomatic-datafile
9.45
KB
-rwxr-xr-x
foomatic-perl-data
81.95
KB
-rwxr-xr-x
foomatic-ppd-options
3.91
KB
-rwxr-xr-x
foomatic-ppd-to-xml
8.79
KB
-rwxr-xr-x
foomatic-ppdfile
9.45
KB
-rwxr-xr-x
foomatic-printjob
34.27
KB
-rwxr-xr-x
foomatic-rip
108.56
KB
-rwxr-xr-x
foomatic-searchprinter
2.43
KB
-rwxr-xr-x
fprintd-delete
12.99
KB
-rwxr-xr-x
fprintd-enroll
12.7
KB
-rwxr-xr-x
fprintd-list
13.45
KB
-rwxr-xr-x
fprintd-verify
14.66
KB
-rwxr-xr-x
free
14.02
KB
-rwxr-xr-x
fstopgm
10.46
KB
-rwxr-xr-x
funzip
24.84
KB
-rwxr-xr-x
g++
264.98
KB
-rwxr-xr-x
g3topbm
15.47
KB
-rwxr-xr-x
gawk
373.78
KB
-rwxr-xr-x
gcc
265.34
KB
-rwxr-xr-x
gcj-dbtool
36.13
KB
-rwxr-xr-x
gconf-merge-tree
60.98
KB
-rwxr-xr-x
gconftool-2
70.29
KB
-rwxr-xr-x
gcore
1.99
KB
-rwxr-xr-x
gcov
43.09
KB
-rwxr-xr-x
gctags
101.78
KB
-rwxr-xr-x
gdb
4.3
MB
-rwxr-xr-x
gdb-add-index
1.07
KB
-rwxr-xr-x
gdbtui
4.3
MB
-rwxr-xr-x
gdbus
37.91
KB
-rwxr-xr-x
gdk-pixbuf-query-loaders-64
16.42
KB
-rwxr-xr-x
gemtopbm
12.04
KB
-rwxr-xr-x
gemtopnm
12.04
KB
-rwxr-xr-x
gencat
25.18
KB
-rwxr-xr-x
gendiff
586
B
-rwxr-xr-x
genkey
43.96
KB
-rwxr-xr-x
geqn
140.8
KB
-rwxr-xr-x
getafm
5.98
KB
-rwxr-xr-x
getcert
134.02
KB
-rwxr-xr-x
getcifsacl
10.2
KB
-rwxr-xr-x
getconf
24.93
KB
-rwxr-xr-x
getent
29.79
KB
-rwxr-xr-x
getfacl
25.63
KB
-rwxr-xr-x
getfattr
21.46
KB
-rwxr-xr-x
getkeycodes
10.54
KB
-rwxr-xr-x
getopt
15.27
KB
-rwxr-xr-x
gettext
32.7
KB
-rwxr-xr-x
gettext.sh
4.54
KB
-rwxr-xr-x
gettextize
40.92
KB
-rwxr-xr-x
gfortran
277.73
KB
-rwxr-xr-x
gftodvi
45.33
KB
-rwxr-xr-x
gftopk
26.82
KB
-rwxr-xr-x
gftype
26.74
KB
-rwxr-xr-x
ghostscript
18.68
KB
-rwxr-xr-x
gif2tiff
17.47
KB
-rwxr-xr-x
giftopnm
23.99
KB
-rwxr-xr-x
gij
9.55
KB
-rwxr-xr-x
gindxbib
31.53
KB
-rwxr-xr-x
gio-querymodules-64
14.03
KB
-rwxr-xr-x
git
1.09
MB
-rwxr-xr-x
git-receive-pack
1.09
MB
-rwxr-xr-x
git-shell
450.64
KB
-rwxr-xr-x
git-upload-archive
1.09
MB
-rwxr-xr-x
git-upload-pack
460.71
KB
-rwxr-xr-x
gjar
10.21
KB
-rwxr-xr-x
gjarsigner
10.23
KB
-rwxr-xr-x
gkeytool
10.22
KB
-rwxr-xr-x
glib-compile-schemas
42.34
KB
-rwxr-xr-x
glookbib
39.98
KB
-rwxr-xr-x
gmake
169.15
KB
-rwxr-xr-x
gneqn
255
B
-rwxr-xr-x
gnroff
2.34
KB
-rwxr-xr-x
gorbd
10.21
KB
-rwxr-xr-x
gouldtoppm
10.08
KB
-rwxr-xr-x
gpasswd
73.87
KB
-rwsr-xr-x
gpg
750.44
KB
-rwxr-xr-x
gpg-agent
298.02
KB
-rwxr-xr-x
gpg-connect-agent
175.2
KB
-rwxr-xr-x
gpg-error
21.33
KB
-rwxr-xr-x
gpg-zip
3.23
KB
-rwxr-xr-x
gpg2
750.44
KB
-rwxr-xr-x
gpgconf
132.59
KB
-rwxr-xr-x
gpgkey2ssh
39.55
KB
-rwxr-xr-x
gpgparsemail
26.02
KB
-rwxr-xr-x
gpgsplit
51.38
KB
-rwxr-xr-x
gpgv
334.27
KB
-rwxr-xr-x
gpgv2
334.27
KB
-rwxr-xr-x
gpic
216.12
KB
-rwxr-xr-x
gprof
97.09
KB
-rwxr-xr-x
grefer
125.91
KB
-rwxr-xr-x
grep-changelog
7.12
KB
-rwxr-xr-x
grepdiff
44.24
KB
-rwxr-xr-x
grepjar
88.31
KB
-rwxr-xr-x
grmic
10.21
KB
-rwxr-xr-x
grmid
10.21
KB
-rwxr-xr-x
grmiregistry
10.23
KB
-rwxr-xr-x
grn
71.27
KB
-rwxr-xr-x
grodvi
86.23
KB
-rwxr-xr-x
groff
71.95
KB
-rwxr-xr-x
groffer
7.59
KB
-rwxr-xr-x
grog
2.41
KB
-rwxr-xr-x
grolbp
93.49
KB
-rwxr-xr-x
grolj4
83.24
KB
-rwxr-xr-x
grops
121.94
KB
-rwxr-xr-x
grotty
82.23
KB
-rwxr-xr-x
groups
27.34
KB
-rwxr-xr-x
gs
18.68
KB
-rwxr-xr-x
gsbj
337
B
-rwxr-xr-x
gsdj
339
B
-rwxr-xr-x
gsdj500
342
B
-rwxr-xr-x
gserialver
10.23
KB
-rwxr-xr-x
gsftopk
36.88
KB
-rwxr-xr-x
gslj
340
B
-rwxr-xr-x
gslp
337
B
-rwxr-xr-x
gsnd
264
B
-rwxr-xr-x
gsoelim
25.58
KB
-rwxr-xr-x
gst-feedback
15.76
KB
-rwxr-xr-x
gst-feedback-0.10
3.1
KB
-rwxr-xr-x
gst-inspect
15.76
KB
-rwxr-xr-x
gst-inspect-0.10
49.73
KB
-rwxr-xr-x
gst-launch
15.76
KB
-rwxr-xr-x
gst-launch-0.10
33.39
KB
-rwxr-xr-x
gst-typefind
15.76
KB
-rwxr-xr-x
gst-typefind-0.10
18.37
KB
-rwxr-xr-x
gst-xmlinspect
15.77
KB
-rwxr-xr-x
gst-xmlinspect-0.10
27.16
KB
-rwxr-xr-x
gst-xmllaunch
15.76
KB
-rwxr-xr-x
gst-xmllaunch-0.10
33.39
KB
-rwxr-xr-x
gstack
1.1
KB
-rwxr-xr-x
gtbl
103.23
KB
-rwxr-xr-x
gtk-query-immodules-2.0-64
22.66
KB
-rwxr-xr-x
gtk-update-icon-cache
36.45
KB
-rwxr-xr-x
gtnameserv
10.23
KB
-rwxr-xr-x
gtroff
355.09
KB
-rwxr-xr-x
gunzip
61
B
-rwxr-xr-x
gzexe
5.73
KB
-rwxr-xr-x
gzip
67.09
KB
-rwxr-xr-x
h2ph
27.38
KB
-rwxr-xr-x
h2xs
58.97
KB
-rwxr-xr-x
hal-device
21.75
KB
-rwxr-xr-x
hal-disable-polling
16.43
KB
-rwxr-xr-x
hal-find-by-capability
12.21
KB
-rwxr-xr-x
hal-find-by-property
12.34
KB
-rwxr-xr-x
hal-get-property
14.42
KB
-rwxr-xr-x
hal-is-caller-locked-out
12.16
KB
-rwxr-xr-x
hal-lock
17.05
KB
-rwxr-xr-x
hal-set-property
16.27
KB
-rwxr-xr-x
halt
8.67
KB
-rwxr-xr-x
hdifftopam
10.26
KB
-rwxr-xr-x
head
35.29
KB
-rwxr-xr-x
hexdump
24.87
KB
-rwxr-xr-x
hipstopgm
10.04
KB
-rwxr-xr-x
host
133.74
KB
-rwxr-xr-x
hostid
25
KB
-rwxr-xr-x
hpcdtoppm
764
B
-rwxr-xr-x
hpftodit
24.09
KB
-rwxr-xr-x
htdbm
15.04
KB
-rwxr-xr-x
htdigest
10.98
KB
-rwxr-xr-x
htpasswd
13.66
KB
-rwxr-xr-x
huge_page_setup_helper.py
12.05
KB
-rwxr-xr-x
hugeadm
68.96
KB
-rwxr-xr-x
hugectl
16.04
KB
-rwxr-xr-x
hugeedit
11.42
KB
-rwxr-xr-x
hunspell
58.84
KB
-rwxr-xr-x
hwloc-assembler
13.23
KB
-rwxr-xr-x
hwloc-assembler-remote
2.28
KB
-rwxr-xr-x
hwloc-bind
29.23
KB
-rwxr-xr-x
hwloc-calc
34.36
KB
-rwxr-xr-x
hwloc-distances
17.3
KB
-rwxr-xr-x
hwloc-distrib
21.11
KB
-rwxr-xr-x
hwloc-gather-topology
3.87
KB
-rwxr-xr-x
hwloc-info
94.2
KB
-rwxr-xr-x
hwloc-ls
94.2
KB
-rwxr-xr-x
hwloc-ps
16.11
KB
-rwxr-xr-x
i386
13.59
KB
-rwxr-xr-x
icontopbm
10.55
KB
-rwxr-xr-x
iconv
61.55
KB
-rwxr-xr-x
id
31.95
KB
-rwxr-xr-x
ident
11.88
KB
-rwxr-xr-x
idn
35.38
KB
-rwxr-xr-x
iecset
21.05
KB
-rwxr-xr-x
ifnames
3.95
KB
-rwxr-xr-x
igawk
3.02
KB
-rwxr-xr-x
ilbmtoppm
39.33
KB
-rwxr-xr-x
imgtoppm
10.82
KB
-rwxr-xr-x
indent
75.13
KB
-rwxr-xr-x
indxbib
31.53
KB
-rwxr-xr-x
info
181.73
KB
-rwxr-xr-x
infocmp
54.41
KB
-rwxr-xr-x
infokey
25.06
KB
-rwxr-xr-x
infotocap
52.52
KB
-rwxr-xr-x
infotopam
14.23
KB
-rwxr-xr-x
innochecksum
14.46
KB
-rwxr-xr-x
install
110.7
KB
-rwxr-xr-x
install-catalog
4.27
KB
-rwxr-xr-x
instmodsh
4.15
KB
-rwxr-xr-x
interdiff
48.13
KB
-rwxr-xr-x
intltool-extract
27.32
KB
-rwxr-xr-x
intltool-merge
39
KB
-rwxr-xr-x
intltool-prepare
8.4
KB
-rwxr-xr-x
intltool-update
33.74
KB
-rwxr-xr-x
intltoolize
6.98
KB
-rwxr-xr-x
ionice
18.35
KB
-rwxr-xr-x
iostat
69.9
KB
-rwxr-xr-x
ipa-getcert
126.02
KB
-rwxr-xr-x
ipcmk
17.87
KB
-rwxr-xr-x
ipcrm
12.27
KB
-rwxr-xr-x
ipcs
22.58
KB
-rwxr-xr-x
isosize
10.55
KB
-rwxr-xr-x
isql
32.02
KB
-rwxr-xr-x
iusql
27.16
KB
-rwxr-xr-x
java
9.7
KB
-rwxr-xr-x
jbigtopnm
58.69
KB
-rwxr-xr-x
join
41.89
KB
-rwxr-xr-x
jpeg2ktopam
15.01
KB
-rwxr-xr-x
jpegtopnm
31.75
KB
-rwxr-xr-x
jpegtran
30.98
KB
-rwxr-xr-x
jv-convert
10.16
KB
-rwxr-xr-x
jvmjar
1.72
KB
-rwxr-xr-x
k5srvutil
1.87
KB
-rwxr-xr-x
kadmin
74.09
KB
-rwxr-xr-x
kbdrate
11.38
KB
-rwxr-xr-x
kdestroy
10.02
KB
-rwxr-xr-x
keyrand
12.51
KB
-rwxr-xr-x
keytool
9.82
KB
-rwxr-xr-x
keyutil
66.44
KB
-rwxr-xr-x
kill
14.88
KB
-rwxr-xr-x
killall
23.89
KB
-rwxr-xr-x
kinit
26.02
KB
-rwxr-xr-x
klist
26.02
KB
-rwxr-xr-x
koi8rxterm
3.67
KB
-rwxr-xr-x
kpasswd
10.02
KB
-rwxr-xr-x
kpseaccess
8.76
KB
-rwxr-xr-x
kpsepath
3.38
KB
-rwxr-xr-x
kpsereadlink
8.87
KB
-rwxr-xr-x
kpsestat
9.57
KB
-rwxr-xr-x
kpsetool
3.38
KB
-rwxr-xr-x
kpsewhere
1.41
KB
-rwxr-xr-x
kpsewhich
24.09
KB
-rwxr-xr-x
kpsexpand
3.38
KB
-rwxr-xr-x
kswitch
10.02
KB
-rwxr-xr-x
ktutil
22.02
KB
-rwxr-xr-x
kvno
14.02
KB
-rwxr-xr-x
lacheck
63.24
KB
-rwxr-xr-x
lambda
467.72
KB
-rwxr-xr-x
lamed
458.53
KB
-rwxr-xr-x
last
19.88
KB
-rwxr-xr-x
lastb
19.88
KB
-rwxr-xr-x
lastcomm
22.88
KB
-rwxr-xr-x
lastlog
14.02
KB
-rwxr-xr-x
latex
650.74
KB
-rwxr-xr-x
latrace
95.79
KB
-rwxr-xr-x
latrace-ctl
95.79
KB
-rwxr-xr-x
lchfn
32.63
KB
-rwxr-xr-x
lchsh
30.1
KB
-rwxr-xr-x
ld
581.21
KB
-rwxr-xr-x
ldapadd
81.48
KB
-rwxr-xr-x
ldapcompare
69.19
KB
-rwxr-xr-x
ldapdelete
73.35
KB
-rwxr-xr-x
ldapexop
70.83
KB
-rwxr-xr-x
ldapmodify
81.48
KB
-rwxr-xr-x
ldapmodrdn
70.8
KB
-rwxr-xr-x
ldappasswd
70.89
KB
-rwxr-xr-x
ldapsearch
94.31
KB
-rwxr-xr-x
ldapurl
25.02
KB
-rwxr-xr-x
ldapwhoami
69.17
KB
-rwxr-xr-x
ldd
5.2
KB
-rwxr-xr-x
ldns-chaos
12.18
KB
-rwxr-xr-x
ldns-compare-zones
14.42
KB
-rwxr-xr-x
ldns-dane
45.55
KB
-rwxr-xr-x
ldns-dpa
45.02
KB
-rwxr-xr-x
ldns-gen-zone
17.96
KB
-rwxr-xr-x
ldns-key2ds
13.14
KB
-rwxr-xr-x
ldns-keyfetcher
25.82
KB
-rwxr-xr-x
ldns-keygen
16.36
KB
-rwxr-xr-x
ldns-mx
10.63
KB
-rwxr-xr-x
ldns-notify
17.13
KB
-rwxr-xr-x
ldns-nsec3-hash
11.91
KB
-rwxr-xr-x
ldns-read-zone
16.35
KB
-rwxr-xr-x
ldns-resolver
10.08
KB
-rwxr-xr-x
ldns-revoke
11.26
KB
-rwxr-xr-x
ldns-rrsig
14.67
KB
-rwxr-xr-x
ldns-signzone
29.58
KB
-rwxr-xr-x
ldns-test-edns
13.66
KB
-rwxr-xr-x
ldns-testns
35.64
KB
-rwxr-xr-x
ldns-update
17.1
KB
-rwxr-xr-x
ldns-verify-zone
26.68
KB
-rwxr-xr-x
ldns-version
8.54
KB
-rwxr-xr-x
ldns-walk
22.44
KB
-rwxr-xr-x
ldns-zcat
12.53
KB
-rwxr-xr-x
ldns-zsplit
15.55
KB
-rwxr-xr-x
ldnsd
15.63
KB
-rwxr-xr-x
leaftoppm
11.69
KB
-rwxr-xr-x
less
150.8
KB
-rwxr-xr-x
lessecho
10.41
KB
-rwxr-xr-x
lesskey
18.4
KB
-rwxr-xr-x
lesspipe.sh
2.74
KB
-rwxr-xr-x
lex
329.84
KB
-rwxr-xr-x
libnetcfg
15.36
KB
-rwxr-xr-x
libtar
14.68
KB
-rwxr-xr-x
libtool
276.69
KB
-rwxr-xr-x
libtoolize
66.56
KB
-rwxr-xr-x
linc-cleanup-sockets
13.09
KB
-rwxr-xr-x
links
1.2
MB
-rwxr-xr-x
linux32
13.59
KB
-rwxr-xr-x
linux64
13.59
KB
-rwxr-xr-x
lispmtopgm
10.19
KB
-rwxr-xr-x
lkbib
40.11
KB
-rwxr-xr-x
loadunimap
25.52
KB
-rwxr-xr-x
local-getcert
130.02
KB
-rwxr-xr-x
locale
40.4
KB
-rwxr-xr-x
localedef
321.91
KB
-rwxr-xr-x
locate
37.56
KB
-rwx--s--x
logfactor5
593
B
-rwxr-xr-x
logger
14.7
KB
-rwxr-xr-x
logname
25.09
KB
-rwxr-xr-x
logresolve
10.94
KB
-rwxr-xr-x
look
11.46
KB
-rwxr-xr-x
lookbib
39.98
KB
-rwxr-xr-x
lp
18.38
KB
-rwxr-xr-x
lp.cups
18.38
KB
-rwxr-xr-x
lp5250d
17.86
KB
-rwxr-xr-x
lpoptions
14.36
KB
-rwxr-xr-x
lppasswd
14.38
KB
-rwxr-xr-x
lpq
14.38
KB
-rwxr-xr-x
lpq.cups
14.38
KB
-rwxr-xr-x
lpr
14.35
KB
-rwxr-xr-x
lpr.cups
14.35
KB
-rwxr-xr-x
lprm
10.21
KB
-rwxr-xr-x
lprm.cups
10.21
KB
-rwxr-xr-x
lprsetup.sh
4.55
KB
-rwxr-xr-x
lpstat
26.71
KB
-rwxr-xr-x
lpstat.cups
26.71
KB
-rwxr-xr-x
lsattr
12.77
KB
-rwxr-xr-x
lsb_release
15.56
KB
-rwxr-xr-x
lscpu
53.92
KB
-rwxr-xr-x
lsdiff
44.24
KB
-rwxr-xr-x
lshal
27.89
KB
-rwxr-xr-x
lslogins
50.78
KB
-rwxr-xr-x
lstopo
105.62
KB
-rwxr-xr-x
lstopo-no-graphics
94.2
KB
-rwxr-xr-x
lsusb
105.49
KB
-rwxr-xr-x
lsusb.py
13.09
KB
-rwxr-xr-x
ltrace
111.55
KB
-rwxr-xr-x
lua
17.45
KB
-rwxr-xr-x
luac
113.37
KB
-rwxr-xr-x
lwp-download
7.89
KB
-rwxr-xr-x
lwp-dump
2.55
KB
-rwxr-xr-x
lwp-mirror
2.33
KB
-rwxr-xr-x
lwp-request
14.18
KB
-rwxr-xr-x
lwp-rget
14.71
KB
-rwxr-xr-x
lzcat
50.63
KB
-rwxr-xr-x
lzcmp
5.1
KB
-rwxr-xr-x
lzdiff
5.1
KB
-rwxr-xr-x
lzegrep
5.36
KB
-rwxr-xr-x
lzfgrep
5.36
KB
-rwxr-xr-x
lzgrep
5.36
KB
-rwxr-xr-x
lzless
1.76
KB
-rwxr-xr-x
lzma
50.63
KB
-rwxr-xr-x
lzmadec
15.11
KB
-rwxr-xr-x
lzmainfo
12.56
KB
-rwxr-xr-x
lzmore
2.12
KB
-rwxr-xr-x
m4
207.46
KB
-rwxr-xr-x
macptopbm
9.7
KB
-rwxr-xr-x
mag
10.13
KB
-rwxr-xr-x
mailq
208.61
KB
-rwxr-xr-x
mailq.postfix
208.61
KB
-rwxr-xr-x
make
169.15
KB
-rwxr-xr-x
makeindex
83.06
KB
-rwxr-xr-x
makempx
21.23
KB
-rwxr-xr-x
mako-render
893
B
-rwxr-xr-x
man
54.8
KB
-rwxr-xr-x
man2html
60.84
KB
-rwxr-xr-x
manpath
54.8
KB
-rwxr-xr-x
manweb
12.19
KB
-rwxr-xr-x
mapscrn
20.55
KB
-rwxr-xr-x
markdown
1.24
KB
-rwxr-xr-x
mbchk
607.3
KB
-rwxr-xr-x
mc
963.14
KB
-rwxr-xr-x
mcedit
963.14
KB
-rwxr-xr-x
mcmfmt
8.4
KB
-rwxr-xr-x
mcookie
13.93
KB
-rwxr-xr-x
mcview
963.14
KB
-rwxr-xr-x
md5sum
35.27
KB
-rwxr-xr-x
mdatopbm
11.94
KB
-rwxr-xr-x
memhog
13.24
KB
-rwxr-xr-x
merge
63.04
KB
-rwxr-xr-x
mesg
9.57
KB
-rwxr-xr-x
metaflac
111.89
KB
-rwxr-xr-x
mf
270.67
KB
-rwxr-xr-x
mf-nowin
254.84
KB
-rwxr-xr-x
mft
53.45
KB
-rwxr-xr-x
mgrtopbm
10.01
KB
-rwxr-xr-x
migratepages
12.41
KB
-rwxr-xr-x
migspeed
15.16
KB
-rwxr-xr-x
mkfifo
29.09
KB
-rwxr-xr-x
mkfontdir
131
B
-rwxr-xr-x
mkfontscale
34.02
KB
-rwxr-xr-x
mkindex
947
B
-rwxr-xr-x
mkocp
171
B
-rwxr-xr-x
mkofm
83
B
-rwxr-xr-x
mktexfmt
28.47
KB
-rwxr-xr-x
mktexlsr
5.66
KB
-rwxr-xr-x
mktexmf
3.76
KB
-rwxr-xr-x
mktexpk
8.91
KB
-rwxr-xr-x
mktextfm
4.72
KB
-rwxr-xr-x
mllatex
650.74
KB
-rwxr-xr-x
mltex
650.74
KB
-rwxr-xr-x
modutil
157.41
KB
-rwxr-xr-x
mp2bug
1.24
KB
-rwxr-xr-x
mpost
365.57
KB
-rwxr-xr-x
mpstat
59.74
KB
-rwxr-xr-x
mpto
13.21
KB
-rwxr-xr-x
mrftopbm
10.52
KB
-rwxr-xr-x
ms_print
23.64
KB
-rwxr-xr-x
msgattrib
23.53
KB
-rwxr-xr-x
msgcat
23.8
KB
-rwxr-xr-x
msgcmp
17.73
KB
-rwxr-xr-x
msgcomm
22.2
KB
-rwxr-xr-x
msgconv
19.56
KB
-rwxr-xr-x
msgen
19.47
KB
-rwxr-xr-x
msgexec
16.27
KB
-rwxr-xr-x
msgfilter
25.75
KB
-rwxr-xr-x
msgfmt
67.73
KB
-rwxr-xr-x
msggrep
103.15
KB
-rwxr-xr-x
msghack
12.51
KB
-rwxr-xr-x
msginit
44.45
KB
-rwxr-xr-x
msgmerge
44.63
KB
-rwxr-xr-x
msgunfmt
31.2
KB
-rwxr-xr-x
msguniq
21.26
KB
-rwxr-xr-x
msql2mysql
1.38
KB
-rwxr-xr-x
mtvtoppm
9.73
KB
-rwxr-xr-x
musixflx
20.3
KB
-rwxr-xr-x
my_print_defaults
1.34
MB
-rwxr-xr-x
myisam_ftdump
1.59
MB
-rwxr-xr-x
myisamchk
1.7
MB
-rwxr-xr-x
myisamlog
1.59
MB
-rwxr-xr-x
myisampack
1.62
MB
-rwxr-xr-x
mysql
348.62
KB
-rwxr-xr-x
mysql_client_test
408.45
KB
-rwxr-xr-x
mysql_config
7.77
KB
-rwxr-xr-x
mysql_convert_table_format
4.15
KB
-rwxr-xr-x
mysql_find_rows
3.24
KB
-rwxr-xr-x
mysql_fix_extensions
1.23
KB
-rwxr-xr-x
mysql_fix_privilege_tables
5.7
KB
-rwxr-xr-x
mysql_install_db
14.3
KB
-rwxr-xr-x
mysql_secure_installation
8.01
KB
-rwxr-xr-x
mysql_setpermission
17.06
KB
-rwxr-xr-x
mysql_tzinfo_to_sql
1.31
MB
-rwxr-xr-x
mysql_upgrade
77.36
KB
-rwxr-xr-x
mysql_waitpid
174.54
KB
-rwxr-xr-x
mysql_zap
3.8
KB
-rwxr-xr-x
mysqlaccess
108.95
KB
-rwxr-xr-x
mysqladmin
42.6
KB
-rwxr-xr-x
mysqlbinlog
160.74
KB
-rwxr-xr-x
mysqlbug
7.77
KB
-rwxr-xr-x
mysqlcheck
39.13
KB
-rwxr-xr-x
mysqld_multi
23.92
KB
-rwxr-xr-x
mysqldump
95.73
KB
-rwxr-xr-x
mysqldumpslow
7.23
KB
-rwxr-xr-x
mysqlhotcopy
31.72
KB
-rwxr-xr-x
mysqlimport
34.39
KB
-rwxr-xr-x
mysqlshow
33.69
KB
-rwxr-xr-x
mysqlslap
52.3
KB
-rwxr-xr-x
mysqltest
194.11
KB
-rwxr-xr-x
nail
381.95
KB
-rwxr-xr-x
namei
15.99
KB
-rwxr-xr-x
nano
174.7
KB
-rwxr-xr-x
nc
25.76
KB
-rwxr-xr-x
needs-restarting
5.61
KB
-rwxr-xr-x
neotoppm
9.7
KB
-rwxr-xr-x
neqn
255
B
-rwxr-xr-x
net
8.33
MB
-rwxr-xr-x
netaddr
920
B
-rwxr-xr-x
newaliases
208.61
KB
-rwxr-xr-x
newaliases.postfix
208.61
KB
-rwxr-xr-x
newer
9.74
KB
-rwxr-xr-x
newgrp
39.3
KB
-rwsr-xr-x
nfs4_editfacl
28.38
KB
-rwxr-xr-x
nfs4_getfacl
16.55
KB
-rwxr-xr-x
nfs4_setfacl
28.38
KB
-rwxr-xr-x
ngettext
32.16
KB
-rwxr-xr-x
nl
98.3
KB
-rwxr-xr-x
nm
43.29
KB
-rwxr-xr-x
nmblookup
1.65
MB
-rwxr-xr-x
nohup
29.07
KB
-rwxr-xr-x
nosetests
299
B
-rwxr-xr-x
nproc
27.22
KB
-rwxr-xr-x
nroff
2.34
KB
-rwxr-xr-x
nsenter
22.3
KB
-rwxr-xr-x
nslookup
133.68
KB
-rwxr-xr-x
nss-policy-check
10.2
KB
-rwxr-xr-x
nsupdate
75.52
KB
-rwxr-xr-x
ntpstat
10.02
KB
-rwxr-xr-x
numactl
30.48
KB
-rwxr-xr-x
numademo
45.19
KB
-rwxr-xr-x
numastat
28
KB
-rwxr-xr-x
objcopy
213.91
KB
-rwxr-xr-x
objdump
281.38
KB
-rwxr-xr-x
ocount
157.13
KB
-rwxr-xr-x
ocs
7.1
KB
-rwxr-xr-x
od
60.72
KB
-rwxr-xr-x
odbc_config
9.98
KB
-rwxr-xr-x
odbcinst
27.28
KB
-rwxr-xr-x
oddjob_request
35.52
KB
-rwxr-xr-x
odvips
203.13
KB
-rwxr-xr-x
ofm2opl
117.45
KB
-rwxr-xr-x
oldfind
230.81
KB
-rwxr-xr-x
omega
467.72
KB
-rwxr-xr-x
omfonts
117.45
KB
-rwxr-xr-x
omshell
442.43
KB
-rwxr-xr-x
on_ac_power
1.57
KB
-rwxr-xr-x
op-check-perfevents
8.98
KB
-rwxr-xr-x
opannotate
1.22
MB
-rwxr-xr-x
oparchive
1.11
MB
-rwxr-xr-x
opcontrol
55.85
KB
-rwxr-xr-x
open
16.2
KB
-rwxr-xr-x
openssl
535.34
KB
-rwxr-xr-x
openvt
16.2
KB
-rwxr-xr-x
operf
265.8
KB
-rwxr-xr-x
opgprof
1.14
MB
-rwxr-xr-x
ophelp
65.3
KB
-rwxr-xr-x
opimport
71.67
KB
-rwxr-xr-x
opjitconv
776.27
KB
-rwxr-xr-x
opl2ofm
117.45
KB
-rwxr-xr-x
opreport
1.32
MB
-rwxr-xr-x
oprof_start
249.99
KB
-rwxr-xr-x
oprofiled
102.55
KB
-rwxr-xr-x
orbd
10
KB
-rwxr-xr-x
oscap
102.66
KB
-rwxr-xr-x
otangle
43.39
KB
-rwxr-xr-x
otfdump
31.47
KB
-rwxr-xr-x
otflist
11.98
KB
-rwxr-xr-x
otftobdf
11.78
KB
-rwxr-xr-x
otfview
70.52
KB
-rwxr-xr-x
otp2ocp
37.27
KB
-rwxr-xr-x
outocp
12.59
KB
-rwxr-xr-x
ovf2ovp
117.45
KB
-rwxr-xr-x
ovp2ovf
117.45
KB
-rwxr-xr-x
p11-kit
120.36
KB
-rwxr-xr-x
pack200
9.85
KB
-rwxr-xr-x
package-cleanup
18.16
KB
-rwxr-xr-x
pagesize
34.27
KB
-rwxr-xr-x
pal2rgb
15.1
KB
-rwxr-xr-x
palmtopnm
22.54
KB
-rwxr-xr-x
pamaddnoise
15
KB
-rwxr-xr-x
pamarith
16.05
KB
-rwxr-xr-x
pambackground
12.89
KB
-rwxr-xr-x
pambayer
10.98
KB
-rwxr-xr-x
pamchannel
10.95
KB
-rwxr-xr-x
pamcomp
17.52
KB
-rwxr-xr-x
pamcut
16.66
KB
-rwxr-xr-x
pamdeinterlace
10.09
KB
-rwxr-xr-x
pamdepth
10.6
KB
-rwxr-xr-x
pamdice
13.05
KB
-rwxr-xr-x
pamditherbw
21.15
KB
-rwxr-xr-x
pamedge
10.46
KB
-rwxr-xr-x
pamendian
8.87
KB
-rwxr-xr-x
pamenlarge
11.59
KB
-rwxr-xr-x
pamfile
11.27
KB
-rwxr-xr-x
pamfixtrunc
10.57
KB
-rwxr-xr-x
pamflip
18.86
KB
-rwxr-xr-x
pamfunc
13.11
KB
-rwxr-xr-x
pamgauss
11.16
KB
-rwxr-xr-x
pamgradient
11.14
KB
-rwxr-xr-x
pamlookup
12.38
KB
-rwxr-xr-x
pammasksharpen
11.25
KB
-rwxr-xr-x
pammixinterlace
11.98
KB
-rwxr-xr-x
pamoil
10.32
KB
-rwxr-xr-x
pamperspective
24.88
KB
-rwxr-xr-x
pampick
10.97
KB
-rwxr-xr-x
pampop9
9.86
KB
-rwxr-xr-x
pamrgbatopng
10.95
KB
-rwxr-xr-x
pamscale
27.3
KB
-rwxr-xr-x
pamseq
11.04
KB
-rwxr-xr-x
pamsharpmap
10.38
KB
-rwxr-xr-x
pamsharpness
9.7
KB
-rwxr-xr-x
pamsistoaglyph
12.36
KB
-rwxr-xr-x
pamslice
10.39
KB
-rwxr-xr-x
pamsplit
10.94
KB
-rwxr-xr-x
pamstack
11.32
KB
-rwxr-xr-x
pamstereogram
18.3
KB
-rwxr-xr-x
pamstretch
12.76
KB
-rwxr-xr-x
pamstretch-gen
2.13
KB
-rwxr-xr-x
pamsumm
10.62
KB
-rwxr-xr-x
pamsummcol
11.23
KB
-rwxr-xr-x
pamthreshold
15.34
KB
-rwxr-xr-x
pamtilt
16.16
KB
-rwxr-xr-x
pamtodjvurle
11.66
KB
-rwxr-xr-x
pamtofits
11.49
KB
-rwxr-xr-x
pamtogif
20.45
KB
-rwxr-xr-x
pamtohdiff
9.73
KB
-rwxr-xr-x
pamtohtmltbl
11.88
KB
-rwxr-xr-x
pamtojpeg2k
17.98
KB
-rwxr-xr-x
pamtompfont
10.1
KB
-rwxr-xr-x
pamtooctaveimg
11.53
KB
-rwxr-xr-x
pamtopam
9.2
KB
-rwxr-xr-x
pamtopfm
10.88
KB
-rwxr-xr-x
pamtopnm
10.14
KB
-rwxr-xr-x
pamtosvg
77.25
KB
-rwxr-xr-x
pamtotga
16.26
KB
-rwxr-xr-x
pamtotiff
32.83
KB
-rwxr-xr-x
pamtouil
13.08
KB
-rwxr-xr-x
pamtoxvmini
10.9
KB
-rwxr-xr-x
pamundice
14.63
KB
-rwxr-xr-x
pamx
37.57
KB
-rwxr-xr-x
pango-querymodules-64
18.2
KB
-rwxr-xr-x
pango-view
60.86
KB
-rwxr-xr-x
passwd
30.05
KB
-rwsr-xr-x
paste
28.45
KB
-rwxr-xr-x
patch
117.9
KB
-rwxr-xr-x
patgen
33.33
KB
-rwxr-xr-x
pathchk
27.23
KB
-rwxr-xr-x
pax
110.9
KB
-rwxr-xr-x
pbmclean
10.73
KB
-rwxr-xr-x
pbmlife
9.25
KB
-rwxr-xr-x
pbmmake
10.03
KB
-rwxr-xr-x
pbmmask
11.26
KB
-rwxr-xr-x
pbmminkowski
9.69
KB
-rwxr-xr-x
pbmpage
11.35
KB
-rwxr-xr-x
pbmpscale
11.49
KB
-rwxr-xr-x
pbmreduce
11.67
KB
-rwxr-xr-x
pbmtext
15.73
KB
-rwxr-xr-x
pbmtextps
14.95
KB
-rwxr-xr-x
pbmto10x
10.77
KB
-rwxr-xr-x
pbmto4425
9.75
KB
-rwxr-xr-x
pbmtoascii
10.34
KB
-rwxr-xr-x
pbmtoatk
10.58
KB
-rwxr-xr-x
pbmtobbnbg
9.71
KB
-rwxr-xr-x
pbmtocmuwm
9.38
KB
-rwxr-xr-x
pbmtodjvurle
10.05
KB
-rwxr-xr-x
pbmtoepsi
10.23
KB
-rwxr-xr-x
pbmtoepson
11.17
KB
-rwxr-xr-x
pbmtoescp2
10.68
KB
-rwxr-xr-x
pbmtog3
14.6
KB
-rwxr-xr-x
pbmtogem
10.66
KB
-rwxr-xr-x
pbmtogo
11.13
KB
-rwxr-xr-x
pbmtoibm23xx
11.29
KB
-rwxr-xr-x
pbmtoicon
10.13
KB
-rwxr-xr-x
pbmtolj
13.32
KB
-rwxr-xr-x
pbmtoln03
11.26
KB
-rwxr-xr-x
pbmtolps
10.62
KB
-rwxr-xr-x
pbmtomacp
10.97
KB
-rwxr-xr-x
pbmtomatrixorbital
9
KB
-rwxr-xr-x
pbmtomda
11.16
KB
-rwxr-xr-x
pbmtomgr
9.08
KB
-rwxr-xr-x
pbmtomrf
10.66
KB
-rwxr-xr-x
pbmtonokia
13.44
KB
-rwxr-xr-x
pbmtopgm
10.01
KB
-rwxr-xr-x
pbmtopi3
9.73
KB
-rwxr-xr-x
pbmtopk
21.49
KB
-rwxr-xr-x
pbmtoplot
8.88
KB
-rwxr-xr-x
pbmtoppa
28.51
KB
-rwxr-xr-x
pbmtopsg3
13.45
KB
-rwxr-xr-x
pbmtoptx
9.06
KB
-rwxr-xr-x
pbmtowbmp
9.16
KB
-rwxr-xr-x
pbmtox10bm
1.35
KB
-rwxr-xr-x
pbmtoxbm
13.47
KB
-rwxr-xr-x
pbmtoybm
9.31
KB
-rwxr-xr-x
pbmtozinc
10.57
KB
-rwxr-xr-x
pbmupc
17.69
KB
-rwxr-xr-x
pc1toppm
9.97
KB
-rwxr-xr-x
pcdovtoppm
5.43
KB
-rwxr-xr-x
pcregrep
31.66
KB
-rwxr-xr-x
pcretest
48.23
KB
-rwxr-xr-x
pcxtoppm
15.05
KB
-rwxr-xr-x
pdbedit
2.04
MB
-rwxr-xr-x
pdf2dsc
696
B
-rwxr-xr-x
pdf2ps
901
B
-rwxr-xr-x
pdfcrop
8.29
KB
-rwxr-xr-x
pdfcslatex
650.74
KB
-rwxr-xr-x
pdfcsplain
650.74
KB
-rwxr-xr-x
pdfetex
650.74
KB
-rwxr-xr-x
pdffonts
22.33
KB
-rwxr-xr-x
pdfimages
48.73
KB
-rwxr-xr-x
pdfinfo
28.02
KB
-rwxr-xr-x
pdflatex
650.74
KB
-rwxr-xr-x
pdfopt
547
B
-rwxr-xr-x
pdftex
650.74
KB
-rwxr-xr-x
pdftohtml
91.53
KB
-rwxr-xr-x
pdftoppm
23.75
KB
-rwxr-xr-x
pdftops
23.7
KB
-rwxr-xr-x
pdftosrc
14.99
KB
-rwxr-xr-x
pdftotext
25.67
KB
-rwxr-xr-x
peekfd
12.7
KB
-rwxr-xr-x
perf
2.1
MB
-rwxr-xr-x
perl
12.97
KB
-rwxr-xr-x
perl5.10.1
12.97
KB
-rwxr-xr-x
perlbug
43.68
KB
-rwxr-xr-x
perldoc
224
B
-rwxr-xr-x
perlivp
12.01
KB
-rwxr-xr-x
perltex
14.46
KB
-rwxr-xr-x
perlthanks
43.68
KB
-rwxr-xr-x
perror
1.32
MB
-rwxr-xr-x
pf2afm
495
B
-rwxr-xr-x
pfb2pfa
12.09
KB
-rwxr-xr-x
pfbtopfa
511
B
-rwxr-xr-x
pfbtops
10.05
KB
-rwxr-xr-x
pfmtopam
12.52
KB
-rwxr-xr-x
pg_dump
273.87
KB
-rwxr-xr-x
pg_dumpall
79.73
KB
-rwxr-xr-x
pg_restore
125.13
KB
-rwxr-xr-x
pgawk
374.73
KB
-rwxr-xr-x
pgmabel
14.17
KB
-rwxr-xr-x
pgmbentley
8.88
KB
-rwxr-xr-x
pgmcrater
14.16
KB
-rwxr-xr-x
pgmdeshadow
10.02
KB
-rwxr-xr-x
pgmedge
10.46
KB
-rwxr-xr-x
pgmenhance
10.03
KB
-rwxr-xr-x
pgmhist
10.02
KB
-rwxr-xr-x
pgmkernel
9.95
KB
-rwxr-xr-x
pgmmake
10.03
KB
-rwxr-xr-x
pgmmedian
13.79
KB
-rwxr-xr-x
pgmminkowski
10.55
KB
-rwxr-xr-x
pgmmorphconv
11.44
KB
-rwxr-xr-x
pgmnoise
9.73
KB
-rwxr-xr-x
pgmnorm
14.18
KB
-rwxr-xr-x
pgmoil
10.32
KB
-rwxr-xr-x
pgmramp
10.58
KB
-rwxr-xr-x
pgmslice
10.39
KB
-rwxr-xr-x
pgmtexture
24.82
KB
-rwxr-xr-x
pgmtofs
10.15
KB
-rwxr-xr-x
pgmtolispm
10.11
KB
-rwxr-xr-x
pgmtopbm
37
B
-rwxr-xr-x
pgmtopgm
8.91
KB
-rwxr-xr-x
pgmtoppm
11.15
KB
-rwxr-xr-x
pgrep
20.08
KB
-rwxr-xr-x
phar
14.48
KB
-rwxr-xr-x
phar.phar
14.48
KB
-rwxr-xr-x
php
3.88
MB
-rwxr-xr-x
php-cgi
3.86
MB
-rwxr-xr-x
phpize
4.64
KB
-rwxr-xr-x
physe
650.74
KB
-rwxr-xr-x
phyzzx
650.74
KB
-rwxr-xr-x
pi1toppm
9.7
KB
-rwxr-xr-x
pi3topbm
9.73
KB
-rwxr-xr-x
pic
216.12
KB
-rwxr-xr-x
pic2graph
2.5
KB
-rwxr-xr-x
piconv
7.17
KB
-rwxr-xr-x
pidstat
70.03
KB
-rwxr-xr-x
pinentry
2.54
KB
-rwxr-xr-x
pinentry-curses
52.58
KB
-rwxr-xr-x
pinfo
101.66
KB
-rwxr-xr-x
pinky
32.73
KB
-rwxr-xr-x
pjtoppm
12.7
KB
-rwxr-xr-x
pk12util
92.2
KB
-rwxr-xr-x
pk2bm
15.48
KB
-rwxr-xr-x
pkaction
14.02
KB
-rwxr-xr-x
pkcheck
14.02
KB
-rwxr-xr-x
pkexec
22.02
KB
-rwsr-xr-x
pkg-config
108.06
KB
-rwxr-xr-x
pkill
20.08
KB
-rwxr-xr-x
pktogf
25.36
KB
-rwxr-xr-x
pktopbm
16.7
KB
-rwxr-xr-x
pktype
18.84
KB
-rwxr-xr-x
pl2pm
4.42
KB
-rwxr-xr-x
pltotf
61.48
KB
-rwxr-xr-x
plymouth
35.95
KB
-rwxr-xr-x
pm-is-supported
983
B
-rwxr-xr-x
pm-utils-bugreport-info.sh
816
B
-rwxr-xr-x
pmap
15.91
KB
-rwxr-xr-x
png2theora
29.38
KB
-rwxr-xr-x
pngtopam
23.31
KB
-rwxr-xr-x
pngtopnm
22.4
KB
-rwxr-xr-x
pnmalias
13.29
KB
-rwxr-xr-x
pnmarith
16.05
KB
-rwxr-xr-x
pnmcat
16.55
KB
-rwxr-xr-x
pnmcolormap
16.7
KB
-rwxr-xr-x
pnmcomp
17.52
KB
-rwxr-xr-x
pnmconvol
34.2
KB
-rwxr-xr-x
pnmcrop
18.7
KB
-rwxr-xr-x
pnmcut
16.66
KB
-rwxr-xr-x
pnmdepth
10.6
KB
-rwxr-xr-x
pnmenlarge
11.59
KB
-rwxr-xr-x
pnmfile
11.27
KB
-rwxr-xr-x
pnmflip
2.43
KB
-rwxr-xr-x
pnmgamma
17.46
KB
-rwxr-xr-x
pnmhisteq
12.72
KB
-rwxr-xr-x
pnmhistmap
14.3
KB
-rwxr-xr-x
pnmindex
14.94
KB
-rwxr-xr-x
pnminterp
12.76
KB
-rwxr-xr-x
pnminvert
10.1
KB
-rwxr-xr-x
pnmmargin
2.32
KB
-rwxr-xr-x
pnmmontage
15.05
KB
-rwxr-xr-x
pnmnlfilt
22.36
KB
-rwxr-xr-x
pnmnoraw
31
B
-rwxr-xr-x
pnmnorm
14.18
KB
-rwxr-xr-x
pnmpad
17.08
KB
-rwxr-xr-x
pnmpaste
13.45
KB
-rwxr-xr-x
pnmpsnr
11.73
KB
-rwxr-xr-x
pnmquant
7.67
KB
-rwxr-xr-x
pnmremap
19.03
KB
-rwxr-xr-x
pnmrotate
16.13
KB
-rwxr-xr-x
pnmscale
27.3
KB
-rwxr-xr-x
pnmscalefixed
16.26
KB
-rwxr-xr-x
pnmshear
11.89
KB
-rwxr-xr-x
pnmsmooth
11.3
KB
-rwxr-xr-x
pnmsplit
10.94
KB
-rwxr-xr-x
pnmstitch
27.35
KB
-rwxr-xr-x
pnmtile
9.73
KB
-rwxr-xr-x
pnmtoddif
16.73
KB
-rwxr-xr-x
pnmtofiasco
157.32
KB
-rwxr-xr-x
pnmtofits
11.49
KB
-rwxr-xr-x
pnmtojbig
60.86
KB
-rwxr-xr-x
pnmtojpeg
21.91
KB
-rwxr-xr-x
pnmtopalm
23.91
KB
-rwxr-xr-x
pnmtopclxl
17.68
KB
-rwxr-xr-x
pnmtoplainpnm
31
B
-rwxr-xr-x
pnmtopng
40.81
KB
-rwxr-xr-x
pnmtopnm
10.14
KB
-rwxr-xr-x
pnmtops
27.6
KB
-rwxr-xr-x
pnmtorast
16.2
KB
-rwxr-xr-x
pnmtorle
34.88
KB
-rwxr-xr-x
pnmtosgi
13.11
KB
-rwxr-xr-x
pnmtosir
9.96
KB
-rwxr-xr-x
pnmtotiff
32.83
KB
-rwxr-xr-x
pnmtotiffcmyk
29.99
KB
-rwxr-xr-x
pnmtoxwd
12.95
KB
-rwxr-xr-x
pod2html
2.28
KB
-rwxr-xr-x
pod2latex
10.01
KB
-rwxr-xr-x
pod2man
20.68
KB
-rwxr-xr-x
pod2text
8.87
KB
-rwxr-xr-x
pod2usage
3.26
KB
-rwxr-xr-x
podchecker
3.61
KB
-rwxr-xr-x
podselect
2.47
KB
-rwxr-xr-x
pooltype
15.72
KB
-rwxr-xr-x
post-grohtml
136.2
KB
-rwxr-xr-x
poweroff
8.67
KB
-rwxr-xr-x
ppdc
14.51
KB
-rwxr-xr-x
ppdhtml
10.36
KB
-rwxr-xr-x
ppdi
10.3
KB
-rwxr-xr-x
ppdmerge
14.41
KB
-rwxr-xr-x
ppdpo
10.36
KB
-rwxr-xr-x
ppl-config
104.6
KB
-rwxr-xr-x
ppm2tiff
14.86
KB
-rwxr-xr-x
ppm3d
14.56
KB
-rwxr-xr-x
ppmbrighten
12.41
KB
-rwxr-xr-x
ppmchange
10.33
KB
-rwxr-xr-x
ppmcie
25.87
KB
-rwxr-xr-x
ppmcolormask
11.52
KB
-rwxr-xr-x
ppmcolors
8.84
KB
-rwxr-xr-x
ppmdcfont
10.39
KB
-rwxr-xr-x
ppmddumpfont
8.63
KB
-rwxr-xr-x
ppmdim
9.73
KB
-rwxr-xr-x
ppmdist
10.2
KB
-rwxr-xr-x
ppmdither
11.88
KB
-rwxr-xr-x
ppmdmkfont
13.53
KB
-rwxr-xr-x
ppmdraw
18.56
KB
-rwxr-xr-x
ppmfade
10.97
KB
-rwxr-xr-x
ppmflash
9.73
KB
-rwxr-xr-x
ppmforge
22.62
KB
-rwxr-xr-x
ppmglobe
10.16
KB
-rwxr-xr-x
ppmhist
12.13
KB
-rwxr-xr-x
ppmlabel
12.95
KB
-rwxr-xr-x
ppmmake
9.72
KB
-rwxr-xr-x
ppmmix
10.05
KB
-rwxr-xr-x
ppmnorm
14.18
KB
-rwxr-xr-x
ppmntsc
12.65
KB
-rwxr-xr-x
ppmpat
23.12
KB
-rwxr-xr-x
ppmquant
926
B
-rwxr-xr-x
ppmquantall
2.33
KB
-rwxr-xr-x
ppmrainbow
1.79
KB
-rwxr-xr-x
ppmrelief
9.72
KB
-rwxr-xr-x
ppmrough
13.77
KB
-rwxr-xr-x
ppmshadow
8.64
KB
-rwxr-xr-x
ppmshift
10.17
KB
-rwxr-xr-x
ppmspread
10.09
KB
-rwxr-xr-x
ppmtoacad
14.69
KB
-rwxr-xr-x
ppmtoarbtxt
14.73
KB
-rwxr-xr-x
ppmtobmp
18.45
KB
-rwxr-xr-x
ppmtoeyuv
14.1
KB
-rwxr-xr-x
ppmtogif
13.23
KB
-rwxr-xr-x
ppmtoicr
12.45
KB
-rwxr-xr-x
ppmtoilbm
40.15
KB
-rwxr-xr-x
ppmtojpeg
21.91
KB
-rwxr-xr-x
ppmtoleaf
13.05
KB
-rwxr-xr-x
ppmtolj
11.71
KB
-rwxr-xr-x
ppmtomap
82
B
-rwxr-xr-x
ppmtomitsu
19.99
KB
-rwxr-xr-x
ppmtompeg
508.71
KB
-rwxr-xr-x
ppmtoneo
13.06
KB
-rwxr-xr-x
ppmtopcx
17.05
KB
-rwxr-xr-x
ppmtopgm
12.62
KB
-rwxr-xr-x
ppmtopi1
10.05
KB
-rwxr-xr-x
ppmtopict
11.93
KB
-rwxr-xr-x
ppmtopj
12.01
KB
-rwxr-xr-x
ppmtopjxl
15.91
KB
-rwxr-xr-x
ppmtoppm
8.97
KB
-rwxr-xr-x
ppmtopuzz
10.09
KB
-rwxr-xr-x
ppmtorgb3
10.11
KB
-rwxr-xr-x
ppmtosixel
10.87
KB
-rwxr-xr-x
ppmtoterm
9.7
KB
-rwxr-xr-x
ppmtouil
13.08
KB
-rwxr-xr-x
ppmtowinicon
17.41
KB
-rwxr-xr-x
ppmtoxpm
14.53
KB
-rwxr-xr-x
ppmtoyuv
9.71
KB
-rwxr-xr-x
ppmtoyuvsplit
10.9
KB
-rwxr-xr-x
ppmtv
9.73
KB
-rwxr-xr-x
ppmwheel
10.43
KB
-rwxr-xr-x
pr
62.8
KB
-rwxr-xr-x
pre-grohtml
76.61
KB
-rwxr-xr-x
printafm
386
B
-rwxr-xr-x
printenv
25.66
KB
-rwxr-xr-x
printf
48.91
KB
-rwxr-xr-x
profiles
1.59
MB
-rwxr-xr-x
protoize
70.42
KB
-rwxr-xr-x
prove
9.15
KB
-rwxr-xr-x
proxy
10.72
KB
-rwxr-xr-x
ps2ascii
786
B
-rwxr-xr-x
ps2epsi
2.71
KB
-rwxr-xr-x
ps2frag
229
B
-rwxr-xr-x
ps2pdf
315
B
-rwxr-xr-x
ps2pdf12
260
B
-rwxr-xr-x
ps2pdf13
260
B
-rwxr-xr-x
ps2pdf14
260
B
-rwxr-xr-x
ps2pdfwr
1.06
KB
-rwxr-xr-x
ps2pk
135.38
KB
-rwxr-xr-x
ps2ps
634
B
-rwxr-xr-x
ps2ps2
704
B
-rwxr-xr-x
ps4pdf
4.19
KB
-rwxr-xr-x
psbook
18.52
KB
-rwxr-xr-x
psed
52.08
KB
-rwxr-xr-x
psfaddtable
20.52
KB
-rwxr-xr-x
psfgettable
20.52
KB
-rwxr-xr-x
psfstriptable
20.52
KB
-rwxr-xr-x
psfxtable
20.52
KB
-rwxr-xr-x
psidtopgm
10.18
KB
-rwxr-xr-x
pslatex
1.41
KB
-rwxr-xr-x
psnup
26.8
KB
-rwxr-xr-x
psql
334.97
KB
-rwxr-xr-x
psresize
24.37
KB
-rwxr-xr-x
psselect
19.83
KB
-rwxr-xr-x
pstack
1.1
KB
-rwxr-xr-x
pstopnm
19.6
KB
-rwxr-xr-x
pstops
25.27
KB
-rwxr-xr-x
pstree
24.66
KB
-rwxr-xr-x
pstree.x11
24.66
KB
-rwxr-xr-x
pstruct
35.74
KB
-rwxr-xr-x
ptar
2.72
KB
-rwxr-xr-x
ptardiff
2.46
KB
-rwxr-xr-x
ptx
126.56
KB
-rwxr-xr-x
pv.sh
1.39
KB
-rwxr-xr-x
pwdx
9.91
KB
-rwxr-xr-x
pydoc
78
B
-rwxr-xr-x
pygmentize
141
B
-rwxr-xr-x
python
8.82
KB
-rwxr-xr-x
python2
8.82
KB
-rwxr-xr-x
python2.6
8.82
KB
-rwxr-xr-x
qdbus
63.64
KB
-rwxr-xr-x
qdbusviewer
182.99
KB
-rwxr-xr-x
qrttoppm
9.73
KB
-rwxr-xr-x
qtconfig-qt4
342.75
KB
-rwxr-xr-x
quota
80.81
KB
-rwxr-xr-x
quotasync
64.69
KB
-rwxr-xr-x
ranlib
59.55
KB
-rwxr-xr-x
ras2tiff
14.33
KB
-rwxr-xr-x
rasttopnm
15.35
KB
-rwxr-xr-x
raw2tiff
19.59
KB
-rwxr-xr-x
rawtopgm
12.34
KB
-rwxr-xr-x
rawtoppm
11.77
KB
-rwxr-xr-x
rcs
90.95
KB
-rwxr-xr-x
rcs-checkin
3.88
KB
-rwxr-xr-x
rcs2log
19.12
KB
-rwxr-xr-x
rcsclean
85.66
KB
-rwxr-xr-x
rcsdiff
65.53
KB
-rwxr-xr-x
rcsfreeze
3.15
KB
-rwxr-xr-x
rcsmerge
65.53
KB
-rwxr-xr-x
rdate
13.24
KB
-rwxr-xr-x
rdjpgcom
12.19
KB
-rwxr-xr-x
readelf
296.33
KB
-rwxr-xr-x
readlink
39.12
KB
-rwxr-xr-x
reboot
8.67
KB
-rwxr-xr-x
rebuild-gcj-db
441
B
-rwxr-xr-x
rebuild-jar-repository
1.76
KB
-rwxr-xr-x
recode-sr-latin
15.16
KB
-rwxr-xr-x
recountdiff
3.36
KB
-rwxr-xr-x
rediff
36.25
KB
-rwxr-xr-x
refer
125.91
KB
-rwxr-xr-x
reindexdb
59.5
KB
-rwxr-xr-x
rename
9.66
KB
-rwxr-xr-x
renice
10.38
KB
-rwxr-xr-x
replace
1.32
MB
-rwxr-xr-x
repo-graph
4.1
KB
-rwxr-xr-x
repo-rss
9.99
KB
-rwxr-xr-x
repoclosure
11.35
KB
-rwxr-xr-x
repodiff
11.63
KB
-rwxr-xr-x
repomanage
6.88
KB
-rwxr-xr-x
repoquery
45.03
KB
-rwxr-xr-x
report
19.87
KB
-rwxr-xr-x
report-cli
39.41
KB
-rwxr-xr-x
reporter-kerneloops
28.23
KB
-rwxr-xr-x
reporter-mailx
23.69
KB
-rwxr-xr-x
reporter-print
22.07
KB
-rwxr-xr-x
reporter-rhtsupport
55.41
KB
-rwxr-xr-x
reporter-upload
29.73
KB
-rwxr-xr-x
reporter-ureport
34.34
KB
-rwxr-xr-x
reposync
14.74
KB
-rwxr-xr-x
repotrack
8.54
KB
-rwxr-xr-x
reset
21.91
KB
-rwxr-xr-x
resize
17.88
KB
-rwxr-xr-x
resizecons
19.06
KB
-rwxr-xr-x
resolve_stack_dump
1.32
MB
-rwxr-xr-x
resolveip
1.32
MB
-rwxr-xr-x
rev
9.93
KB
-rwxr-xr-x
rgb2ycbcr
15.7
KB
-rwxr-xr-x
rgb3toppm
9.72
KB
-rwxr-xr-x
rhgb-client
35.95
KB
-rwxr-xr-x
rlatopam
13.01
KB
-rwxr-xr-x
rletopnm
31.41
KB
-rwxr-xr-x
rlog
70.2
KB
-rwxr-xr-x
rmail
262
B
-rwxr-xr-x
rmail.postfix
262
B
-rwxr-xr-x
rmid
9.81
KB
-rwxr-xr-x
rmiregistry
9.82
KB
-rwxr-xr-x
rnano
174.7
KB
-rwxr-xr-x
rngtest
16.45
KB
-rwxr-xr-x
rpcclient
7.41
MB
-rwxr-xr-x
rpcgen
93.46
KB
-rwxr-xr-x
rpm2cpio
15.73
KB
-rwxr-xr-x
rpmbuild
34.41
KB
-rwxr-xr-x
rpmdb
29.98
KB
-rwxr-xr-x
rpmquery
29.98
KB
-rwxr-xr-x
rpmsign
29.98
KB
-rwxr-xr-x
rpmverify
29.98
KB
-rwxr-xr-x
rsvg
2.44
KB
-rwxr-xr-x
rsvg-convert
27.82
KB
-rwxr-xr-x
rsvg-view
42.67
KB
-rwxr-xr-x
rsync
405.24
KB
-rwxr-xr-x
rubibtex
2.52
KB
-rwxr-xr-x
rumakeindex
1.75
KB
-rwxr-xr-x
run-parts
1.38
KB
-rwxr-xr-x
runcon
31.16
KB
-rwxr-xr-x
rvim
2.22
MB
-rwxr-xr-x
s2p
52.08
KB
-rwxr-xr-x
sadf
111.99
KB
-rwxr-xr-x
sar
82.96
KB
-rwxr-xr-x
satyr
22.85
KB
-rwxr-xr-x
sbigtopgm
11.43
KB
-rwxr-xr-x
scl
21.48
KB
-rwxr-xr-x
scl_enabled
258
B
-rwxr-xr-x
scl_source
1.83
KB
-rwxr-xr-x
scp
66.06
KB
-rwxr-xr-x
script
16.24
KB
-rwxr-xr-x
scriptreplay
10.91
KB
-rwxr-xr-x
scs2ascii
13.52
KB
-rwxr-xr-x
scs2pdf
26.78
KB
-rwxr-xr-x
scs2ps
15.09
KB
-rwxr-xr-x
sctp_darn
42.79
KB
-rwxr-xr-x
sctp_status
22.45
KB
-rwxr-xr-x
sctp_test
31.59
KB
-rwxr-xr-x
sdiff
28.32
KB
-rwxr-xr-x
secon
18.39
KB
-rwxr-xr-x
sedismod
169.45
KB
-rwxr-xr-x
sedispol
142.02
KB
-rwxr-xr-x
seekwatcher
32.28
KB
-rwxr-xr-x
selfsign-getcert
130.03
KB
-rwxr-xr-x
semodule_deps
194.95
KB
-rwxr-xr-x
semodule_expand
10.34
KB
-rwxr-xr-x
semodule_link
10.27
KB
-rwxr-xr-x
semodule_package
14.59
KB
-rwxr-xr-x
seq
42.91
KB
-rwxr-xr-x
servertool
9.84
KB
-rwxr-xr-x
setarch
13.59
KB
-rwxr-xr-x
setcifsacl
18.29
KB
-rwxr-xr-x
setfacl
36.15
KB
-rwxr-xr-x
setfattr
18.02
KB
-rwxr-xr-x
setkeycodes
10.23
KB
-rwxr-xr-x
setleds
11.98
KB
-rwxr-xr-x
setmetamode
9.74
KB
-rwxr-xr-x
setsid
8.59
KB
-rwxr-xr-x
setterm
25.1
KB
-rwxr-xr-x
setup
8.67
KB
-rwxr-xr-x
setup-nsssysinit.sh
1.5
KB
-rwxr-xr-x
sftp
102.07
KB
-rwxr-xr-x
sg
39.3
KB
-rwsr-xr-x
sgitopnm
14.65
KB
-rwxr-xr-x
sgmlwhich
265
B
-rwxr-xr-x
sha1sum
38.98
KB
-rwxr-xr-x
sha224sum
44.7
KB
-rwxr-xr-x
sha256sum
44.7
KB
-rwxr-xr-x
sha384sum
49.91
KB
-rwxr-xr-x
sha512sum
49.91
KB
-rwxr-xr-x
sharesec
1.57
MB
-rwxr-xr-x
shasum
7.48
KB
-rwxr-xr-x
show-changed-rco
10.11
KB
-rwxr-xr-x
show-installed
16.18
KB
-rwxr-xr-x
showchar
2.51
KB
-rwxr-xr-x
showconsolefont
17.26
KB
-rwxr-xr-x
showkey
13.78
KB
-rwxr-xr-x
shred
50.23
KB
-rwxr-xr-x
shuf
38.03
KB
-rwxr-xr-x
signtool
168.09
KB
-rwxr-xr-x
signver
91.64
KB
-rwxr-xr-x
sinjdoc
132
B
-rw-r-xr-x
sirtopnm
10.22
KB
-rwxr-xr-x
size
32.95
KB
-rwxr-xr-x
skill
18.31
KB
-rwxr-xr-x
slabtop
17.16
KB
-rwxr-xr-x
sldtoppm
17.45
KB
-rwxr-xr-x
slogin
440.16
KB
-rwxr-xr-x
smbcacls
6.1
MB
-rwxr-xr-x
smbclient
6.14
MB
-rwxr-xr-x
smbcontrol
1.6
MB
-rwxr-xr-x
smbcquotas
6.09
MB
-rwxr-xr-x
smbget
6.33
MB
-rwxr-xr-x
smbpasswd
6.12
MB
-rwxr-xr-x
smbprint
2.24
KB
-rwxr-xr-x
smbspool
3.31
MB
-rwxr-xr-x
smbta-util
1.56
MB
-rwxr-xr-x
smbtar
4.78
KB
-rwxr-xr-x
smbtree
6.03
MB
-rwxr-xr-x
sndfile-cmp
10.42
KB
-rwxr-xr-x
sndfile-convert
18.83
KB
-rwxr-xr-x
sndfile-info
14.2
KB
-rwxr-xr-x
sndfile-metadata-get
12.62
KB
-rwxr-xr-x
sndfile-metadata-set
18.17
KB
-rwxr-xr-x
sndfile-play
17.83
KB
-rwxr-xr-x
sndfile-regtest
19.54
KB
-rwxr-xr-x
snice
18.31
KB
-rwxr-xr-x
soelim
25.58
KB
-rwxr-xr-x
spctoppm
10.02
KB
-rwxr-xr-x
speaker-test
34.23
KB
-rwxr-xr-x
splain
17.04
KB
-rwxr-xr-x
split
54.06
KB
-rwxr-xr-x
splitdiff
2.96
KB
-rwxr-xr-x
spottopgm
10.99
KB
-rwxr-xr-x
sprof
26.2
KB
-rwxr-xr-x
sputoppm
9.19
KB
-rwxr-xr-x
sqlite3
58
KB
-rwxr-xr-x
ssh
440.16
KB
-rwxr-xr-x
ssh-add
155.2
KB
-rwxr-xr-x
ssh-agent
138.07
KB
-rwxr-sr-x
ssh-copy-id
1.39
KB
-rwxr-xr-x
ssh-keygen
195.2
KB
-rwxr-xr-x
ssh-keyscan
247.8
KB
-rwxr-xr-x
ssltap
115.44
KB
-rwxr-xr-x
sss_ssh_authorizedkeys
33.24
KB
-rwxr-xr-x
sss_ssh_knownhostsproxy
35.95
KB
-rwxr-xr-x
stap
2.92
MB
-rwxr-xr-x
stap-merge
10.02
KB
-rwxr-xr-x
stap-prep
3.79
KB
-rwxr-xr-x
stap-report
4.41
KB
-rwxr-xr-x
staprun
178.78
KB
---s--x---
stapsh
26.09
KB
-rwxr-xr-x
stat
49.79
KB
-rwxr-xr-x
stdbuf
61.98
KB
-rwxr-xr-x
strace
425.97
KB
-rwxr-xr-x
strace-log-merge
944
B
-rwxr-xr-x
strings
31.7
KB
-rwxr-xr-x
strip
213.94
KB
-rwxr-xr-x
sudo
120.93
KB
---s--x--x
sudoedit
120.93
KB
---s--x--x
sudoreplay
62.34
KB
---x--x--x
sum
33.82
KB
-rwxr-xr-x
svn
195.63
KB
-rwxr-xr-x
svnadmin
61.46
KB
-rwxr-xr-x
svndumpfilter
33.09
KB
-rwxr-xr-x
svnlook
61.07
KB
-rwxr-xr-x
svnsync
43.66
KB
-rwxr-xr-x
svnversion
11.28
KB
-rwxr-xr-x
swig
1.09
MB
-rwxr-xr-x
system-config-firewall-tui
1.13
KB
-rwxr-xr-x
system-config-network
8.67
KB
-rwxr-xr-x
system-config-network-cmd
8.67
KB
-rwxr-xr-x
tabs
14.14
KB
-rwxr-xr-x
tac
94
KB
-rwxr-xr-x
tail
60.05
KB
-rwxr-xr-x
tailf
11.66
KB
-rwxr-xr-x
tangle
46.31
KB
-rwxr-xr-x
tbl
103.23
KB
-rwxr-xr-x
tcpdf_addfont
7.28
KB
-rwxr-xr-x
tee
27.1
KB
-rwxr-xr-x
test
33.02
KB
-rwxr-xr-x
testparm
1.57
MB
-rwxr-xr-x
tex
281.8
KB
-rwxr-xr-x
texconfig
43.33
KB
-rwxr-xr-x
texconfig-dialog
12.75
KB
-rwxr-xr-x
texconfig-sys
838
B
-rwxr-xr-x
texhash
5.66
KB
-rwxr-xr-x
texlinks
8.66
KB
-rwxr-xr-x
texsis
650.74
KB
-rwxr-xr-x
tfmtodit
30.16
KB
-rwxr-xr-x
tftopl
46.8
KB
-rwxr-xr-x
tgatoppm
13.73
KB
-rwxr-xr-x
theora_dump_video
17.2
KB
-rwxr-xr-x
theora_encode
45.05
KB
-rwxr-xr-x
theora_player
266
B
-rwxr-xr-x
theora_player.bin
26.41
KB
-rwxr-xr-x
thinkjettopbm
22.05
KB
-rwxr-xr-x
thumbnail
19.32
KB
-rwxr-xr-x
thumbpdf
40.59
KB
-rwxr-xr-x
tic
52.52
KB
-rwxr-xr-x
tie
14.8
KB
-rwxr-xr-x
tiff2bw
16.05
KB
-rwxr-xr-x
tiff2pdf
67.74
KB
-rwxr-xr-x
tiff2ps
45.01
KB
-rwxr-xr-x
tiff2rgba
15.59
KB
-rwxr-xr-x
tiffcmp
18.64
KB
-rwxr-xr-x
tiffcp
35.16
KB
-rwxr-xr-x
tiffcrop
101.85
KB
-rwxr-xr-x
tiffdither
14.37
KB
-rwxr-xr-x
tiffdump
20.45
KB
-rwxr-xr-x
tiffinfo
17.95
KB
-rwxr-xr-x
tiffmedian
18.83
KB
-rwxr-xr-x
tiffset
12.77
KB
-rwxr-xr-x
tiffsplit
14.85
KB
-rwxr-xr-x
tifftopnm
36.16
KB
-rwxr-xr-x
time
17.51
KB
-rwxr-xr-x
timeout
49
KB
-rwxr-xr-x
tload
11.53
KB
-rwxr-xr-x
tmpwatch
21.15
KB
-rwxr-xr-x
tn5250
36.44
KB
-rwxr-xr-x
tnameserv
10.04
KB
-rwxr-xr-x
toe
15.13
KB
-rwxr-xr-x
tomcat6-digest
1.06
KB
-rwxr-xr-x
tomcat6-tool-wrapper
1.02
KB
-rwxr-xr-x
top
66.77
KB
-rwxr-xr-x
tput
14.91
KB
-rwxr-xr-x
tr
40.48
KB
-rwxr-xr-x
trace-cmd
269.22
KB
-rwxr-xr-x
troff
355.09
KB
-rwxr-xr-x
truncate
49.96
KB
-rwxr-xr-x
tset
21.91
KB
-rwxr-xr-x
tsort
35.02
KB
-rwxr-xr-x
ttmkfdir
107.1
KB
-rwxr-xr-x
tty
24.87
KB
-rwxr-xr-x
tzselect
6.96
KB
-rwxr-xr-x
ucs2any
21.34
KB
-rwxr-xr-x
ul
17.12
KB
-rwxr-xr-x
unexpand
31.01
KB
-rwxr-xr-x
uniq
38.09
KB
-rwxr-xr-x
unix-lpr.sh
4.11
KB
-rwxr-xr-x
unlzma
50.63
KB
-rwxr-xr-x
unpack200
89.75
KB
-rwxr-xr-x
unprotoize
60.15
KB
-rwxr-xr-x
unshare
12.9
KB
-rwxr-xr-x
unwrapdiff
5.8
KB
-rwxr-xr-x
unxz
50.63
KB
-rwxr-xr-x
unzip
165.79
KB
-rwxr-xr-x
unzipsfx
79.17
KB
-rwxr-xr-x
update-ca-trust
8.54
KB
-rwxr-xr-x
update-desktop-database
18.18
KB
-rwxr-xr-x
update-gdk-pixbuf-loaders
484
B
-rwxr-xr-x
update-gio-modules
319
B
-rw-r--r--
update-gtk-immodules
313
B
-rwxr-xr-x
update-mime-database
49.73
KB
-rwxr-xr-x
updatedb
39.77
KB
-rwxr-xr-x
updmap
46.06
KB
-rwxr-xr-x
updmap-sys
829
B
-rwxr-xr-x
uptime
8.16
KB
-rwxr-xr-x
urlgrabber
12.15
KB
-rwxr-xr-x
usb-devices
4.1
KB
-rwxr-xr-x
usbhid-dump
23.39
KB
-rwxr-xr-x
users
27.06
KB
-rwxr-xr-x
utmpdump
13.86
KB
-rwxr-xr-x
uuidgen
9.14
KB
-rwxr-xr-x
uxterm
3.59
KB
-rwxr-xr-x
vacuumdb
37.89
KB
-rwxr-xr-x
valgrind
45.66
KB
-rwxr-xr-x
valgrind-listener
27.78
KB
-rwxr-xr-x
vdir
114.3
KB
-rwxr-xr-x
verify_blkparse
9.63
KB
-rwxr-xr-x
verifytree
9.19
KB
-rwxr-xr-x
vftovp
51.98
KB
-rwxr-xr-x
vgdb
95.42
KB
-rwxr-xr-x
vim
2.22
MB
-rwxr-xr-x
vimdiff
2.22
MB
-rwxr-xr-x
vimtutor
2.04
KB
-rwxr-xr-x
vmstat
24.3
KB
-rwxr-xr-x
vnstat
94.77
KB
-rwxr-xr-x
vnstati
83.65
KB
-rwxr-xr-x
volname
8.7
KB
-rwxr-xr-x
vptovf
60.27
KB
-rwxr-xr-x
w
16.22
KB
-rwxr-xr-x
wall
14.87
KB
-r-xr-sr-x
watch
16.46
KB
-rwxr-xr-x
watchgnupg
13.84
KB
-rwxr-xr-x
wbinfo
1.64
MB
-rwxr-xr-x
wbmptopbm
9.71
KB
-rwxr-xr-x
wc
35.55
KB
-rwxr-xr-x
wcmgr
25.78
KB
-rwxr-xr-x
weave
67.33
KB
-rwxr-xr-x
webalizer
172.85
KB
-rwxr-xr-x
webazolver
172.85
KB
-rwxr-xr-x
wftopfa
284
B
-rwxr-xr-x
wget
358.25
KB
-rwxr-xr-x
whatis
1.74
KB
-rwxr-xr-x
whereis
14.27
KB
-rwxr-xr-x
which
24.93
KB
-rwxr-xr-x
whiptail
29.59
KB
-rwxr-xr-x
who
47.8
KB
-rwxr-xr-x
whoami
25.66
KB
-rwxr-xr-x
winicontoppm
16.57
KB
-rwxr-xr-x
withsctp
227
B
-rwxr-xr-x
write
11.73
KB
-rwxr-sr-x
wrjpgcom
12.89
KB
-rwxr-xr-x
x3270
1.26
MB
-rwxr-xr-x
x3270if
19.76
KB
-rwxr-xr-x
x86_64
13.59
KB
-rwxr-xr-x
x86_64-redhat-linux-c++
264.98
KB
-rwxr-xr-x
x86_64-redhat-linux-g++
264.98
KB
-rwxr-xr-x
x86_64-redhat-linux-gcc
265.34
KB
-rwxr-xr-x
xargs
45.55
KB
-rwxr-xr-x
xbmtopbm
13.3
KB
-rwxr-xr-x
xdg-desktop-icon
14.7
KB
-rwxr-xr-x
xdg-desktop-menu
37.06
KB
-rwxr-xr-x
xdg-email
18.61
KB
-rwxr-xr-x
xdg-icon-resource
23.89
KB
-rwxr-xr-x
xdg-mime
28.88
KB
-rwxr-xr-x
xdg-open
10.94
KB
-rwxr-xr-x
xdg-screensaver
20.57
KB
-rwxr-xr-x
xdg-settings
24.47
KB
-rwxr-xr-x
xgettext
219.69
KB
-rwxr-xr-x
ximtoppm
14.28
KB
-rwxr-xr-x
xml-resolver
514
B
-rwxr-xr-x
xml-xparse
508
B
-rwxr-xr-x
xml-xread
505
B
-rwxr-xr-x
xml_grep
12.88
KB
-rwxr-xr-x
xml_merge
3.98
KB
-rwxr-xr-x
xml_pp
7.57
KB
-rwxr-xr-x
xml_spellcheck
6.44
KB
-rwxr-xr-x
xml_split
21.13
KB
-rwxr-xr-x
xmlcatalog
19.09
KB
-rwxr-xr-x
xmllint
63.34
KB
-rwxr-xr-x
xmlwf
25.47
KB
-rwxr-xr-x
xpmtoppm
18.11
KB
-rwxr-xr-x
xsltproc
28.88
KB
-rwxr-xr-x
xsubpp
4
KB
-rwxr-xr-x
xt5250
2.71
KB
-rwxr-xr-x
xterm
414.13
KB
-rwxr-xr-x
xvminitoppm
10.64
KB
-rwxr-xr-x
xwdtopnm
21.57
KB
-rwxr-xr-x
xxd
18.24
KB
-rwxr-xr-x
xz
50.63
KB
-rwxr-xr-x
xzcat
50.63
KB
-rwxr-xr-x
xzcmp
5.1
KB
-rwxr-xr-x
xzdec
15.07
KB
-rwxr-xr-x
xzdiff
5.1
KB
-rwxr-xr-x
xzegrep
5.36
KB
-rwxr-xr-x
xzfgrep
5.36
KB
-rwxr-xr-x
xzgrep
5.36
KB
-rwxr-xr-x
xzless
1.76
KB
-rwxr-xr-x
xzmore
2.12
KB
-rwxr-xr-x
yacc
76.46
KB
-rwxr-xr-x
ybmtopbm
9.74
KB
-rwxr-xr-x
yes
25.06
KB
-rwxr-xr-x
ypcat
15.79
KB
-rwxr-xr-x
ypchfn
25.41
KB
-rwxr-xr-x
ypchsh
25.41
KB
-rwxr-xr-x
ypmatch
13.66
KB
-rwxr-xr-x
yppasswd
25.41
KB
-rwxr-xr-x
ypwhich
17.14
KB
-rwxr-xr-x
yum
801
B
-rwxr-xr-x
yum-builddep
8.34
KB
-rwxr-xr-x
yum-config-manager
8.32
KB
-rwxr-xr-x
yum-debug-dump
7.42
KB
-rwxr-xr-x
yum-debug-restore
7.75
KB
-rwxr-xr-x
yum-groups-manager
10.77
KB
-rwxr-xr-x
yumdownloader
12
KB
-rwxr-xr-x
yuvsplittoppm
11.7
KB
-rwxr-xr-x
yuvtoppm
10.13
KB
-rwxr-xr-x
zcmp
67
B
-rwxr-xr-x
zdiff
4.34
KB
-rwxr-xr-x
zegrep
62
B
-rwxr-xr-x
zeisstopnm
10.47
KB
-rwxr-xr-x
zfgrep
62
B
-rwxr-xr-x
zforce
1.98
KB
-rwxr-xr-x
zgrep
4.86
KB
-rwxr-xr-x
zip
210.51
KB
-rwxr-xr-x
zipcloak
107.13
KB
-rwxr-xr-x
zipgrep
2.88
KB
-rwxr-xr-x
zipinfo
165.79
KB
-rwxr-xr-x
zipnote
99.47
KB
-rwxr-xr-x
zipsplit
102.81
KB
-rwxr-xr-x
zless
1.69
KB
-rwxr-xr-x
zmore
2.54
KB
-rwxr-xr-x
znew
5.12
KB
-rwxr-xr-x
zsoelim
25.58
KB
-rwxr-xr-x
zts-php
4.09
MB
-rwxr-xr-x
Delete
Unzip
Zip
${this.title}
Close
Code Editor : mysqlaccess
#!/usr/bin/perl # Copyright (c) 2000, 2007 MySQL AB, 2009 Sun Microsystems, Inc. # Use is subject to license terms. # # 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-1301, USA # **************************** package MySQLaccess; #use strict; use File::Temp qw(tempfile tmpnam); use Fcntl; BEGIN { # **************************** # static information... $VERSION = "2.06, 20 Dec 2000"; $0 =~ m%/([^/]+)$%o; $script = $1; $script = 'MySQLAccess' unless $script; $script_conf = "$script.conf"; $script_log = $ENV{'HOME'}."/$script.log"; # **************************** # information on MySQL $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 MySQL-server to connect to --old_server connect to old MySQL-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 overriden 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 # Normaly 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 "./$script_conf") { require "./$script_conf"; } elsif (-f "/etc/$script_conf") { require "/etc/$script_conf"; } elsif (-f "/etc/$script_conf") { require "/etc/$script_conf"; } # **************************** # 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 prefered 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' ) { $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("/etc/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 occured 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 occured when trying to connect to the database\n" ."with the grant-tables. (dbaccess denied)\n" ,'Unknown_tmp_table' => "Sorry,\n" ."An error occured 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 occured 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 occured 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 occured 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 by email to bugs\@mysql.com\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 by email to <a href=mailto:bugs\@mysql.com>bugs\@mysql.com</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); }
Close