mirror of
https://github.com/rapid7/metasploit-framework
synced 2024-11-05 14:57:30 +01:00
Catch ugly Interrupt error in msfconsole, fixed tabs in simpleclient
git-svn-id: file:///home/svn/incoming/trunk@3213 4d416f70-5f16-0410-b530-b9f4589650da
This commit is contained in:
parent
f9edc88699
commit
6063908cd4
@ -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 )
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user