mirror of
https://github.com/rapid7/metasploit-framework
synced 2024-11-05 14:57:30 +01:00
Exposed exploit_choose_payload as class method Exploit.choose_payload
This commit is contained in:
parent
05eba0ab4c
commit
410008bab7
@ -140,7 +140,7 @@ class Exploit
|
||||
end
|
||||
|
||||
if not payload
|
||||
payload = exploit_choose_payload(mod, target)
|
||||
payload = Exploit.choose_payload(mod, target)
|
||||
end
|
||||
|
||||
begin
|
||||
@ -236,7 +236,7 @@ class Exploit
|
||||
#
|
||||
# Picks a reasonable payload and minimally configures it
|
||||
#
|
||||
def exploit_choose_payload(mod, target)
|
||||
def self.choose_payload(mod, target)
|
||||
|
||||
# Choose either the real target or an invalid address
|
||||
# This is used to determine the LHOST value
|
||||
|
Loading…
Reference in New Issue
Block a user