config step done
git-svn-id: file:///home/svn/framework3/trunk@4225 4d416f70-5f16-0410-b530-b9f4589650daunstable
parent
e9aa0d549e
commit
0066121a0a
|
@ -28,7 +28,10 @@
|
||||||
<p>Exploit and payload configuration:</p>
|
<p>Exploit and payload configuration:</p>
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
<th colspan="2">CURRENT CONFIGURATION</th>
|
<th colspan="2" class="moduleOptionsHeader">
|
||||||
|
CURRENT CONFIGURATION -
|
||||||
|
<%= link_to "change", :action => "exploit", :refname => h(params[:refname]) %>
|
||||||
|
</th>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>Target:</td>
|
<td>Target:</td>
|
||||||
|
@ -42,9 +45,13 @@
|
||||||
<td>Payload:</td>
|
<td>Payload:</td>
|
||||||
<td><%= @payload[0] %></td>
|
<td><%= @payload[0] %></td>
|
||||||
<tr>
|
<tr>
|
||||||
|
<tr>
|
||||||
|
<td>Payload bad characters:</td>
|
||||||
|
<td><%= Rex::Text::to_hex(@tmod.payload_badchars) %></td>
|
||||||
|
<tr>
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
<th colspan="2">OPTIONS</th>
|
<th colspan="2" class="moduleOptionsHeader">OPTIONS</th>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
<form action="/exploits/exploit" method="post">
|
<form action="/exploits/exploit" method="post">
|
||||||
|
@ -52,8 +59,48 @@
|
||||||
<%= hidden_field_tag "step", "ready" %>
|
<%= hidden_field_tag "step", "ready" %>
|
||||||
<%= hidden_field_tag "target", h(params[:target]) %>
|
<%= hidden_field_tag "target", h(params[:target]) %>
|
||||||
<%= hidden_field_tag "payload", h(params[:payload]) %>
|
<%= hidden_field_tag "payload", h(params[:payload]) %>
|
||||||
|
|
||||||
|
<% @tmod.options.each { |name, option|
|
||||||
|
next if (option.advanced?)
|
||||||
|
next if (option.evasion?) %>
|
||||||
|
<tr>
|
||||||
|
<td><strong><%= name %></strong></td>
|
||||||
|
<td><strong><%= (option.required?) ? "Required" : "Optional" %></strong></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td><%= html_escape(option.desc) %> (type: <%= option.type %>)</td>
|
||||||
|
<td>
|
||||||
|
<input type="text" name="eopt_<%= h(name) %>" value="<%= h(option.default || '') %>" />
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<% } %>
|
||||||
|
<% @payload[1].new.options.each { |name, option|
|
||||||
|
next if (option.advanced?)
|
||||||
|
next if (option.evasion?) %>
|
||||||
|
<tr>
|
||||||
|
<td><strong><%= name %></strong></td>
|
||||||
|
<td><strong><%= (option.required?) ? "Required" : "Optional" %></strong></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td><%= html_escape(option.desc) %> (type: <%= option.type %>)</td>
|
||||||
|
<td>
|
||||||
|
<input type="text" name="popt_<%= h(name) %>" value="<%= h(option.default || '') %>" />
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<% } %>
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
<th colspan="2"><%= submit_tag "Exploit" %></th>
|
||||||
|
</tr>
|
||||||
|
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
|
<% elsif @cur_step == "ready" %>
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
<th colspan="2" class="moduleOptionsHeader">LAUNCHING EXPLOIT</th>
|
||||||
|
</tr>
|
||||||
|
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
</table>
|
</table>
|
||||||
|
|
Loading…
Reference in New Issue