Allow alphanumeric targetid's

git-svn-id: file:///home/svn/framework3/trunk@8996 4d416f70-5f16-0410-b530-b9f4589650da
This commit is contained in:
HD Moore
2010-04-03 06:21:00 +00:00
parent 949874e541
commit eac38aaa23
+3 -3
View File
@@ -39,7 +39,7 @@ module ReverseHttps
[
OptString.new('LHOST', [ true, "The local listener hostname" ]),
OptPort.new('LPORT', [ true, "The local listener port", 8443 ]),
OptInt.new('TARGETID', [ false, "The ID number of this specific instance", rand(1_000_000)]),
OptString.new('TARGETID', [ false, "The ID of this specific payload instance", Rex::Text.rand_text_alphanumeric(8)]),
], Msf::Handler::ReverseHttps)
end
@@ -104,7 +104,7 @@ protected
# Process the requested resource.
case req.relative_resource
when /\/A(\d+)/
when /\/A(.+)/
target_id = $1
print_status("#{cli.peerhost}:#{cli.peerport} Staging connection for target #{target_id} received...")
@@ -114,7 +114,7 @@ protected
resp.body = obj.prestage_payload + obj.stage_payload(target_id)
when /\/B(\d+)/
when /\/B(.+)/
target_id = $1
# This is the second connection from the actual stage, hand the socket