commit
f5fccde4df
|
@ -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.
|
||||
#
|
||||
|
|
Loading…
Reference in New Issue