1
mirror of https://github.com/rapid7/metasploit-framework synced 2024-11-12 11:52:01 +01:00
git-svn-id: file:///home/svn/incoming/trunk@2893 4d416f70-5f16-0410-b530-b9f4589650da
This commit is contained in:
Matt Miller 2005-09-24 19:47:56 +00:00
parent d6d3e774d7
commit 6f33b93f37

View File

@ -218,6 +218,10 @@ protected
"/" + Rex::Text.rand_text_alphanumeric(rand(118) + 10)
end
#
# Re-generates the payload, substituting the current RHOST and RPORT with
# the supplied client host and port.
#
def regenerate_payload(cli)
# Update the datastore with the supplied client peerhost/peerport
datastore['RHOST'] = cli.peerhost