Skip to content

Commit

Permalink
Merge pull request #741 from ddaniboy/fix-list-scan-front-end
Browse files Browse the repository at this point in the history
Fix list scan feature front-end
  • Loading branch information
six2dez authored Jul 7, 2023
2 parents e826811 + 6f91aa2 commit a7c9bf0
Showing 1 changed file with 18 additions and 45 deletions.
63 changes: 18 additions & 45 deletions web/templates/projects.html
Original file line number Diff line number Diff line change
Expand Up @@ -630,6 +630,7 @@
border-radius: 50%;
background-color: #fff;
}

</style>

{% if messages %} {% for message in messages %}
Expand Down Expand Up @@ -800,8 +801,7 @@ <h3>{{ request.user }}<br /><span>Reconnaissance Ninja</span></h3>

<div class="col-4">
<div class="tab-content" id="pills-tabContent">
<input type="hidden" id="typeDomain" name="typeDomain" value="0">
<div class="tab-pane fade show active" id="pills-single" role="tabpanel">
<div>

<div class="select">

Expand All @@ -825,9 +825,6 @@ <h3>{{ request.user }}<br /><span>Reconnaissance Ninja</span></h3>


</div>
<div class="tab-pane fade" id="pills-list" role="tabpanel">
<textarea class="form-control" name="listDomain" id="listDomain" onkeyup="checkCommand()"></textarea>
</div>
</div>
</div>
<div class="col-3 current-time text-center" id="time-{{ domains.id }}"></div>
Expand Down Expand Up @@ -1100,35 +1097,24 @@ <h6 class="mb-4"><b>TARGET OPTIONS</b></h6>
</li>
</ul>
<div class="tab-content" id="pills-tabContent">
<input type="hidden" id="typeDomain" name="typeDomain" value="0" />
<div
class="tab-pane fade show active"
id="pills-single"
role="tabpanel"
>
<input type="hidden" id="typeDomain" name="typeDomain" value="1" />
<div class="tab-pane show active" id="pills-single" role="tabpanel">
<input
type="text"
name="singleDomain"
class="form-control"
id="singleDomain"
onkeyup="checkCommand()"
placeholder="example.com"
style="display: block;"
/>
</div>
<div
class="tab-pane fade show active"
id="pills-list"
role="tabpanel"
>
<div class="tab-pane" id="pills-list" role="tabpanel">
<textarea
type="text"
name="listDomain"
class="form-control"
name="listDomain"
id="listDomain"
onkeyup="checkCommand()"
placeholder="example.com"
style="display: none;"
placeholder="example.com&#10;example2.com"
></textarea>
</div>
</div>
Expand Down Expand Up @@ -1261,7 +1247,7 @@ <h6 class="mt-4 mb-4"><b>GENERAL OPTIONS</b></h6>
<input
type="text"
class="form-control"
id="showCommand"
id="command"
name="command"
disabled
/>
Expand Down Expand Up @@ -1381,9 +1367,6 @@ <h6 class="mt-4 mb-4"><b>GENERAL OPTIONS</b></h6>
console.log(opt);
}
}
function backup(id){
window.location.href = ("{% url 'projects:index' %}"+id+"/backup");
}

function changeSchedule(id) {
var value = document.getElementById("schedules-existing-" + id).value;
Expand Down Expand Up @@ -1506,7 +1489,7 @@ <h6 class="mt-4 mb-4"><b>GENERAL OPTIONS</b></h6>
document.getElementById("switch-passive").disabled = true;
document.getElementById("switch-web").disabled = true;
document.getElementById("switch-osint").disabled = true;
// checkCommand();
checkCommand();
} else {
document.getElementById("switch-recon").checked = false;
document.getElementById("switch-subdomains").checked = false;
Expand All @@ -1519,16 +1502,10 @@ <h6 class="mt-4 mb-4"><b>GENERAL OPTIONS</b></h6>
document.getElementById("switch-passive").disabled = false;
document.getElementById("switch-web").disabled = false;
document.getElementById("switch-osint").disabled = false;
// checkCommand();
checkCommand();
}
}
function checkCommand() {
// Retrieve the input value
var inputValue = document.getElementById("singleDomain").value;

// Set the input value to the second input field
document.getElementById("showCommand").value = inputValue;
}
// function checkCommand() {
// let command = "./reconftw.sh";

Expand Down Expand Up @@ -1575,19 +1552,15 @@ <h6 class="mt-4 mb-4"><b>GENERAL OPTIONS</b></h6>
// document.getElementById("command").value = command;
// }

// function selectSingle() {
// document.getElementById("typeDomain").value = 0;
// document.getElementById("singleDomain").style.display = 'block';
// document.getElementById("listDomain").style.display = 'block';
// checkCommand();
// }
function selectSingle() {
document.getElementById("pills-single").classList.add("active");
checkCommand();
}

// function selectList() {
// document.getElementById("typeDomain").value = 1;
// document.getElementById("singleDomain").style.display = 'none';
// document.getElementById("listDomain").style.display = 'none';
// checkCommand();
// }
function selectList() {
document.getElementById("pills-list").classList.add("active");
checkCommand();
}

function showLoading() {
$("#modal-loading").modal("show");
Expand Down

0 comments on commit a7c9bf0

Please sign in to comment.