We recommend using llama2-uncensored model for better results.
diff --git a/web/startScan/static/startScan/js/detail_scan.js b/web/startScan/static/startScan/js/detail_scan.js
index 45ad9f968..492b1f798 100644
--- a/web/startScan/static/startScan/js/detail_scan.js
+++ b/web/startScan/static/startScan/js/detail_scan.js
@@ -864,12 +864,12 @@ function get_dork_details(dork_type, scan_id){
// render tab modal
$('.modal-title').html('Dorking Results in category:
' + dork_type + '');
$('#modal_dialog').modal('show');
- $('.modal-text').empty(); $('#modal-footer').empty();
+ $('.modal-text').empty(); $('#modal_dialog .modal-footer').empty();
$('.modal-text').append(`
`);
$.getJSON(`/api/queryDorks/?scan_id=${scan_id}&type=${dork_type}&format=json`, function(data) {
- $('#modal-loader').empty();
- $('#modal-content').append(`
${data['dorks'].length} results found in this dork category.`);
- $('#modal-content').append(`
`);
+ $('#modal_dialog #modal-loader').empty();
+ $('#modal_dialog .modal-text').append(`
${data['dorks'].length} results found in this dork category.`);
+ $('#modal_dialog .modal-text').append(`
`);
for (dork in data['dorks']){
dork_obj = data['dorks'][dork];
$("#dork-detail-modal-ul").append(`
${dork_obj['description']}`);
@@ -1140,12 +1140,12 @@ $(".add-scan-history-todo").click(function(){
});
-function add_note_for_subdomain(subdomain_id, subdomain_name){
+function add_note_for_subdomain(subdomain_id, subdomain_name, current_project){
$('#todo-modal-subdomain-name').html(subdomain_name);
$("#subdomainTodoTitle").val('');
$("#subdomainTodoDescription").val('');
- $('#add-todo-subdomain-submit-button').attr('onClick', `add_note_for_subdomain_handler(${subdomain_id});`);
+ $('#add-todo-subdomain-submit-button').attr('onClick', `add_note_for_subdomain_handler(${subdomain_id}, '${current_project}');`);
$('#addSubdomainTaskModal').modal('show');
@@ -1153,17 +1153,16 @@ function add_note_for_subdomain(subdomain_id, subdomain_name){
}
-function add_note_for_subdomain_handler(subdomain_id){
+function add_note_for_subdomain_handler(subdomain_id, current_project){
var title = document.getElementById('subdomainTodoTitle').value;
var description = document.getElementById('subdomainTodoDescription').value;
- var project = document.querySelector('input[name="current_project"]').value;
var scan_id = parseInt(document.getElementById('summary_identifier_val').value);
data = {
'title': title,
'description': description,
'subdomain_id': subdomain_id,
- 'project': project,
+ 'project': current_project,
'scan_history_id': scan_id
}
@@ -1216,7 +1215,7 @@ function download_subdomains(scan_id=null, domain_id=null, domain_name=null){
$('.modal-title').html(count + ' Subdomains');
}
- $('.modal-text').empty(); $('#modal-footer').empty();
+ $('.modal-text').empty(); $('#modal_dialog .modal-footer').empty();
$('.modal-text').append(`
`);
// query subdomains
$.getJSON(url, function(data) {
@@ -1224,17 +1223,17 @@ function download_subdomains(scan_id=null, domain_id=null, domain_name=null){
if (data['subdomains'].length) {
$('#modal_dialog').modal('show');
$('.modal_count').html(data['subdomains'].length);
- $('#modal-content').empty();
+ $('#modal_dialog .modal-text').empty();
subdomains = '';
- $('#modal-content').append(`
`);
+ $('#modal_dialog .modal-text').append(`
`);
for (subdomain in data['subdomains']){
subdomain_obj = data['subdomains'][subdomain];
subdomains += subdomain_obj['name'] + '\n'
}
$('#all_subdomains_text_area').append(subdomains);
- $("#modal-footer").empty();
- $("#modal-footer").append(`
Download Subdomains as txt`);
- $("#modal-footer").append(`
Copy Subdomains`);
+ $("#modal_dialog .modal-footer").empty();
+ $("#modal_dialog .modal-footer").append(`
Download Subdomains as txt`);
+ $("#modal_dialog .modal-footer").append(`
Copy Subdomains`);
}
else{
swal.fire("No Subdomains", "Could not find any subdomains.", "warning", {
@@ -1268,23 +1267,23 @@ function download_interesting_subdomains(project, scan_id=null, domain_id=null,
else{
$('.modal-title').html( count + ' Interesting Subdomains');
}
- $('.modal-text').empty(); $('#modal-footer').empty();
+ $('.modal-text').empty(); $('#modal_dialog .modal-footer').empty();
// query subdomains
$.getJSON(url, function(data) {
swal.close()
if (data.length) {
$('#modal_dialog').modal('show');
$('.modal_count').html(data.length);
- $('#modal-content').empty();
+ $('#modal_dialog .modal-text').empty();
subdomains = '';
- $('#modal-content').append(`
`);
+ $('#modal_dialog .modal-text').append(`
`);
for (subdomain in data){
subdomains += data[subdomain]['name'] + '\n'
}
$('#interesting_subdomains_text_area').append(subdomains);
- $("#modal-footer").empty();
- $("#modal-footer").append(`
Download Subdomains as txt`);
- $("#modal-footer").append(`
Copy Subdomains`);
+ $("#modal_dialog .modal-footer").empty();
+ $("#modal_dialog .modal-footer").append(`
Download Subdomains as txt`);
+ $("#modal_dialog .modal-footer").append(`
Copy Subdomains`);
}
else{
swal.fire("No Interesting Subdomains", "Could not find any interesting subdomains.", "warning", {
@@ -1317,23 +1316,23 @@ function download_interesting_endpoints(scan_id, domain_name){
else{
$('.modal-title').html( count + ' Interesting Endpoints');
}
- $('.modal-text').empty(); $('#modal-footer').empty();
+ $('.modal-text').empty(); $('#modal_dialog .modal-footer').empty();
// query subdomains
$.getJSON(url, function(data) {
swal.close();
if (data.length) {
$('#modal_dialog').modal('show');
$('.modal_count').html(data.length);
- $('#modal-content').empty();
+ $('#modal_dialog .modal-text').empty();
endpoints = '';
- $('#modal-content').append(`
`);
+ $('#modal_dialog .modal-text').append(`
`);
for (endpoint in data){
endpoints += data[endpoint]['http_url'] + '\n'
}
$('#interesting_endpoints_text_area').append(endpoints);
- $("#modal-footer").empty();
- $("#modal-footer").append(`
Download Endpoints as txt`);
- $("#modal-footer").append(`
Copy Endpoints`);
+ $("#modal_dialog .modal-footer").empty();
+ $("#modal_dialog .modal-footer").append(`
Download Endpoints as txt`);
+ $("#modal_dialog .modal-footer").append(`
Copy Endpoints`);
}
else{
swal.fire("No Interesting Endpoints", "Could not find any interesting Endpoints.", "warning", {
@@ -1368,24 +1367,24 @@ function download_important_subdomains(scan_id=null, domain_id=null, domain_name
else{
$('.modal-title').html(count + ' Subdomains marked as important');
}
- $('.modal-text').empty(); $('#modal-footer').empty();
+ $('.modal-text').empty(); $('#modal_dialog .modal-footer').empty();
// query subdomains
$.getJSON(url, function(data) {
swal.close();
if (data['subdomains'].length) {
$('#modal_dialog').modal('show');
$('.modal_count').html(data['subdomains'].length);
- $('#modal-content').empty();
+ $('#modal_dialog .modal-text').empty();
subdomains = '';
- $('#modal-content').append(`
`);
+ $('#modal_dialog .modal-text').append(`
`);
for (subdomain in data['subdomains']){
subdomain_obj = data['subdomains'][subdomain];
subdomains += subdomain_obj['name'] + '\n'
}
$('#all_subdomains_text_area').append(subdomains);
- $("#modal-footer").empty();
- $("#modal-footer").append(`
Download Subdomains as txt`);
- $("#modal-footer").append(`
Copy Subdomains`);
+ $("#modal_dialog .modal-footer").empty();
+ $("#modal_dialog .modal-footer").append(`
Download Subdomains as txt`);
+ $("#modal_dialog .modal-footer").append(`
Copy Subdomains`);
}
else{
swal.fire("No Important Endpoints", "No subdomains has been marked as important.", "warning", {
@@ -1425,28 +1424,28 @@ function download_endpoints(scan_id=null, domain_id=null, domain_name='', patter
else{
$('.modal-title').html(count + ' Endpoints');
}
- $('.modal-text').empty(); $('#modal-footer').empty();
+ $('.modal-text').empty(); $('#modal_dialog .modal-footer').empty();
// query subdomains
$.getJSON(url, function(data) {
swal.close();
$('#modal_dialog').modal('show');
$('.modal_count').html(data['endpoints'].length);
- $('#modal-content').empty();
+ $('#modal_dialog .modal-text').empty();
endpoints = '';
- $('#modal-content').append(`
`);
+ $('#modal_dialog .modal-text').append(`
`);
for (endpoint in data['endpoints']){
endpoint_obj = data['endpoints'][endpoint];
endpoints += endpoint_obj['http_url'] + '\n'
}
$('#all_endpoints_text_area').append(endpoints);
- $("#modal-footer").empty();
+ $("#modal_dialog .modal-footer").empty();
if (domain_name) {
- $("#modal-footer").append(`
Download Endpoints as txt`);
+ $("#modal_dialog .modal-footer").append(`
Download Endpoints as txt`);
}
else{
- $("#modal-footer").append(`
Download Endpoints as txt`);
+ $("#modal_dialog .modal-footer").append(`
Download Endpoints as txt`);
}
- $("#modal-footer").append(`
Copy Endpoints`);
+ $("#modal_dialog .modal-footer").append(`
Copy Endpoints`);
}).fail(function(){
});
}
@@ -1600,17 +1599,17 @@ function downloadSelectedSubdomains(domain_name){
if (response['status']) {
$('#modal_dialog').modal('show');
$('.modal_count').html(response['results'].length);
- $('#modal-content').empty();
+ $('#modal_dialog .modal-text').empty();
subdomains = '';
- $('#modal-content').append(`
`);
+ $('#modal_dialog .modal-text').append(`
`);
for (subdomain in response['results']){
subdomain_obj = response['results'][subdomain];
subdomains += subdomain_obj + '\n'
}
$('#selected_subdomains_text_area').append(subdomains);
- $("#modal-footer").empty();
- $("#modal-footer").append(`
Download Subdomains as txt`);
- $("#modal-footer").append(`
Copy Subdomains`);
+ $("#modal_dialog .modal-footer").empty();
+ $("#modal_dialog .modal-footer").append(`
Download Subdomains as txt`);
+ $("#modal_dialog .modal-footer").append(`
Copy Subdomains`);
}
else{
Swal.fire({
@@ -1700,7 +1699,10 @@ function initiateMultipleSubscan(){
}
-function detect_subdomain_cms(http_url, http_status){
+$(document).on('click', '.detect_subdomain_cms_link', function(){
+ var url = $(this).data('cms-url');
+ var http_status = $(this).data('http-status');
+ var cmsDetectorUrl = $(this).data('url');
if (http_status == 0) {
var message = `reNgine has earlier identified that this subdomain did not return any HTTP status and likely the subdomain is not alive. reNgine may not be able to detect any CMS, would you still like to continue?`;
}
@@ -1708,6 +1710,7 @@ function detect_subdomain_cms(http_url, http_status){
var message = `reNgine has earlier identified that this subdomain has HTTP status as ${http_status} and likely that reNgine will not detect any CMS, would you still like to continue?`;
}
+ var cmsDetectorUrl = $(this).data('url');
if (http_status != 200 || http_status == 0) {
Swal.fire({
showCancelButton: true,
@@ -1717,11 +1720,11 @@ function detect_subdomain_cms(http_url, http_status){
confirmButtonText: 'Detect CMS',
}).then((result) => {
if (result.isConfirmed) {
- cms_detector_api_call(http_url);
+ cms_detector_api_call(cmsDetectorUrl, url);
}
});
}
else{
- cms_detector_api_call(http_url);
+ cms_detector_api_call(cmsDetectorUrl,url);
}
-}
+});
diff --git a/web/startScan/templates/startScan/detail_scan.html b/web/startScan/templates/startScan/detail_scan.html
index 136596b68..67d725c50 100644
--- a/web/startScan/templates/startScan/detail_scan.html
+++ b/web/startScan/templates/startScan/detail_scan.html
@@ -2375,11 +2375,11 @@
diff --git a/web/startScan/templates/startScan/subdomains.html b/web/startScan/templates/startScan/subdomains.html
index 31b1c5b08..d764881f3 100644
--- a/web/startScan/templates/startScan/subdomains.html
+++ b/web/startScan/templates/startScan/subdomains.html
@@ -286,11 +286,11 @@
@@ -1925,7 +1925,7 @@ function display_whois_on_modal(response, addTargetUrl, project_slug, show_add_t
`
}
- $('#whoisLookupResultModal #modal-content').append(content);
+ $('#whoisLookupResultModal .modal-body').append(content);
$('[data-toggle="tooltip"]').tooltip();
}
@@ -2211,12 +2211,12 @@ function get_ip_details(endpoint_port_url, endpoint_subdomain_url, ip_address, s
var subdomain_loader = `