Linux iad1-shared-b7-18 6.6.49-grsec-jammy+ #10 SMP Thu Sep 12 23:23:08 UTC 2024 x86_64
Apache
: 67.205.6.31 | : 216.73.216.47
Cant Read [ /etc/named.conf ]
8.2.29
fernandoquevedo
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
README
+ Create Folder
+ Create File
/
usr /
lib /
ruby /
vendor_ruby /
moneta /
adapters /
[ HOME SHELL ]
Name
Size
Permission
Action
memcached
[ DIR ]
drwxr-xr-x
mongo
[ DIR ]
drwxr-xr-x
activerecord.rb
4.47
KB
-rw-r--r--
cassandra.rb
3.37
KB
-rw-r--r--
client.rb
2.05
KB
-rw-r--r--
cookie.rb
967
B
-rw-r--r--
couch.rb
3.85
KB
-rw-r--r--
datamapper.rb
2.34
KB
-rw-r--r--
daybreak.rb
1.17
KB
-rw-r--r--
dbm.rb
615
B
-rw-r--r--
file.rb
3.18
KB
-rw-r--r--
fog.rb
1.54
KB
-rw-r--r--
gdbm.rb
606
B
-rw-r--r--
hbase.rb
3.06
KB
-rw-r--r--
leveldb.rb
929
B
-rw-r--r--
lmdb.rb
2.17
KB
-rw-r--r--
localmemcache.rb
766
B
-rw-r--r--
lruhash.rb
2.69
KB
-rw-r--r--
memcached.rb
385
B
-rw-r--r--
memory.rb
450
B
-rw-r--r--
mongo.rb
225
B
-rw-r--r--
null.rb
668
B
-rw-r--r--
pstore.rb
1.97
KB
-rw-r--r--
redis.rb
2.35
KB
-rw-r--r--
restclient.rb
1.31
KB
-rw-r--r--
riak.rb
1.69
KB
-rw-r--r--
sdbm.rb
606
B
-rw-r--r--
sequel.rb
3.74
KB
-rw-r--r--
sqlite.rb
2.68
KB
-rw-r--r--
tdb.rb
609
B
-rw-r--r--
tokyocabinet.rb
1.38
KB
-rw-r--r--
tokyotyrant.rb
3.24
KB
-rw-r--r--
yaml.rb
238
B
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : tokyotyrant.rb
begin # Native client require 'tokyo_tyrant' rescue LoadError # Ruby client require 'tokyotyrant' end module Moneta module Adapters # TokyoTyrant backend # @api public class TokyoTyrant include Defaults include HashAdapter # error code: no record found ENOREC = 7 supports :create, :increment attr_reader :backend # @param [Hash] options # @option options [String] :host ('127.0.0.1') Server host name # @option options [Integer] :port (1978) Server port # @option options [::TokyoTyrant::RDB] :backend Use existing backend instance def initialize(options = {}) options[:host] ||= '127.0.0.1' options[:port] ||= 1978 if options[:backend] @backend = options[:backend] elsif defined?(::TokyoTyrant::RDB) # Use ruby client @backend = ::TokyoTyrant::RDB.new @backend.open(options[:host], options[:port]) or error else # Use native client @backend = ::TokyoTyrant::DB.new(options[:host], options[:port]) end @native = @backend.class.name != 'TokyoTyrant::RDB' probe = '__tokyotyrant_endianness_probe' @backend.delete(probe) @backend.addint(probe, 1) @pack = @backend.delete(probe) == [1].pack('l>') ? 'l>' : 'l<' end # (see Proxy#load) def load(key, options = {}) value = @backend[key] # raise if there is an error and the error is not "no record" error if value.nil? && @backend.ecode != ENOREC value && unpack(value) end # (see Proxy#store) def store(key, value, options = {}) @backend.put(key, pack(value)) or error value end # (see Proxy#delete) def delete(key, options = {}) value = load(key, options) if value @backend.delete(key) or error value end end # (see Proxy#increment) def increment(key, amount = 1, options = {}) @backend.addint(key, amount) or error end # (see Proxy#create) def create(key, value, options = {}) if @native begin # Native client throws an exception @backend.putkeep(key, pack(value)) rescue TokyoTyrantError false end else @backend.putkeep(key, pack(value)) end end # (see Proxy#close) def close @backend.close nil end private def pack(value) intvalue = value.to_i if intvalue >= 0 && intvalue <= 0xFFFFFFFF && intvalue.to_s == value # Pack as 4 byte integer [intvalue].pack(@pack) elsif value.bytesize >= 4 # Add nul character to make value distinguishable from integer value + "\0" else value end end def unpack(value) if value.bytesize == 4 # Unpack 4 byte integer value.unpack(@pack).first.to_s elsif value.bytesize >= 5 && value[-1] == ?\0 # Remove nul character value[0..-2] else value end end def error raise "#{@backend.class.name} error: #{@backend.errmsg}" end end end end
Close