Cleaned up the search

git-svn-id: file:///home/svn/framework3/trunk@4032 4d416f70-5f16-0410-b530-b9f4589650da
unstable
HD Moore 2006-10-16 03:44:15 +00:00
parent 7cda7a29ed
commit 18fe74727b
7 changed files with 54 additions and 28 deletions

View File

@ -1,10 +1,12 @@
<div id="module-search-box">
Search auxiliary modules:
<input id="auxiliary_search" name="terms" type="text" size="40" value=""/>
<span>Search</span>
<input id="module_search" name="terms" type="text" size="55" value=""/>
<img alt="Spinner" id="search_spinner" src="/images/spinner.gif" style="display: none;" />
<div id="search_results"></div>
</div>
<script type="text/javascript">
generic_live_search('auxiliary_search', 'auxiliaries', 'search_spinner', 0);
document.getElementById('module_search').focus();
generic_live_search('module_search', 'auxiliaries', 'search_spinner', 0);
</script>

View File

@ -1,10 +1,12 @@
<div id="module-search-box">
Search encoder modules:
<input id="encoder_search" name="terms" type="text" size="40" value=""/>
<span>Search</span>
<input id="module_search" name="terms" type="text" size="55" value=""/>
<img alt="Spinner" id="search_spinner" src="/images/spinner.gif" style="display: none;" />
<div id="search_results"></div>
</div>
<script type="text/javascript">
generic_live_search('encoder_search', 'encoders', 'search_spinner', 0);
document.getElementById('module_search').focus();
generic_live_search('module_search', 'encoders', 'search_spinner', 0);
</script>

View File

@ -1,10 +1,12 @@
<div id="module-search-box">
Search exploit modules:
<input id="exploit_search" name="terms" type="text" size="40" value=""/>
<span>Search</span>
<input id="module_search" name="terms" type="text" size="55" value=""/>
<img alt="Spinner" id="search_spinner" src="/images/spinner.gif" style="display: none;" />
<div id="search_results"></div>
</div>
<script type="text/javascript">
generic_live_search('exploit_search', 'exploits', 'search_spinner', 0);
document.getElementById('module_search').focus();
generic_live_search('module_search', 'exploits', 'search_spinner', 0);
</script>

View File

@ -1,10 +1,12 @@
<div id="module-search-box">
Search NOP (No-Op) modules:
<input id="nop_search" name="terms" type="text" size="40" value=""/>
<span>Search</span>
<input id="module_search" name="terms" type="text" size="55" value=""/>
<img alt="Spinner" id="search_spinner" src="/images/spinner.gif" style="display: none;" />
<div id="search_results"></div>
</div>
<script type="text/javascript">
generic_live_search('nop_search', 'nops', 'search_spinner', 0);
document.getElementById('module_search').focus();
generic_live_search('module_search', 'nops', 'search_spinner', 0);
</script>

View File

@ -1,10 +1,12 @@
<div id="module-search-box">
Search payload modules:
<input id="payload_search" name="terms" type="text" size="40" value=""/>
<span>Search</span>
<input id="module_search" name="terms" type="text" size="55" value=""/>
<img alt="Spinner" id="search_spinner" src="/images/spinner.gif" style="display: none;" />
<div id="search_results"></div>
</div>
<script type="text/javascript">
generic_live_search('payload_search', 'payloads', 'search_spinner', 0);
document.getElementById('module_search').focus();
generic_live_search('module_search', 'payloads', 'search_spinner', 0);
</script>

View File

@ -60,14 +60,30 @@ table .itemDescription:hover {
color: #000;
}
#module-search-box span {
font-variant: small-caps;
font-weight: bold;
font-size: 18px;
text-align: center;
color: #444444;
padding-left: 25px;
}
#module-search-box input {
/*
background-image: url(/images/zoom.png);
background-position: 5px;
background-repeat: no-repeat;
padding-left: 2em;
height: 18px;
*/
padding: 2px 2px 2px 6px;
border: 1px solid #444;
margin-bottom: 0.2em;
background: #eeeeee;
}
#search_results {
padding-top: 1em;
}
table.moduleInfo tr td {