Land #8077, srvport for HttpServer

it.
This commit is contained in:
William Vu 2017-03-09 02:26:55 -06:00
commit f5fccde4df
No known key found for this signature in database
GPG Key ID: 68BD00CE25866743
1 changed files with 13 additions and 0 deletions

View File

@ -490,6 +490,19 @@ module Exploit::Remote::HttpServer
host
end
#
# Returns the local port that is being listened on.
#
def srvport
if datastore['URIPORT']
port = datastore['URIPORT']
else
port = datastore['SRVPORT']
end
port
end
#
# Removes a URI resource.
#