-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
New Metasploit#index for the Msf Import Wizard
Presents the current configuration and instructions on how to start pulling data from a remote Metasploit instance. Data loading into the view will be done through Ajax and jQuery.
- Loading branch information
Daniel Martin
committed
Jul 26, 2011
1 parent
18192c7
commit b31c1fc
Showing
1 changed file
with
52 additions
and
0 deletions.
There are no files selected for viewing
52 changes: 52 additions & 0 deletions
52
vendor/plugins/msf_import/app/views/metasploit/index.html.erb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
<% title 'Metasploit Import Wizard' %> | ||
|
||
<p>From this screen you can pick and choose the information you want to import | ||
into your Dradis repository.</p> | ||
<p><%= link_to 'Show current configuration', 'javascript:return null;', :id => 'show-hide-configuration' %> | ||
|
||
<div id="configuration" class="block" style="display: none;"> | ||
<h2>Configuration</h2> | ||
|
||
<table> | ||
<thead> | ||
<tr> | ||
<th>Setting</th> | ||
<th>Value</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
<%- for setting in MsfImport::Configuration.settings -%> | ||
<tr> | ||
<td><%= setting.name %></td> | ||
<td><%= setting.value %></td> | ||
</tr> | ||
<%- end -%> | ||
</tbody> | ||
</table> | ||
|
||
<p><%= link_to 'Edit configuration', configurations_path() %></p> | ||
</div> | ||
|
||
<div id="step_retrieve-hosts" class="block"> | ||
<h2>First step: pull available hosts and services</h2> | ||
<p><%= link_to 'Pull hosts', 'javascript:return null;', :id => 'pull-hosts' %></p> | ||
</div> | ||
|
||
<div id="metasploit-hosts" class="block" style="display: none;"> | ||
<div id="spinner"><%= image_tag 'loading.gif', :width => 16, :height => 16, :alt => 'Ajax loading spinner' %></div> | ||
</div> | ||
|
||
|
||
<script type="text/javascript" charset="utf-8"> | ||
$(function(){ | ||
$('#show-hide-configuration').click(function(){ | ||
$('#configuration').toggle(); | ||
}); | ||
$('#pull-hosts').click(function(){ | ||
$('#metasploit-hosts').show(); | ||
$('#spinner').show(); | ||
$('#flash_error').remove(); | ||
$.getScript( '/metasploit/hosts' ); | ||
}); | ||
}); | ||
</script> |