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.
1 parent a8e7dc8 commit a270cc6Copy full SHA for a270cc6
lib/msf/core/module.rb
@@ -41,6 +41,10 @@ def shortname
41
refname.split('/').last
42
end
43
44
+ def category
45
+ refname.split('/')[1]
46
+ end
47
+
48
#
49
# Returns this module's ranking.
50
@@ -270,6 +274,16 @@ def refname
270
274
self.class.refname
271
275
272
276
277
+ #
278
+ # Returns the module's category, defined as the part of the refname after
279
+ # the platform
280
281
+ # "shell" when windows/shell/reverse_tcp, "local" when windows/local/bypassuac
282
283
+ self.class.category
284
285
+ alias_method :category, :catname
286
273
287
288
# Returns the module's rank.
289
0 commit comments