String#to_a was removed in 1.9.2, replace with [ str ] for compat

git-svn-id: file:///home/svn/framework3/trunk@10448 4d416f70-5f16-0410-b530-b9f4589650da
unstable
James Lee 2010-09-23 21:17:41 +00:00
parent a5527f7757
commit 0001550e6d
1 changed files with 1 additions and 1 deletions

View File

@ -61,7 +61,7 @@ class Metasploit3 < Msf::Auxiliary
def run
if datastore['CHALLENGE'].to_s =~ /^([a-fA-F0-9]{16})$/
@challenge = datastore['CHALLENGE'].to_a.pack("H*")
@challenge = [ datastore['CHALLENGE'] ].pack("H*")
else
print_error("CHALLENGE syntax must match 0011223344556677")
return