From 6063908cd4bc68b57991176083e0ac5e9b6ebf2b Mon Sep 17 00:00:00 2001 From: HD Moore Date: Tue, 13 Dec 2005 06:27:34 +0000 Subject: [PATCH] Catch ugly Interrupt error in msfconsole, fixed tabs in simpleclient git-svn-id: file:///home/svn/incoming/trunk@3213 4d416f70-5f16-0410-b530-b9f4589650da --- lib/rex/proto/smb/simpleclient.rb.ut.rb | 4 ++-- msfconsole | 5 ++++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/lib/rex/proto/smb/simpleclient.rb.ut.rb b/lib/rex/proto/smb/simpleclient.rb.ut.rb index 78a9178c51..3c3b131a70 100644 --- a/lib/rex/proto/smb/simpleclient.rb.ut.rb +++ b/lib/rex/proto/smb/simpleclient.rb.ut.rb @@ -95,10 +95,10 @@ class Rex::Proto::SMB::SimpleClient::UnitTest < Test::Unit::TestCase 4 ) - # Evasion techniques: + # Evasion techniques: # 1) Write the bind out a few bytes at a time with a random offset # 2) Read the response back a few bytes at a time with a random offset - + # Write the bind request out in random chunk sizes while (bind.length > 0) f.write( bind.slice!(0, (rand(20)+5)), rand(1024)+1 ) diff --git a/msfconsole b/msfconsole index 7d738ab6fc..54510fd914 100755 --- a/msfconsole +++ b/msfconsole @@ -9,4 +9,7 @@ $:.unshift(File.join(File.dirname(__FILE__), 'lib')) require 'rex' require 'msf/ui' -Msf::Ui::Console::Driver.new.run +begin + Msf::Ui::Console::Driver.new.run +rescue Interrupt +end