From 2b2c6b983ef12387c3f1ed122d19bbb2d2a88b9e Mon Sep 17 00:00:00 2001 From: HD Moore Date: Sat, 7 Mar 2009 18:18:38 +0000 Subject: [PATCH] Switch to a future compatible method of when/case git-svn-id: file:///home/svn/framework3/trunk@6311 4d416f70-5f16-0410-b530-b9f4589650da --- lib/msf/core/exploit/dialup.rb | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/lib/msf/core/exploit/dialup.rb b/lib/msf/core/exploit/dialup.rb index 0b57a1b509..ce2bd4203f 100644 --- a/lib/msf/core/exploit/dialup.rb +++ b/lib/msf/core/exploit/dialup.rb @@ -45,16 +45,16 @@ module Exploit::Remote::Dialup data_bits = datastore['DATABITS'].to_i stop_bits = datastore['STOPBITS'].to_i parity = case datastore['PARITY'] - when 'Even' : Telephony::Modem::EVEN - when 'Odd' : Telephony::Modem::ODD - when 'Mark' : Telephony::Modem::MARK - when 'Space': Telephony::Modem::SPACE + when 'Even' ; Telephony::Modem::EVEN + when 'Odd' ; Telephony::Modem::ODD + when 'Mark' ; Telephony::Modem::MARK + when 'Space'; Telephony::Modem::SPACE else Telephony::Modem::NONE end flowcontrol = case datastore['FLOWCONTROL'] - when 'Hardware' : Telephony::Modem::HARD - when 'Software' : Telephony::Modem::SOFT - when 'Both' : Telephony::Modem::HARD | Telephony::Modem::SOFT + when 'Hardware' ; Telephony::Modem::HARD + when 'Software' ; Telephony::Modem::SOFT + when 'Both' ; Telephony::Modem::HARD | Telephony::Modem::SOFT else Telephony::Modem::NONE end @@ -97,7 +97,7 @@ module Exploit::Remote::Dialup end case result - when /CONNECT/i: + when /CONNECT/i print_status("Carrier: #{result}" ) self.modem = modem if global return modem