Skip to content

Commit ed7dd8d

Browse files
committed
Ensure consistent module naming style
1 parent 97adb2a commit ed7dd8d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

msfcli

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,11 @@ class Msfcli
2424
@args[:module_name] = args.shift # First argument should be the module name
2525
@args[:mode] = args.pop || 'h' # Last argument should be the mode
2626
@args[:params] = args # Whatever is in the middle should be the params
27+
28+
if @args[:module_name] =~ /^exploit(s)*\//i
29+
@args[:module_name] = @args[:module_name].split('/')
30+
@args[:module_name] = @args[:module_name][1, @args[:module_name].length] * "/"
31+
end
2732
end
2833

2934
#

0 commit comments

Comments
 (0)