Skip to content

Commit

Permalink
Merge pull request #33 from psyray/feature-enhance-list-ergonomy
Browse files Browse the repository at this point in the history
Feature enhance list ergonomy
  • Loading branch information
AnonymousWP authored Sep 11, 2023
2 parents 79233bf + 3435f28 commit 3b2b210
Show file tree
Hide file tree
Showing 5 changed files with 109 additions and 104 deletions.
8 changes: 4 additions & 4 deletions web/startScan/templates/startScan/detail_scan.html
Original file line number Diff line number Diff line change
Expand Up @@ -1355,9 +1355,9 @@ <h4 class="header-title mb-0"><span id="endpoint_change_count"><span class="spin
"sLengthMenu": "Results : _MENU_",
},
"processing": true,
"dom": "<'row'<'col-lg-12 col-md-12 col-12 mb-2'l>>" +
"dom": "<'dt--top-section'<'row'<'col-12 col-sm-4 d-flex justify-content-sm-start justify-content-center'l><'dt--pages-count col-12 col-sm-4 d-flex justify-content-sm-middle justify-content-center'i><'dt--pagination col-12 col-sm-4 d-flex justify-content-sm-end justify-content-center'p>>>" +
"<'table-responsive'tr>" +
"<'dt--bottom-section d-sm-flex justify-content-sm-between text-center'<'dt--pages-count mb-sm-0 mb-3'i><'dt--pagination'p>>",
"<'dt--bottom-section'<'row'<'col-12 col-sm-4 d-flex justify-content-sm-start justify-content-center'l><'dt--pages-count col-12 col-sm-4 d-flex justify-content-sm-middle justify-content-center'i><'dt--pagination col-12 col-sm-4 d-flex justify-content-sm-end justify-content-center'p>>>",
"stripeClasses": [],
"lengthMenu": [20, 50, 100, 500, 1000],
"pageLength": 100,
Expand Down Expand Up @@ -2264,9 +2264,9 @@ <h4 class="header-title mb-0"><span id="endpoint_change_count"><span class="spin
"targets": 24,
},
],
"dom": "<'row'<'col-lg-12 col-md-12 col-12 mb-2'l>>" +
"dom": "<'dt--top-section'<'row'<'col-12 col-sm-4 d-flex justify-content-sm-start justify-content-center'l><'dt--pages-count col-12 col-sm-4 d-flex justify-content-sm-middle justify-content-center'i><'dt--pagination col-12 col-sm-4 d-flex justify-content-sm-end justify-content-center'p>>>" +
"<'table-responsive'tr>" +
"<'dt--bottom-section d-sm-flex justify-content-sm-between text-center'<'dt--pages-count mb-sm-0 mb-3'i><'dt--pagination'p>>",
"<'dt--bottom-section'<'row'<'col-12 col-sm-4 d-flex justify-content-sm-start justify-content-center'l><'dt--pages-count col-12 col-sm-4 d-flex justify-content-sm-middle justify-content-center'i><'dt--pagination col-12 col-sm-4 d-flex justify-content-sm-end justify-content-center'p>>>",
drawCallback: function () {
$('.badge').tooltip({ template: '<div class="tooltip status" role="tooltip"><div class="arrow"></div><div class="tooltip-inner"></div></div>' })
$('.bs-tooltip').tooltip();
Expand Down
1 change: 1 addition & 0 deletions web/startScan/templates/startScan/subdomains.html
Original file line number Diff line number Diff line change
Expand Up @@ -329,6 +329,7 @@
},
],
"dom": "<'row'<'col-lg-12 col-md-12 col-12 mb-2'l>>" +
"<'dt--top-section d-sm-flex justify-content-sm-between text-center'<'dt--pages-count mb-sm-0 mb-3'i><'dt--pagination'p>>" +
"<'table-responsive'tr>" +
"<'dt--bottom-section d-sm-flex justify-content-sm-between text-center'<'dt--pages-count mb-sm-0 mb-3'i><'dt--pagination'p>>",
drawCallback: function () {
Expand Down
8 changes: 4 additions & 4 deletions web/targetApp/templates/target/summary.html
Original file line number Diff line number Diff line change
Expand Up @@ -1137,9 +1137,9 @@ <h4 class="header-title mb-0"><span id="technologies-count"><span class="spinner
"targets": 24,
},
],
"dom": "<'row'<'col-lg-12 col-md-12 col-12 mb-2'l>>" +
"dom": "<'dt--top-section'<'row'<'col-12 col-sm-4 d-flex justify-content-sm-start justify-content-center'l><'dt--pages-count col-12 col-sm-4 d-flex justify-content-sm-middle justify-content-center'i><'dt--pagination col-12 col-sm-4 d-flex justify-content-sm-end justify-content-center'p>>>" +
"<'table-responsive'tr>" +
"<'dt--bottom-section d-sm-flex justify-content-sm-between text-center'<'dt--pages-count mb-sm-0 mb-3'i><'dt--pagination'p>>",
"<'dt--bottom-section'<'row'<'col-12 col-sm-4 d-flex justify-content-sm-start justify-content-center'l><'dt--pages-count col-12 col-sm-4 d-flex justify-content-sm-middle justify-content-center'i><'dt--pagination col-12 col-sm-4 d-flex justify-content-sm-end justify-content-center'p>>>",
drawCallback: function() {
$('.badge').tooltip({
template: '<div class="tooltip status" role="tooltip"><div class="arrow"></div><div class="tooltip-inner"></div></div>'
Expand Down Expand Up @@ -1325,9 +1325,9 @@ <h4 class="header-title mb-0"><span id="technologies-count"><span class="spinner
"sLengthMenu": "Results : _MENU_",
},
"processing": true,
"dom": "<'row'<'col-lg-12 col-md-12 col-12 mb-2'l>>" +
"dom": "<'dt--top-section'<'row'<'col-12 col-sm-4 d-flex justify-content-sm-start justify-content-center'l><'dt--pages-count col-12 col-sm-4 d-flex justify-content-sm-middle justify-content-center'i><'dt--pagination col-12 col-sm-4 d-flex justify-content-sm-end justify-content-center'p>>>" +
"<'table-responsive'tr>" +
"<'dt--bottom-section d-sm-flex justify-content-sm-between text-center'<'dt--pages-count mb-sm-0 mb-3'i><'dt--pagination'p>>",
"<'dt--bottom-section'<'row'<'col-12 col-sm-4 d-flex justify-content-sm-start justify-content-center'l><'dt--pages-count col-12 col-sm-4 d-flex justify-content-sm-middle justify-content-center'i><'dt--pagination col-12 col-sm-4 d-flex justify-content-sm-end justify-content-center'p>>>",
"stripeClasses": [],
"lengthMenu": [20, 50, 100, 500, 1000],
"pageLength": 100,
Expand Down
100 changes: 4 additions & 96 deletions web/templates/base/_items/subdomain_tab_content.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,102 +20,7 @@
<div class="card">
<div class="card-body">
<div class="row">
<div class="col-6 float-start">
<a class="disabled btn btn-soft-primary ms-2" data-button="subdomain_btns" data-toggle="tooltip" data-placement="top" title="Initiate Multiple Subscans" onclick="initiateMultipleSubscan()">
<i class="fe-zap"></i>
Initiate Subscan
</a>
<a class="disabled btn btn-soft-info" data-button="subdomain_btns" data-toggle="tooltip" data-placement="top" title="Download Selected Subdomains" onclick="downloadSelectedSubdomains('{{history.domain.name}}')">
<i class="fe-download"></i>
Download Selected Subdomains
</a>
<a class="disabled btn btn-soft-danger" data-button="subdomain_btns" data-toggle="tooltip" data-placement="top" title="Delete Multiple Subdomains" onclick="deleteMultipleSubdomains()">
<i class="fe-trash"></i>
Delete Multiple Subdomains
</a>
<div class="ms-2 mt-2" id="">
<a href="#" class="badge badge-soft-primary" id="subdomain_selected_count" onclick="uncheckSubdomains()" data-toggle="tooltip" data-placement="top" title="Clear Subdomains"></a>
</div>
</div>
<div class="col-6">
<div class="btn-group mb-2 float-end dropstart">
<button class="btn btn-soft-primary dropdown-toggle ms-1" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false" data-toggle="tooltip" data-placement="left" title="Filter Columns">
<i class="fe-filter"></i>
</button>
<div class="dropdown-menu" style="">
<div class="dropdown-item">
<div class="form-check">
<input type="checkbox" class="form-check-input" id="sub_http_status_filter_checkbox" name="sub_http_status_filter_checkbox" checked>
<label class="form-check-label" for="http_status_filter_checkbox">HTTP Status</label>
</div>
</div>
<div class="dropdown-item">
<div class="form-check">
<input type="checkbox" class="form-check-input" id="sub_page_title_filter_checkbox" name="sub_page_title_filter_checkbox" checked>
<label class="form-check-label" for="page_title_filter_checkbox">Page Title</label>
</div>
</div>
<div class="dropdown-item">
<div class="form-check">
<input type="checkbox" class="form-check-input" id="sub_ip_filter_checkbox" name="sub_ip_filter_checkbox" checked>
<label class="form-check-label" for="ip_filter_checkbox">IP Address</label>
</div>
</div>
<div class="dropdown-item">
<div class="form-check">
<input type="checkbox" class="form-check-input" id="sub_ports_filter_checkbox" name="sub_ports_filter_checkbox" checked>
<label class="form-check-label" for="ports_filter_checkbox">Ports</label>
</div>
</div>
<div class="dropdown-item">
<div class="form-check">
<input type="checkbox" class="form-check-input" id="sub_content_length_filter_checkbox" name="sub_content_length_filter_checkbox" checked>
<label class="form-check-label" for="content_length_filter_checkbox">Content Length</label>
</div>
</div>
<div class="dropdown-item">
<div class="form-check">
<input type="checkbox" class="form-check-input" id="sub_response_time_filter_checkbox" name="sub_response_time_filter_checkbox" checked>
<label class="form-check-label" for="response_time_filter_checkbox">Response Time</label>
</div>
</div>
<div class="dropdown-item">
<div class="form-check">
<input type="checkbox" class="form-check-input" id="sub_screenshot_filter_checkbox" name="sub_screenshot_filter_checkbox" checked>
<label class="form-check-label" for="sub_screenshot_filter_checkbox">Screenshot</label>
</div>
</div>
</div>

<a class="btn btn-soft-primary ms-2 me-2" data-toggle="tooltip" data-placement="top" title="Reload Subdomains" id="reload_subdomain_table_btn">
<i class="fe-refresh-cw"></i>
</a>

<button class="btn btn-primary dropdown-toggle" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false" data-toggle="tooltip" data-placement="left" title="Download Subdomains">
<i class="fe-download"></i>
</button>
<div class="dropdown-menu" style="">
{% if detail_scan %}
<a class="dropdown-item" href="javascript:download_subdomains(scan_id={{scan_history_id}}, domain_id=null, domain_name='{{history.domain.name}}')">Download All Subdomains</a>
<a class="dropdown-item" href="javascript:download_interesting_subdomains(scan_id={{scan_history_id}}, domain_id=null, domain_name='{{history.domain.name}}');">Download Interesting Subdomains</a>
<a class="dropdown-item" href="javascript:download_important_subdomains(scan_id={{scan_history_id}}, domain_id=null, domain_name='{{history.domain.name}}');">Download Important Subdomains</a>
{% endif %}

{% if target_summary %}
<a class="dropdown-item" href="javascript:download_subdomains(scan_id=null, domain_id={{target.id}}, domain_name='{{target.name}}')">Download All Subdomains</a>
<a class="dropdown-item" href="javascript:download_interesting_subdomains(scan_id=null, domain_id={{target.id}}, domain_name='{{target.name}}');">Download Interesting Subdomains</a>
<a class="dropdown-item" href="javascript:download_important_subdomains(scan_id=null, domain_id={{target.id}}, domain_name='{{target.name}}');">Download Important Subdomains</a>
{% endif %}

{% if all_subdomains %}
<a class="dropdown-item" href="javascript:download_subdomains()">Download All Subdomains</a>
<a class="dropdown-item" href="javascript:download_interesting_subdomains()">Download Interesting Subdomains</a>
<a class="dropdown-item" href="javascript:download_important_subdomains()">Download Important Subdomains</a>
{% endif %}
</div>

</div>
</div>
{% include 'base/_items/subdomain_toolbar.html' %}
</div>
<div class="row mt-1">
<div class="col-12">
Expand Down Expand Up @@ -154,6 +59,9 @@
</table>
</div>
</div>
<div class="row">
{% include 'base/_items/subdomain_toolbar.html' %}
</div>
</div>
</div>
</div>
Expand Down
96 changes: 96 additions & 0 deletions web/templates/base/_items/subdomain_toolbar.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,96 @@
<div class="col-6 float-start">
<a class="disabled btn btn-soft-primary ms-2" data-button="subdomain_btns" data-toggle="tooltip" data-placement="top" title="Initiate Multiple Subscans" onclick="initiateMultipleSubscan()">
<i class="fe-zap"></i>
Initiate Subscan
</a>
<a class="disabled btn btn-soft-info" data-button="subdomain_btns" data-toggle="tooltip" data-placement="top" title="Download Selected Subdomains" onclick="downloadSelectedSubdomains('{{history.domain.name}}')">
<i class="fe-download"></i>
Download Selected Subdomains
</a>
<a class="disabled btn btn-soft-danger" data-button="subdomain_btns" data-toggle="tooltip" data-placement="top" title="Delete Multiple Subdomains" onclick="deleteMultipleSubdomains()">
<i class="fe-trash"></i>
Delete Multiple Subdomains
</a>
<div class="ms-2 mt-2" id="">
<a href="#" class="badge badge-soft-primary" id="subdomain_selected_count" onclick="uncheckSubdomains()" data-toggle="tooltip" data-placement="top" title="Clear Subdomains"></a>
</div>
</div>
<div class="col-6">
<div class="btn-group mb-2 float-end dropstart">
<button class="btn btn-soft-primary dropdown-toggle ms-1" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false" data-toggle="tooltip" data-placement="left" title="Filter Columns">
<i class="fe-filter"></i>
</button>
<div class="dropdown-menu" style="">
<div class="dropdown-item">
<div class="form-check">
<input type="checkbox" class="form-check-input" id="sub_http_status_filter_checkbox" name="sub_http_status_filter_checkbox" checked>
<label class="form-check-label" for="http_status_filter_checkbox">HTTP Status</label>
</div>
</div>
<div class="dropdown-item">
<div class="form-check">
<input type="checkbox" class="form-check-input" id="sub_page_title_filter_checkbox" name="sub_page_title_filter_checkbox" checked>
<label class="form-check-label" for="page_title_filter_checkbox">Page Title</label>
</div>
</div>
<div class="dropdown-item">
<div class="form-check">
<input type="checkbox" class="form-check-input" id="sub_ip_filter_checkbox" name="sub_ip_filter_checkbox" checked>
<label class="form-check-label" for="ip_filter_checkbox">IP Address</label>
</div>
</div>
<div class="dropdown-item">
<div class="form-check">
<input type="checkbox" class="form-check-input" id="sub_ports_filter_checkbox" name="sub_ports_filter_checkbox" checked>
<label class="form-check-label" for="ports_filter_checkbox">Ports</label>
</div>
</div>
<div class="dropdown-item">
<div class="form-check">
<input type="checkbox" class="form-check-input" id="sub_content_length_filter_checkbox" name="sub_content_length_filter_checkbox" checked>
<label class="form-check-label" for="content_length_filter_checkbox">Content Length</label>
</div>
</div>
<div class="dropdown-item">
<div class="form-check">
<input type="checkbox" class="form-check-input" id="sub_response_time_filter_checkbox" name="sub_response_time_filter_checkbox" checked>
<label class="form-check-label" for="response_time_filter_checkbox">Response Time</label>
</div>
</div>
<div class="dropdown-item">
<div class="form-check">
<input type="checkbox" class="form-check-input" id="sub_screenshot_filter_checkbox" name="sub_screenshot_filter_checkbox" checked>
<label class="form-check-label" for="sub_screenshot_filter_checkbox">Screenshot</label>
</div>
</div>
</div>

<a class="btn btn-soft-primary ms-2 me-2" data-toggle="tooltip" data-placement="top" title="Reload Subdomains" id="reload_subdomain_table_btn">
<i class="fe-refresh-cw"></i>
</a>

<button class="btn btn-primary dropdown-toggle" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false" data-toggle="tooltip" data-placement="left" title="Download Subdomains">
<i class="fe-download"></i>
</button>
<div class="dropdown-menu" style="">
{% if detail_scan %}
<a class="dropdown-item" href="javascript:download_subdomains(scan_id={{scan_history_id}}, domain_id=null, domain_name='{{history.domain.name}}')">Download All Subdomains</a>
<a class="dropdown-item" href="javascript:download_interesting_subdomains(scan_id={{scan_history_id}}, domain_id=null, domain_name='{{history.domain.name}}');">Download Interesting Subdomains</a>
<a class="dropdown-item" href="javascript:download_important_subdomains(scan_id={{scan_history_id}}, domain_id=null, domain_name='{{history.domain.name}}');">Download Important Subdomains</a>
{% endif %}

{% if target_summary %}
<a class="dropdown-item" href="javascript:download_subdomains(scan_id=null, domain_id={{target.id}}, domain_name='{{target.name}}')">Download All Subdomains</a>
<a class="dropdown-item" href="javascript:download_interesting_subdomains(scan_id=null, domain_id={{target.id}}, domain_name='{{target.name}}');">Download Interesting Subdomains</a>
<a class="dropdown-item" href="javascript:download_important_subdomains(scan_id=null, domain_id={{target.id}}, domain_name='{{target.name}}');">Download Important Subdomains</a>
{% endif %}

{% if all_subdomains %}
<a class="dropdown-item" href="javascript:download_subdomains()">Download All Subdomains</a>
<a class="dropdown-item" href="javascript:download_interesting_subdomains()">Download Interesting Subdomains</a>
<a class="dropdown-item" href="javascript:download_important_subdomains()">Download Important Subdomains</a>
{% endif %}
</div>

</div>
</div>

0 comments on commit 3b2b210

Please sign in to comment.