Skip to content

Commit

Permalink
add require, fix module context generate
Browse files Browse the repository at this point in the history
  • Loading branch information
space-r7 committed Oct 29, 2019
1 parent f65c5a3 commit a042916
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
7 changes: 4 additions & 3 deletions lib/msf/core/payload/windows/encrypted_reverse_tcp.rb
Expand Up @@ -104,10 +104,11 @@ def include_send_uuid
true
end

def generate_stage(opts)
conf = opts[:datastore]
def generate_stage(opts={})
conf = opts[:datastore] || datastore
conf[:staged] = true
key, nonce = get_key_nonce(opts[:uuid])
stage_uuid = opts[:uuid] || uuid
key, nonce = get_key_nonce(stage_uuid)

unless key && nonce
print_status('No existing key/nonce in db. Resorting to datastore options.')
Expand Down
1 change: 1 addition & 0 deletions modules/payloads/stages/windows/x64/encrypted_shell.rb
Expand Up @@ -5,6 +5,7 @@

require 'msf/base/sessions/encrypted_shell'
require 'msf/base/sessions/command_shell_options'
require 'msf/core/payload/windows/encrypted_reverse_tcp'

module MetasploitModule

Expand Down

0 comments on commit a042916

Please sign in to comment.