Skip to content

Commit 6c29bae

Browse files
committed
uses exploit_type vs category, thx egypt
1 parent 4b351b4 commit 6c29bae

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
@@ -79,7 +79,7 @@ def execute_script(script_name, *args)
7979
)
8080
elsif mod.type == "exploit"
8181
# well it must be a local, we're not currently supporting anything else
82-
if mod.category == "local"
82+
if mod.exploit_type == "local"
8383
# get a copy of the session exploit's datastore if we can
8484
original_exploit_datastore = self.exploit.datastore || {}
8585
copy_of_orig_exploit_datastore = original_exploit_datastore.clone

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)