Fixes #104
git-svn-id: file:///home/svn/framework3/trunk@5277 4d416f70-5f16-0410-b530-b9f4589650daunstable
parent
a812848782
commit
7123cce773
|
@ -38,20 +38,25 @@ def config
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
if @cur_step == "exploit"
|
if (params[:payload])
|
||||||
|
|
||||||
# Always show the option page after an exploit is launched
|
if (params[:payload] =~ /^\d+$/ )
|
||||||
@cur_step = "config"
|
|
||||||
|
|
||||||
if ( params[:payload] and params[:payload] =~ /^\d+$/ )
|
|
||||||
@payload_ref = @tmod.compatible_payloads[params[:payload].to_i]
|
@payload_ref = @tmod.compatible_payloads[params[:payload].to_i]
|
||||||
else
|
else
|
||||||
@tmod.compatible_payloads.each_with_index do |ref, i|
|
@tmod.compatible_payloads.each_with_index do |ref, i|
|
||||||
|
|
||||||
if(ref[0] == params[:payload])
|
if(ref[0] == params[:payload])
|
||||||
@payload_ref = ref
|
@payload_ref = ref
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
|
||||||
|
if @cur_step == "exploit"
|
||||||
|
|
||||||
|
# Always show the option page after an exploit is launched
|
||||||
|
@cur_step = "config"
|
||||||
|
|
||||||
unless @payload_ref
|
unless @payload_ref
|
||||||
render_text "Unknown payload specified or not supported."
|
render_text "Unknown payload specified or not supported."
|
||||||
|
@ -102,8 +107,6 @@ def config
|
||||||
|
|
||||||
if @cur_step == "config"
|
if @cur_step == "config"
|
||||||
|
|
||||||
@payload_ref = @tmod.compatible_payloads[params[:payload].to_i]
|
|
||||||
|
|
||||||
unless @payload_ref
|
unless @payload_ref
|
||||||
render_text "Unknown payload specified or not supported."
|
render_text "Unknown payload specified or not supported."
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue