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.171
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 /
http /
cookie_jar /
[ HOME SHELL ]
Name
Size
Permission
Action
abstract_saver.rb
1.63
KB
-rw-r--r--
abstract_store.rb
3.04
KB
-rw-r--r--
cookiestxt_saver.rb
2.41
KB
-rw-r--r--
hash_store.rb
4.12
KB
-rw-r--r--
mozilla_store.rb
13.15
KB
-rw-r--r--
yaml_saver.rb
1.97
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : yaml_saver.rb
# :markup: markdown require 'http/cookie_jar' require 'psych' if !defined?(YAML) && RUBY_VERSION == "1.9.2" require 'yaml' # YAMLSaver saves and loads cookies in the YAML format. It can load a # YAML file saved by Mechanize, but the saving format is not # compatible with older versions of Mechanize (< 2.7). class HTTP::CookieJar::YAMLSaver < HTTP::CookieJar::AbstractSaver # :singleton-method: new # :call-seq: # new(**options) # # There is no option keyword supported at the moment. ## def save(io, jar) YAML.dump(@session ? jar.to_a : jar.reject(&:session?), io) end def load(io, jar) begin data = YAML.load(io) rescue ArgumentError => e case e.message when %r{\Aundefined class/module Mechanize::} # backward compatibility with Mechanize::Cookie begin io.rewind # hopefully yaml = io.read # a gross hack yaml.gsub!(%r{^( [^ ].*:) !ruby/object:Mechanize::Cookie$}, "\\1") data = YAML.load(yaml) rescue Errno::ESPIPE @logger.warn "could not rewind the stream for conversion" if @logger rescue ArgumentError end end end case data when Array data.each { |cookie| jar.add(cookie) } when Hash # backward compatibility with Mechanize::Cookie data.each { |domain, paths| paths.each { |path, names| names.each { |cookie_name, cookie_hash| if cookie_hash.respond_to?(:ivars) # YAML::Object of Syck cookie_hash = cookie_hash.ivars end cookie = HTTP::Cookie.new({}.tap { |hash| cookie_hash.each_pair { |key, value| hash[key.to_sym] = value } }) jar.add(cookie) } } } else @logger.warn "incompatible YAML cookie data discarded" if @logger return end end private def default_options {} end end
Close