We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 1c9a890 + 1a0b342 commit f5fccdeCopy full SHA for f5fccde
lib/msf/core/exploit/http/server.rb
@@ -490,6 +490,19 @@ def srvhost_addr
490
host
491
end
492
493
+ #
494
+ # Returns the local port that is being listened on.
495
496
+ def srvport
497
+ if datastore['URIPORT']
498
+ port = datastore['URIPORT']
499
+ else
500
+ port = datastore['SRVPORT']
501
+ end
502
+
503
+ port
504
505
506
#
507
# Removes a URI resource.
508
0 commit comments