Update reverse_tcp_rc4.rb

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

View File

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