<% def draw_option(name, opt) defval = h(opt.default || '') if (params[name.to_sym]) defval = params[name.to_sym].to_s end case opt.class.to_s when 'Msf::OptEnum' ret = '\n" ret else '' end end %> <% if @exploit_error %> <% end %> <% if @exploit_console %> <% end %> <% if @cur_step == nil %> <% rcol_a = 'item_row_col_a' rcol_b = 'item_row_col_b' rcol = rcol_b %> <% @payloads.each_with_index do |p, idx| %> <% o = p[1].new %> <% end %> <% elsif @cur_step == "config" %>

Please enter all of the required options and press 'Launch Exploit' to continue.

<%= hidden_field_tag "refname", h(params[:refname]) %> <%= hidden_field_tag "step", "exploit" %> <%= hidden_field_tag "target", h(params[:target]) %> <%= hidden_field_tag "payload", h(params[:payload]) %> <% @tmod.options.sort.each { |name, option| next if (option.advanced?) next if (option.evasion?) %> <% } %> <% @payload_inst.options.sort.each { |name, option| next if (option.advanced?) next if (option.evasion?) %> <% } %> <% @tmod.options.sort.each { |name, option| next if not option.advanced? %> <% } %> <% @payload_inst.options.sort.each { |name, option| next if not option.advanced? %> <% } %> <% @tmod.options.sort.each { |name, option| next if not option.evasion? %> <% } %> <% @payload_inst.options.sort.each { |name, option| next if not option.evasion? %> <% } %> <% if @exploit_console %> <% end %> <% end %>
<%= h(@tmod.name) %>

Select payload for target <%= h(@target.name) %>:

Validation Error: <%= h(@exploit_error) %>
Exploit launched. If the exploit console window does not appear, please click here.
CURRENT CONFIGURATION - <%= link_to "change target", :action => "view", :refname => h(params[:refname]) %>
EXPLOIT <%= @tmod.refname %>
TARGET <%= @target.name %>
Name Description
<%= link_to h(p[0]), :refname => @tmod.refname.gsub('/', ':'), :step => "config", :target => h(params[:target].to_i), :payload => idx %> <%= h(o.description) %>
CURRENT CONFIGURATION - <%= link_to "change payload", :action => "config", :refname => h(params[:refname]) %>
EXPLOIT <%= h @tmod.refname %>
TARGET <%= h @target.name %>
PAYLOAD <%= h @payload_name %>
STANDARD OPTIONS
<%= h name %> <%= (option.required?) ? "Required" : "" %>
<%= h option.desc %> (type: <%= h option.type %>) <%= draw_option('eopt_'+h(name), option) %>
<%= h name %> <%= (option.required?) ? "Required" : "" %>
<%= h option.desc %> (type: <%= h option.type %>) <%= draw_option('popt_'+h(name), option) %>

<%= submit_tag "Launch Exploit" %>
ADVANCED OPTIONS
<%= h name %> <%= (option.required?) ? "Required" : "" %>
<%= h option.desc %> (type: <%= h option.type %>) <%= draw_option('eopt_'+h(name), option) %>
<%= h name %> <%= (option.required?) ? "Required" : "" %>
<%= h option.desc %> (type: <%= h option.type %>) <%= draw_option('popt_'+h(name), option) %>

<%= submit_tag "Launch Exploit" %>
EVASION OPTIONS
<%= name %> <%= (option.required?) ? "Required" : "" %>
<%= h option.desc %> (type: <%= h option.type %>) <%= draw_option('eopt_'+h(name), option) %>
<%= h name %> <%= (option.required?) ? "Required" : "" %>
<%= html_escape(option.desc) %> (type: <%= option.type %>) <%= draw_option('popt_'+h(name), option) %>

<%= submit_tag "Launch Exploit" %>