Added mockup for the payload generation controls, needs polishing and custom style with table layout. To be done tomorrow, among other things.

git-svn-id: file:///home/svn/framework3/trunk@4001 4d416f70-5f16-0410-b530-b9f4589650da
unstable
lmh 2006-10-01 20:41:39 +00:00
parent 070f9af55f
commit 0e1de7b9ab
1 changed files with 34 additions and 0 deletions

View File

@ -46,4 +46,38 @@
</tr>
</div>
<%= start_form_tag %>
<% @tmod.options.each { |name, option|
next if (option.advanced?)
next if (option.evasion?) %>
<%= name %>
<%= (option.required?) ? "Required" : "Optional" %>
<%= option.type %>
<input type='text' name="opt_<%= html_escape(name) %>" value="<%= html_escape(option.default || '') %>"/>
<%= html_escape(option.desc) %>
<% } %>
Max Size:
<input type="text" name="max_size" size="10"/>
Restricted Characters (format: 0x00 0x01):
<input type="text" name='badchars' size='45' value='0x00 '/>
Selected Encoder:<br/>
<select name="encoder" size='1'>
<option value='__default'>Default
<% @tmod.compatible_encoders.each { |encname, mod| %>
<option><%= encname %>
<% } %>
</select>
Format:<br/>
<select name='format' size='1'>
<option value='c'>C
<option value='ruby'>Ruby
<option value='perl'>Perl
<option value='raw'>Raw
</select>
<%= submit_tag %>
<%= end_form_tag %>
</table>