Add srvport to HttpServer
This allows URIPORT to override SRVPORT.
This commit is contained in:
parent
1c9a8907b6
commit
1a0b342e68
|
@ -490,6 +490,19 @@ module Exploit::Remote::HttpServer
|
||||||
host
|
host
|
||||||
end
|
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.
|
# Removes a URI resource.
|
||||||
#
|
#
|
||||||
|
|
Loading…
Reference in New Issue