whoami7 - Manager
:
/
home
/
fresvfqn
/
waterdamagerestorationandrepairsmithtown.com
/
Compressed
/
Upload File:
files >> /home/fresvfqn/waterdamagerestorationandrepairsmithtown.com/Compressed/fcgi-bin.zip
PK �v[!f4rG G RailsRunner.rb.2.3nu �7��m #!/usr/bin/ruby Dir.chdir(ENV['RAILS_ROOT']) require 'config/boot' require 'active_support' require 'action_controller' require 'fileutils' options = { :environment => (ENV['RAILS_ENV'] || "development").dup, :config => RAILS_ROOT + "/config.ru", :detach => false, :debugger => false } server = Rack::Handler::LSWS if File.exist?(options[:config]) config = options[:config] if config =~ /\.ru$/ cfgfile = File.read(config) if cfgfile[/^#\\(.*)/] opts.parse!($1.split(/\s+/)) end inner_app = eval("Rack::Builder.new {( " + cfgfile + "\n )}.to_app", nil, config) else require config inner_app = Object.const_get(File.basename(config, '.rb').capitalize) end else require 'config/environment' inner_app = ActionController::Dispatcher.new end app = Rack::Builder.new { use Rails::Rack::Static use Rails::Rack::Debugger if options[:debugger] run inner_app }.to_app ActiveRecord::Base.clear_active_connections! if defined?(ActiveRecord::Base) begin server.run(app, options.merge(:AccessLog => [])) ensure puts 'Exiting' end PK �v[+�|�g g lsnodesm.jsnu �7��m /* * Copyright 2002-2018 Lite Speed Technologies Inc, All Rights Reserved. * LITE SPEED PROPRIETARY/CONFIDENTIAL. */ var EventEmitter = require('events').EventEmitter; var os = require('os'); var fs = require('fs'); var http = require('http'); var util = require('util'); var net = require('net'); var socketObject = { fd: 0 }; module.isApplicationLoader = true; global.LsNode = new EventEmitter(); startApplication(); function startApplication() { var appRoot = process.env.LSNODE_ROOT || process.cwd(); var startupFile = process.env.LSNODE_STARTUP_FILE || 'app.js'; LsNode.listenDone = false; if (process.env.LSNODE_ROOT != undefined) { try { process.chdir(process.env.LSNODE_ROOT); } catch (err) { console.error("Error setting directory to: " + process.env.LSNODE_ROOT + ": " + err); } } if (!startupFile.startsWith('/')) { startupFile = appRoot + '/' + startupFile; } process.title = 'lsnode:' + appRoot; var consoleLog = process.env.LSNODE_CONSOLE_LOG || '/dev/null'; fs.closeSync(1); try { fs.openSync(consoleLog, "w+"); } catch(e) { fs.openSync('/dev/null', "w+"); } http.Server.prototype.realListen = http.Server.prototype.listen; http.Server.prototype.listen = customListen; http.Server.prototype.address = lsnode_address; var app = startupFile.endsWith(".mjs") ? import(startupFile) : Promise.resolve(require(startupFile)); app.then((app) => { if (!LsNode.listenDone) { if (typeof app.listen === "function") { app.listen(3000); } } }); } function lsnode_address() { return process.env.LSNODE_SOCKET; } function customListen(port) { function onListenError(error) { server.emit('error', error); } // The replacement for the listen call! var server = this; if (LsNode.listenDone) { throw new Error("http.Server.listen() was called more than once " + "which is not allowed."); } LsNode.listenDone = true; var listeners = server.listeners('request'); var i; server.removeAllListeners('request'); server.on('request', function(req) { req.connection.__defineGetter__('remoteAddress', function() { return '127.0.0.1'; }); req.connection.__defineGetter__('remotePort', function() { return port; }); req.connection.__defineGetter__('addressType', function() { return 4; }); }); for (i = 0; i < listeners.length; i++) { server.on('request', listeners[i]); } var callback; if (arguments.length > 1 && typeof(arguments[arguments.length - 1]) == 'function') { callback = arguments[arguments.length - 1]; } server.once('error', onListenError); server.realListen(socketObject, function() { server.removeListener('error', onListenError); if (callback) { server.once('listening', callback); } server.emit('listening'); }); return server; } PK �v[�aG%� � RackRunner.rbnu �7��m #!/usr/bin/ruby ENV['RACK_ROOT']=ENV['RAILS_ROOT'] if ENV['RACK_ROOT'] == nil ENV['RACK_ENV']=ENV['RAILS_ENV'] if ENV['RACK_ENV'] == nil $0="RACK: #{ENV['APP_NAME'] || ENV['RACK_ROOT']} (#{ENV['RACK_ENV']})" if GC.respond_to?(:copy_on_write_friendly=) GC.copy_on_write_friendly = true end Dir.chdir( ENV['RACK_ROOT'] ) app_root=ENV['RACK_ROOT'] require 'rubygems' if !defined?(::Gem) require 'lsapi' if File.exist?('Gemfile') if Kernel.respond_to?(:gem, true) gem('bundler') end require ('bundler/setup' || 'bundler') end module Rack module Handler class LiteSpeed def self.run(app, options=nil) if LSAPI.respond_to?("accept_new_connection") while LSAPI.accept_new_connection != nil fork do LSAPI.postfork_child while LSAPI.accept != nil serve app end end LSAPI.postfork_parent end else while LSAPI.accept != nil serve app end end end def self.serve(app) env = ENV.to_hash env.delete "HTTP_CONTENT_LENGTH" env["SCRIPT_NAME"] = "" if env["SCRIPT_NAME"] == "/" #rack_input = StringIO.new($stdin.read.to_s) rack_input = $stdin rack_input.set_encoding(Encoding::BINARY) if rack_input.respond_to?(:set_encoding) env.update( "rack.version" => [1,0], "rack.input" => rack_input, "rack.errors" => $stderr, "rack.multithread" => false, "rack.multiprocess" => true, "rack.run_once" => false, "rack.url_scheme" => ["yes", "on", "1"].include?(ENV["HTTPS"]) ? "https" : "http" ) env["QUERY_STRING"] ||= "" env["HTTP_VERSION"] ||= env["SERVER_PROTOCOL"] env["REQUEST_PATH"] ||= "/" status, headers, body = app.call(env) begin if body.respond_to?(:to_path) and env["RACK_NO_XSENDFILE"] != "1" headers['X-LiteSpeed-Location'] = body.to_path headers.delete('Content-Length') #Correct? send_headers status, headers else send_headers status, headers send_body body end ensure body.close if body.respond_to? :close end end def self.send_headers(status, headers) print "Status: #{status}\r\n" headers.each { |k, vs| vs.split("\n").each { |v| print "#{k}: #{v}\r\n" } } print "\r\n" STDOUT.flush end def self.send_body(body) body.each { |part| print part STDOUT.flush } end end end end if Kernel.respond_to?(:gem, true) gem('rack') end require 'rack' # options = { :environment => (ENV['RACK_ENV'] || "development").dup, :config => "#{app_root}/config.ru", :detach => false, :debugger => false } server = Rack::Handler::LiteSpeed if File.exist?(options[:config]) config = options[:config] cfgfile = File.read(config) app = eval("Rack::Builder.new {( " + cfgfile + "\n )}.to_app", TOPLEVEL_BINDING, config) else require './config/environment' inner_app = ActionController::Dispatcher.new app = Rack::Builder.new { use Rails::Rack::Debugger if options[:debugger] run inner_app }.to_app end if defined?(ActiveRecord::Base) if defined?(ActiveRecord::Base.connection_pool.release_connection) ActiveRecord::Base.connection_pool.release_connection else ActiveRecord::Base.clear_active_connections! end end begin server.run(app, options.merge(:AccessLog => [])) ensure puts 'Exiting' end PK �v[��hU U ea-ruby27nu ȯ�� #!/bin/sh . /opt/cpanel/ea-ruby27/enable /opt/cpanel/ea-ruby27/root/usr/bin/ruby $@ PK �v[D�ho lsperld.fplnu �7��m #!/usr/bin/perl use FCGI; #use strict; our %Cache; use Symbol qw(delete_package); *CORE::GLOBAL::exit = \&my_exit; sub my_exit { # warn "exit() was called"; } sub valid_package_name { my($string) = @_; $string =~ s/([^A-Za-z0-9\/])/sprintf('_%2x',unpack('C',$1))/eg; # second pass only for words starting with a digit $string =~ s|/(\d)|sprintf('/_%2x',unpack('C',$1))|eg; # Dress it up as a real package name $string =~ s|/|::|g; return 'LSPerld' . $string; } sub execute_file { my($__filename, $__delete) = @_; my $__package; my $__mtime; my $__path; my $__name; return 404 if ( ! -r $__filename || -z _ ); $__mtime = -M _; if(defined $Cache{$__filename}[3] && $Cache{$__filename}[3] <= $__mtime) { # we have compiled this subroutine already, # it has not been updated on disk, nothing left to do #print STDERR "already compiled $package->handler\n"; $__path = $Cache{$__filename}[0]; $__name = $Cache{$__filename}[1]; $__package = $Cache{$__filename}[2]; chdir( $__path ); } else { $__filename =~ /^(\/.*?)\/*([^\/]+)$/; $__path = $1; $__name = $2; chdir( $__path ); local *FH; open FH, $__filename or die "open '$__filename' $!"; local($/) = undef; my $__sub = <FH>; close FH; $__package = valid_package_name($__filename); #wrap the code into a subroutine inside our unique package my $__eval = qq{package $__package; use subs qw(exit); sub exit { } sub handler { local \$0='$__filename'; $__sub; }}; { # hide our variables within this block my($__filename,$__mtime,$__package,$__sub); eval $__eval; } if ( $@ ) { warn $@; return 500; } #cache it unless we're cleaning out each time if ( ! $__delete ) { #$Cache{$filename}{pkgname} = $package; #$Cache{$filename}{mtime} = $mtime; $Cache{$__filename} = [ $__path, $__name, $__package, $__mtime ]; } } $0=$__filename; @ARGV = ( $__name ); my $__QS = $ENV{'QUERY_STRING'}; if (( $__QS ne '')&&(index( $__QS, '=' ) == -1 )) { push( @ARGV, split( $__QS ) ); } eval {$__package->handler;}; delete_package($__package) if $__delete; return 0; #take a look if you want #print Devel::Symdump->rnew($package)->as_string, $/; } my $req = FCGI::Request(); my $count = 0; my $ret; my $max_req = -1; if ( $ENV{'FCGI_PERL_MAX_REQ'} eq '' ) { $max_req = 500; } else { $max_req = int($ENV{'FCGI_PERL_MAX_REQ'}); } while($req->Accept() >= 0) { my $filename = $ENV{'SCRIPT_FILENAME'}; # Make it looks like ActiveState's PerlEx, otherwise CGI.pm won't reset # request parameters $ENV{'GATEWAY_INTERFACE'} = 'CGI-PerlEx/1.1'; if ( $filename ne '' ) { $ret = execute_file( $filename, 0 ); ++$count; if ( $ret ) { if ( $ret == 404 ) { print( "Status: 404\r\nContent-type: text/plain\r\n\r\n", "ERROR: file not find: \'$filename\'!\n" ); } elsif ( $ret == 500 ) { print( "Status: 500\r\nContent-type: text/plain\r\n\r\n", "ERROR: \'$filename\' is not a valid Perl script!\n" ); } } } else { print( "Content-type: text/plain\r\n\r\n", "ERROR: missing environment variable \'SCRIPT_FILENAME\'!\n" ); } $req->Finish(); last if ( ( $max_req != 0 )&&( $count >= $max_req ) ); } PK �v[�ó%�K �K lsphpnu �7��m ELF >