Update reverse_tcp_rc4_dns.rb

Change to OpenSSL::Digest from deprecated OpenSSL::Digest::Digest
bug/bundler_fix
Niel Nielsen 2014-01-07 22:12:38 +01:00
parent 21b146fab3
commit d567737657
1 changed files with 2 additions and 2 deletions

View File

@ -89,7 +89,7 @@ module Metasploit3
end end
def generate_stage def generate_stage
m = OpenSSL::Digest::Digest.new('sha1') m = OpenSSL::Digest.new('sha1')
m.reset m.reset
key = m.digest(datastore["RC4PASSWORD"] || "") key = m.digest(datastore["RC4PASSWORD"] || "")
c1 = OpenSSL::Cipher::Cipher.new('RC4') c1 = OpenSSL::Cipher::Cipher.new('RC4')
@ -102,7 +102,7 @@ module Metasploit3
def internal_generate def internal_generate
p = super p = super
# Write keys into stage # Write keys into stage
m = OpenSSL::Digest::Digest.new('sha1') m = OpenSSL::Digest.new('sha1')
m.reset m.reset
key = m.digest(datastore["RC4PASSWORD"] || "") key = m.digest(datastore["RC4PASSWORD"] || "")
p[offsets['XORKey'][0], 4] = key[0,4] p[offsets['XORKey'][0], 4] = key[0,4]