Skip to content

Commit 51db859

Browse files
committed
uses exploit_type vs category, thx egypt
1 parent ee56828 commit 51db859

File tree

2 files changed

+1
-15
lines changed

2 files changed

+1
-15
lines changed

lib/msf/base/sessions/scriptable.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ def execute_script(script_name, *args)
7878
)
7979
elsif mod.type == "exploit"
8080
# well it must be a local, we're not currently supporting anything else
81-
if mod.category == "local"
81+
if mod.exploit_type == "local"
8282
# get a copy of the session exploit's datastore if we can
8383
original_exploit_datastore = self.exploit.datastore || {}
8484
copy_of_orig_exploit_datastore = original_exploit_datastore.dup

lib/msf/core/module.rb

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,6 @@ def shortname
4141
refname.split('/').last
4242
end
4343

44-
def category
45-
refname.split('/')[1]
46-
end
47-
4844
#
4945
# Returns this module's ranking.
5046
#
@@ -274,16 +270,6 @@ def refname
274270
self.class.refname
275271
end
276272

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-
def category
283-
self.class.category
284-
end
285-
alias_method :catname, :category
286-
287273
#
288274
# Returns the module's rank.
289275
#

0 commit comments

Comments
 (0)