From 385ae7ec38d93395090aa16a1b7cc91112f9405f Mon Sep 17 00:00:00 2001 From: Niel Nielsen Date: Tue, 7 Jan 2014 22:11:16 +0100 Subject: [PATCH] Update reverse_tcp_rc4.rb Change to OpenSSL::Digest from deprecated OpenSSL::Digest::Digest --- modules/payloads/stagers/windows/reverse_tcp_rc4.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/payloads/stagers/windows/reverse_tcp_rc4.rb b/modules/payloads/stagers/windows/reverse_tcp_rc4.rb index a35edf4877..9c7c12e5e8 100644 --- a/modules/payloads/stagers/windows/reverse_tcp_rc4.rb +++ b/modules/payloads/stagers/windows/reverse_tcp_rc4.rb @@ -77,7 +77,7 @@ module Metasploit3 def generate_stage p = super - m = OpenSSL::Digest::Digest.new('sha1') + m = OpenSSL::Digest.new('sha1') m.reset key = m.digest(datastore["RC4PASSWORD"] || "") c1 = OpenSSL::Cipher::Cipher.new('RC4') @@ -89,7 +89,7 @@ module Metasploit3 def internal_generate p = super - m = OpenSSL::Digest::Digest.new('sha1') + m = OpenSSL::Digest.new('sha1') m.reset key = m.digest(datastore["RC4PASSWORD"] || "") p[offsets['XORKey'][0], 4] = key[0,4]