changed how the template option was parsed
git-svn-id: file:///home/svn/framework3/trunk@12728 4d416f70-5f16-0410-b530-b9f4589650daunstable
parent
970b0a424a
commit
3a4926a8fe
10
msfvenom
10
msfvenom
|
@ -340,14 +340,8 @@ if opts[:encode]
|
|||
end
|
||||
end
|
||||
|
||||
if opts[:template]
|
||||
idx = opts[:template].rindex("/")
|
||||
len = opts[:template].length
|
||||
path = opts[:template][0..idx]
|
||||
altexe = opts[:template][idx..len]
|
||||
end
|
||||
|
||||
exeopts = { :inject => opts[:inject], :template_path => path, :template => altexe }
|
||||
exeopts = { :inject => opts[:inject], :template_path => File.dirname(opts[:template]), :template => File.basename(opts[:template]) }
|
||||
|
||||
if opts[:nopsled]
|
||||
puts opts[:arch].class
|
||||
|
@ -408,4 +402,4 @@ when /war/i
|
|||
else
|
||||
print_error("Unsupported format")
|
||||
exit
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue