Linux vps-61133.fhnet.fr 4.9.0-19-amd64 #1 SMP Debian 4.9.320-2 (2022-06-30) x86_64
Apache/2.4.25 (Debian)
Server IP : 93.113.207.21 & Your IP : 216.73.216.112
Domains :
Cant Read [ /etc/named.conf ]
User : www-data
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
usr /
lib /
ruby /
vendor_ruby /
rack /
Delete
Unzip
Name
Size
Permission
Date
Action
auth
[ DIR ]
drwxrwxrwx
2020-08-24 23:49
backports
[ DIR ]
drwxrwxrwx
2020-08-24 23:49
handler
[ DIR ]
drwxrwxrwx
2020-08-24 23:49
multipart
[ DIR ]
drwxrwxrwx
2020-08-24 23:49
session
[ DIR ]
drwxrwxrwx
2020-08-24 23:49
utils
[ DIR ]
drwxrwxrwx
2020-08-24 23:49
body_proxy.rb
958
B
-rwxrwxrwx
2020-07-10 13:18
builder.rb
4.27
KB
-rwxrwxrwx
2020-07-10 13:18
cascade.rb
1.34
KB
-rwxrwxrwx
2020-07-10 13:18
chunked.rb
1.58
KB
-rwxrwxrwx
2020-07-10 13:18
commonlogger.rb
2.28
KB
-rwxrwxrwx
2020-07-10 13:18
conditionalget.rb
2.5
KB
-rwxrwxrwx
2020-07-10 13:18
config.rb
379
B
-rwxrwxrwx
2020-07-10 13:18
content_length.rb
840
B
-rwxrwxrwx
2020-07-10 13:18
content_type.rb
670
B
-rwxrwxrwx
2020-07-10 13:18
deflater.rb
4.57
KB
-rwxrwxrwx
2020-07-10 13:18
directory.rb
4.24
KB
-rwxrwxrwx
2020-07-10 13:18
etag.rb
2.11
KB
-rwxrwxrwx
2020-07-10 13:18
file.rb
4.09
KB
-rwxrwxrwx
2020-07-10 13:18
handler.rb
3.25
KB
-rwxrwxrwx
2020-07-10 13:18
head.rb
484
B
-rwxrwxrwx
2020-07-10 13:18
lint.rb
29.26
KB
-rwxrwxrwx
2020-07-10 13:18
lobster.rb
1.97
KB
-rwxrwxrwx
2020-07-10 13:18
lock.rb
601
B
-rwxrwxrwx
2020-07-10 13:18
logger.rb
357
B
-rwxrwxrwx
2020-07-10 13:18
methodoverride.rb
1.01
KB
-rwxrwxrwx
2020-07-10 13:18
mime.rb
30.94
KB
-rwxrwxrwx
2020-07-10 13:18
mock.rb
5.68
KB
-rwxrwxrwx
2020-07-10 13:18
multipart.rb
1.14
KB
-rwxrwxrwx
2020-07-10 13:18
nulllogger.rb
951
B
-rwxrwxrwx
2020-07-10 13:18
recursive.rb
1.73
KB
-rwxrwxrwx
2020-07-10 13:18
reloader.rb
2.97
KB
-rwxrwxrwx
2020-07-10 13:18
request.rb
12.88
KB
-rwxrwxrwx
2020-07-10 13:18
response.rb
4.33
KB
-rwxrwxrwx
2020-07-10 13:18
rewindable_input.rb
3.19
KB
-rwxrwxrwx
2020-07-10 13:18
runtime.rb
961
B
-rwxrwxrwx
2020-07-10 13:18
sendfile.rb
5.18
KB
-rwxrwxrwx
2020-07-10 13:18
server.rb
10.8
KB
-rwxrwxrwx
2020-07-10 13:18
showexceptions.rb
11.7
KB
-rwxrwxrwx
2020-07-10 13:18
showstatus.rb
3.46
KB
-rwxrwxrwx
2020-07-10 13:18
static.rb
4.88
KB
-rwxrwxrwx
2020-07-10 13:18
tempfile_reaper.rb
670
B
-rwxrwxrwx
2020-07-10 13:18
urlmap.rb
2.46
KB
-rwxrwxrwx
2020-07-10 13:18
utils.rb
20.86
KB
-rwxrwxrwx
2020-07-10 13:18
Save
Rename
# -*- encoding: binary -*- require 'tempfile' require 'rack/utils' module Rack # Class which can make any IO object rewindable, including non-rewindable ones. It does # this by buffering the data into a tempfile, which is rewindable. # # rack.input is required to be rewindable, so if your input stream IO is non-rewindable # by nature (e.g. a pipe or a socket) then you can wrap it in an object of this class # to easily make it rewindable. # # Don't forget to call #close when you're done. This frees up temporary resources that # RewindableInput uses, though it does *not* close the original IO object. class RewindableInput def initialize(io) @io = io @rewindable_io = nil @unlinked = false end def gets make_rewindable unless @rewindable_io @rewindable_io.gets end def read(*args) make_rewindable unless @rewindable_io @rewindable_io.read(*args) end def each(&block) make_rewindable unless @rewindable_io @rewindable_io.each(&block) end def rewind make_rewindable unless @rewindable_io @rewindable_io.rewind end # Closes this RewindableInput object without closing the originally # wrapped IO oject. Cleans up any temporary resources that this RewindableInput # has created. # # This method may be called multiple times. It does nothing on subsequent calls. def close if @rewindable_io if @unlinked @rewindable_io.close else @rewindable_io.close! end @rewindable_io = nil end end private # Ruby's Tempfile class has a bug. Subclass it and fix it. class Tempfile < ::Tempfile def _close @tmpfile.close if @tmpfile @data[1] = nil if @data @tmpfile = nil end end def make_rewindable # Buffer all data into a tempfile. Since this tempfile is private to this # RewindableInput object, we chmod it so that nobody else can read or write # it. On POSIX filesystems we also unlink the file so that it doesn't # even have a file entry on the filesystem anymore, though we can still # access it because we have the file handle open. @rewindable_io = Tempfile.new('RackRewindableInput') @rewindable_io.chmod(0000) @rewindable_io.set_encoding(Encoding::BINARY) if @rewindable_io.respond_to?(:set_encoding) @rewindable_io.binmode if filesystem_has_posix_semantics? # Use ::File.unlink as 1.9.1 Tempfile has a bug where unlink closes the file! ::File.unlink @rewindable_io.path raise 'Unlink failed. IO closed.' if @rewindable_io.closed? @unlinked = true end buffer = "" while @io.read(1024 * 4, buffer) entire_buffer_written_out = false while !entire_buffer_written_out written = @rewindable_io.write(buffer) entire_buffer_written_out = written == Rack::Utils.bytesize(buffer) if !entire_buffer_written_out buffer.slice!(0 .. written - 1) end end end @rewindable_io.rewind end def filesystem_has_posix_semantics? RUBY_PLATFORM !~ /(mswin|mingw|cygwin|java)/ end end end