Sha256: 13604056f382b4c1c12516fdf1e3a123e3746440ea8177f2342f71774054974f
Contents?: true
Size: 1.2 KB
Versions: 5
Compression:
Stored size: 1.2 KB
Contents
=begin Copyright 2010-2022 Ecsypno <http://www.ecsypno.com> This file is part of the Arachni Framework project and is subject to redistribution and commercial restrictions. Please see the Arachni Framework web site for more information on licensing and terms of use. =end module Arachni module HTTP class ProxyServer # @author Tasos "Zapotek" Laskos <tasos.laskos@arachni-scanner.com> class Tunnel < Arachni::Reactor::Connection include Arachni::UI::Output personalize_output def initialize( options ) print_debug_level_3 'New tunnel.' @client = options[:client] end def on_connect print_debug_level_3 'Connected.' end def write( data ) print_debug_level_3 " -> Forwarding #{data.size} bytes." super data end def on_close( reason = nil ) print_debug_level_3 "Closed because: [#{reason.class}] #{reason}" # ap self.class # ap 'CLOSE' # ap reason @client.close reason end def on_read( data ) # ap self.class # ap 'READ' # ap data print_debug_level_3 "<- Forwarding #{data.size} bytes to client." @client.write data end end end end end
Version data entries
5 entries across 5 versions & 1 rubygems