Changeset 3807

Show
Ignore:
Timestamp:
08/07/06 22:29:26 (2 years ago)
Author:
mmiller
Message:

fixed bug in service manager hardcore alias, new passivex dll/proj files

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • framework3/trunk/lib/msf/core/handler/passivex.rb

    r3654 r3807  
    117117                                end 
    118118                        rescue ::Exception 
     119                                dlog("PassiveX:#{self} Exception during remote queue flush: #{$!}", 'core', LEV_0) 
    119120                        end 
    120121                end 
  • framework3/trunk/lib/rex/io/stream_server.rb

    r3496 r3807  
    9191                        clients.delete(client) 
    9292 
    93                         client.close 
     93                        begin 
     94                                client.close 
     95                        rescue IOError 
     96                        end 
    9497                end 
    9598        end 
  • framework3/trunk/lib/rex/proto/http/server.rb

    r3616 r3807  
    111111 
    112112        # 
     113        # Returns the hardcore alias for the HTTP service 
     114        # 
     115        def self.hardcore_alias(*args) 
     116                "#{(args[0] || '')}#{(args[1] || '')}"   
     117        end 
     118 
     119        # 
    113120        # HTTP server. 
    114121        # 
  • framework3/trunk/lib/rex/service.rb

    r3004 r3807  
    1717 
    1818        # 
     19        # Returns the hardcore, as in porno, alias for this service.  This is used 
     20        # by the service manager to manage singleton services. 
     21        # 
     22        def self.hardcore_alias(*args) 
     23                return "__#{args.to_s}" 
     24        end 
     25 
     26        # 
    1927        # Calls stop on the service once the ref count drops. 
    2028        # 
  • framework3/trunk/lib/rex/service_manager.rb

    r3029 r3807  
    5151        def start(klass, *args) 
    5252                # Get the hardcore alias. 
    53                 hals = hardcore_alias(klass, *args) 
     53                hals = "#{klass.to_s}" + klass.hardcore_alias(*args) 
    5454 
    5555                # Has a service already been constructed for this guy?  If so, increment 
  • framework3/trunk/lib/rex/services/local_relay.rb

    r3201 r3807  
    116116 
    117117        # 
     118        # Returns the hardcore alias for the local relay service. 
     119        # 
     120        def self.hardcore_alias(*args) 
     121                "__#{args.to_s}" 
     122        end 
     123 
     124        # 
    118125        # Returns the alias for this service. 
    119126        #