patch from tebo; use standard printing methods

git-svn-id: file:///home/svn/framework3/trunk@6134 4d416f70-5f16-0410-b530-b9f4589650da
unstable
James Lee 2009-01-12 17:52:54 +00:00
parent e7aecca838
commit 9c6d8b86fb
1 changed files with 5 additions and 5 deletions

View File

@ -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