Add srvport to HttpServer

This allows URIPORT to override SRVPORT.
This commit is contained in:
William Vu 2017-03-09 02:22:06 -06:00
parent 1c9a8907b6
commit 1a0b342e68
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.
#