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 /
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 : abstract_store.rb
# :markup: markdown require 'monitor' # An abstract superclass for all store classes. class HTTP::CookieJar::AbstractStore include MonitorMixin class << self @@class_map = {} # Gets an implementation class by the name, optionally trying to # load "http/cookie_jar/*_store" if not found. If loading fails, # IndexError is raised. def implementation(symbol) @@class_map.fetch(symbol) rescue IndexError begin require 'http/cookie_jar/%s_store' % symbol @@class_map.fetch(symbol) rescue LoadError, IndexError raise IndexError, 'cookie store unavailable: %s' % symbol.inspect end end def inherited(subclass) # :nodoc: @@class_map[class_to_symbol(subclass)] = subclass end def class_to_symbol(klass) # :nodoc: klass.name[/[^:]+?(?=Store$|$)/].downcase.to_sym end end # Defines options and their default values. def default_options # {} end private :default_options # :call-seq: # new(**options) # # Called by the constructor of each subclass using super(). def initialize(options = nil) super() # MonitorMixin options ||= {} @logger = options[:logger] # Initializes each instance variable of the same name as option # keyword. default_options.each_pair { |key, default| instance_variable_set("@#{key}", options.fetch(key, default)) } end # This is an abstract method that each subclass must override. def initialize_copy(other) # self end # Implements HTTP::CookieJar#add(). # # This is an abstract method that each subclass must override. def add(cookie) # self end # Implements HTTP::CookieJar#delete(). # # This is an abstract method that each subclass must override. def delete(cookie) # self end # Iterates over all cookies that are not expired. # # An optional argument +uri+ specifies a URI object indicating the # destination of the cookies being selected. Every cookie yielded # should be good to send to the given URI, # i.e. cookie.valid_for_uri?(uri) evaluates to true. # # If (and only if) the +uri+ option is given, last access time of # each cookie is updated to the current time. # # This is an abstract method that each subclass must override. def each(uri = nil, &block) # :yield: cookie # if uri # ... # else # synchronize { # ... # } # end # self end include Enumerable # Implements HTTP::CookieJar#empty?(). def empty? each { return false } true end # Implements HTTP::CookieJar#clear(). # # This is an abstract method that each subclass must override. def clear # self end # Implements HTTP::CookieJar#cleanup(). # # This is an abstract method that each subclass must override. def cleanup(session = false) # if session # select { |cookie| cookie.session? || cookie.expired? } # else # select(&:expired?) # end.each { |cookie| # delete(cookie) # } # # subclasses can optionally remove over-the-limit cookies. # self end end
Close