From 3558cd77771a4acdeb9ebd254875dabb84a53df2 Mon Sep 17 00:00:00 2001 From: Matt Miller Date: Mon, 28 Nov 2005 21:56:09 +0000 Subject: [PATCH] switch to DefaultHost/DefaultPort git-svn-id: file:///home/svn/incoming/trunk@3152 4d416f70-5f16-0410-b530-b9f4589650da --- plugins/msfd.rb | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/plugins/msfd.rb b/plugins/msfd.rb index ae5092316c..b01186d648 100644 --- a/plugins/msfd.rb +++ b/plugins/msfd.rb @@ -14,6 +14,16 @@ module Msf ### class Plugin::Msfd < Msf::Plugin + # + # The default local hostname that the server listens on. + # + DefaultHost = "127.0.0.1" + + # + # The default local port that the server listens on. + # + DefaultPort = 55554 + # # Initializes the msfd plugin. The following options are supported in the # hash by this plugin: @@ -38,8 +48,8 @@ class Plugin::Msfd < Msf::Plugin # Start listening for connections. self.server = Rex::Socket::TcpServer.create( - 'LocalHost' => opts['ServerHost'] || '127.0.0.1', - 'LocalPort' => opts['ServerPort'] || 55554) + 'LocalHost' => opts['ServerHost'] || DefaultHost, + 'LocalPort' => opts['ServerPort'] || DefaultPort) # If the run in foreground flag is not specified, then go ahead and fire # it off in a worker thread.