Add cmd dispatch options -S and -P, msfvenom --sec-name
parent
5151473e09
commit
53143d57af
4
msfvenom
4
msfvenom
|
@ -97,7 +97,7 @@ def parse_args(args)
|
||||||
opts[:encoder] = e
|
opts[:encoder] = e
|
||||||
end
|
end
|
||||||
|
|
||||||
opt.on('--sec-name <value>', String, 'The new section name to use when generating Windows binaries. Default: random 4-character alpha string') do |s|
|
opt.on('--sec-name <value>', String, 'The new section name to use when generating large Windows binaries. Default: random 4-character alpha string') do |s|
|
||||||
opts[:secname] = s
|
opts[:secname] = s
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -138,7 +138,7 @@ def parse_args(args)
|
||||||
opts[:nops] = n.to_i
|
opts[:nops] = n.to_i
|
||||||
end
|
end
|
||||||
|
|
||||||
opt.on('--pad-nops', 'Use nopsled size specified by -n <length> as the total payload size, thus performing a subtraction to prepend a nopsled of quantity (nops minus payload length)') do
|
opt.on('--pad-nops', 'Use nopsled size specified by -n <length> as the total payload size, auto-prepending a nopsled of quantity (nops minus payload length)') do
|
||||||
opts[:padnops] = true
|
opts[:padnops] = true
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue