Skip to content

Commit

Permalink
Partial revert of r10207 due to cygwin infinite loop, crashes.
Browse files Browse the repository at this point in the history
git-svn-id: file:///home/svn/framework3/trunk@10231 4d416f70-5f16-0410-b530-b9f4589650da
  • Loading branch information
scriptjunkie committed Sep 3, 2010
1 parent 57dac0d commit 4be6c5c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions msfrpcd
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,9 @@ $stderr.puts "[*] XMLRPC starting on #{opts['ServerHost']}:#{opts['ServerPort']}

$stderr.puts "[*] URI: #{opts['URI']}" if(opts['URI'])

# Create an instance of the framework
$framework = Msf::Simple::Framework.create

# Fork into the background if requested
begin
if (not foreground)
Expand All @@ -88,8 +91,7 @@ rescue ::NotImplementedError
$stderr.puts "[-] Background mode is not available on this platform"
end

# Create an instance of the framework
$framework = Msf::Simple::Framework.create
$framework.db.sink.restart if RUBY_PLATFORM !~ /cygwin/

# Run the plugin instance in the foreground.
$framework.plugins.load('xmlrpc', opts).run

0 comments on commit 4be6c5c

Please sign in to comment.