Update reverse_tcp_rc4_dns.rb
Change to OpenSSL::Digest from deprecated OpenSSL::Digest::Digestbug/bundler_fix
parent
21b146fab3
commit
d567737657
|
@ -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]
|
||||||
|
|
Loading…
Reference in New Issue