Skip to content

Commit

Permalink
Final QA
Browse files Browse the repository at this point in the history
  • Loading branch information
ajinabraham committed Dec 3, 2023
1 parent ab7bdec commit 63cb781
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 19 deletions.
4 changes: 3 additions & 1 deletion mobsf/templates/dynamic_analysis/ios/dynamic_analyzer.html
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ <h3 class="card-title"><i class="fa fa-code"></i> Frida Code Editor </h3>
<!-- /.card-header -->
<div class="card-body">
<div class="row">
<div class="col-12">
<div class="col-12" id="code-editor">
<textarea id="code-js" rows="100">
// Use send() for logging
</textarea>
Expand Down Expand Up @@ -447,10 +447,12 @@ <h5 class="modal-title" id="exampleModalLabel">Attach to a Running Process</h5>
var appContainerPath;
// Loading Spinner
function dynamic_loader(){
document.getElementById("code-editor").style.visibility = "hidden";
var loadingOverlay = document.querySelector('.loading');
loadingOverlay.classList.remove('hidden');
}
function stop_loader(){
document.getElementById("code-editor").style.visibility = "visible";
var loadingOverlay = document.querySelector('.loading');
loadingOverlay.classList.add('hidden');
}
Expand Down
30 changes: 12 additions & 18 deletions mobsf/templates/dynamic_analysis/ios/dynamic_report.html
Original file line number Diff line number Diff line change
Expand Up @@ -1443,36 +1443,30 @@ <h3 id="cat_title"> </h3>

// Download file
function download_file(path){
// action('{% url 'download_file' %}', {instance_id: '{{ instance_id }}', file: path }, function(json) {
// alert(json);
// });
var form = document.createElement('form');
var element1 = document.createElement('input');
var element2 = document.createElement('input');
var element3 = document.createElement('input');

var form = document.createElement("form");
var element1 = document.createElement("input");
var element2 = document.createElement("input");
var element3 = document.createElement("input");
form.method = 'POST';
form.action = '{% url 'download_file' %}';

form.method = "POST";
form.action = "{% url 'download_file' %}";

element1.value= "{{ instance_id }}";
element1.name="instance_id";
element1.value = '{{ instance_id }}';
element1.name = 'instance_id';
form.appendChild(element1);


element2.value=path;
element2.name="file";
element2.value = path;
element2.name = 'file';
form.appendChild(element2);

element3.value= "{{ csrf_token }}";
element3.name="csrf_token";
element3.value = '{{ csrf_token }}';
element3.name = 'csrf_token';
form.appendChild(element3);

document.body.appendChild(form);

form.submit();
form.remove();

}
</script>
{% endblock %}

0 comments on commit 63cb781

Please sign in to comment.