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