See #104
git-svn-id: file:///home/svn/framework3/trunk@5275 4d416f70-5f16-0410-b530-b9f4589650daunstable
parent
2b41f4fe05
commit
e2f3cbe1aa
|
@ -43,7 +43,15 @@ def config
|
|||
# Always show the option page after an exploit is launched
|
||||
@cur_step = "config"
|
||||
|
||||
if ( params[:payload] and params[:payload] =~ /^\d+$/ )
|
||||
@payload_ref = @tmod.compatible_payloads[params[:payload].to_i]
|
||||
else
|
||||
@tmod.compatible_payloads.each_with_index do |ref, i|
|
||||
if(ref[0] == params[:payload])
|
||||
@payload_ref = ref
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
unless @payload_ref
|
||||
render_text "Unknown payload specified or not supported."
|
||||
|
|
Loading…
Reference in New Issue