From 9c6d8b86fb7f5c547e520fa257285f9f1753c36e Mon Sep 17 00:00:00 2001 From: James Lee Date: Mon, 12 Jan 2009 17:52:54 +0000 Subject: [PATCH] patch from tebo; use standard printing methods git-svn-id: file:///home/svn/framework3/trunk@6134 4d416f70-5f16-0410-b530-b9f4589650da --- lib/msf/core/exploit/mssql.rb | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/msf/core/exploit/mssql.rb b/lib/msf/core/exploit/mssql.rb index fe935e0da4..8337e3e3b5 100644 --- a/lib/msf/core/exploit/mssql.rb +++ b/lib/msf/core/exploit/mssql.rb @@ -206,7 +206,7 @@ module Exploit::Remote::MSSQL when nil break else - printf("Got unsupported token!\n") + print_error("Got unsupported token!") end end @@ -220,7 +220,7 @@ module Exploit::Remote::MSSQL pkt, window = header.unpack('CCnnCC') - #printf("Got Packet #{pkt} of #{size} bytes...\n") + #print_status("Got Packet #{pkt} of #{size} bytes...") return status,size,pkt end @@ -232,17 +232,17 @@ module Exploit::Remote::MSSQL def parse_row() len = @data.slice!(0,1).unpack('C')[0] if len == 0 - printf("\n") + print_line() else str = @data.slice!(0,len).unpack("A*")[0] - printf("\t#{str}\n") + print_line("\t#{str}") end end def parse_ret() ret = @data.slice!(0,4).unpack('N')[0] unless ret == 0 - printf("There was a problem executing the query...\n") + print_error("There was a problem executing the query...") end end