File tree Expand file tree Collapse file tree 2 files changed +1
-15
lines changed Expand file tree Collapse file tree 2 files changed +1
-15
lines changed Original file line number Diff line number Diff line change @@ -79,7 +79,7 @@ def execute_script(script_name, *args)
79
79
)
80
80
elsif mod . type == "exploit"
81
81
# well it must be a local, we're not currently supporting anything else
82
- if mod . category == "local"
82
+ if mod . exploit_type == "local"
83
83
# get a copy of the session exploit's datastore if we can
84
84
original_exploit_datastore = self . exploit . datastore || { }
85
85
copy_of_orig_exploit_datastore = original_exploit_datastore . clone
Original file line number Diff line number Diff line change @@ -41,10 +41,6 @@ def shortname
41
41
refname . split ( '/' ) . last
42
42
end
43
43
44
- def category
45
- refname . split ( '/' ) [ 1 ]
46
- end
47
-
48
44
#
49
45
# Returns this module's ranking.
50
46
#
@@ -274,16 +270,6 @@ def refname
274
270
self . class . refname
275
271
end
276
272
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
-
287
273
#
288
274
# Returns the module's rank.
289
275
#
You can’t perform that action at this time.
0 commit comments