<% if flash[:error] and flash[:error].length > 0 %>

<%= flash[:error] %>

<% end %> <% if @step == 1 %>

Step 1: Generic information

<%= start_form_tag %> <%= hidden_field "exploit", "step", :value => 2 %> <%= end_form_tag %>
Name: <%= text_field "exploit", "name" %>
Title: <%= text_field "exploit", "title" %>
Description: <%= text_area "exploit", "description", :cols => 40, :rows => 5 %>
Authors: <%= text_area "exploit", "authors", :cols => 40, :rows => 5 %>
References: <%= text_area "exploit", "references", :cols => 40, :rows => 5 %>
License: <%= select ("exploit", "license", return_selectable_licenses()) %>
<%= submit_tag "Next" %>
<% elsif @step == 2 %>

Step 2: Configure payload

<%= start_form_tag %> <%= hidden_field "exploit", "step", :value => 3 %> <%= end_form_tag %>
Space for payload: <%= text_field "exploit", "payload_space" %>
Bad characters: <%= text_field "exploit", "payload_badchars" %>
Prepend: <%= text_field "exploit", "payload_prepend" %>
Append: <%= text_field "exploit", "payload_append" %>
SaveRegisters: <%= text_field "exploit", "payload_saveregs" %>
Previous <%= submit_tag "Next" %>
<% elsif @step == 3 %>

Step 2: Configure targets

<%= start_form_tag %> <%= hidden_field "exploit", "step", :value => 4 %> <%= end_form_tag %>
SaveRegisters: <%= text_field "exploit", "payload_saveregs" %>
Previous <%= submit_tag "Next" %>
<% end %> <%= link_to "Dump current exploit in YAML", :action => "dump_current", :format => "yaml" %>