Fixed problem I introduced when no template was specified
git-svn-id: file:///home/svn/framework3/trunk@12730 4d416f70-5f16-0410-b530-b9f4589650daunstable
parent
609ae839a1
commit
016712baa5
7
msfvenom
7
msfvenom
|
@ -340,8 +340,11 @@ if opts[:encode]
|
|||
end
|
||||
end
|
||||
|
||||
|
||||
exeopts = { :inject => opts[:inject], :template_path => File.dirname(opts[:template]), :template => File.basename(opts[:template]) }
|
||||
if opts[:template]
|
||||
path = File.dirname(opts[:template])
|
||||
altexe = File.basename(opts[:template])
|
||||
end
|
||||
exeopts = { :inject => opts[:inject], :template_path => path, :template => altexe }
|
||||
|
||||
if opts[:nopsled]
|
||||
puts opts[:arch].class
|
||||
|
|
Loading…
Reference in New Issue