diff --git a/mobsf/templates/dynamic_analysis/ios/dynamic_analyzer.html b/mobsf/templates/dynamic_analysis/ios/dynamic_analyzer.html index 161416861e..5e7794751d 100644 --- a/mobsf/templates/dynamic_analysis/ios/dynamic_analyzer.html +++ b/mobsf/templates/dynamic_analysis/ios/dynamic_analyzer.html @@ -316,7 +316,7 @@

Frida Code Editor

-
+
@@ -447,10 +447,12 @@ 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'); } diff --git a/mobsf/templates/dynamic_analysis/ios/dynamic_report.html b/mobsf/templates/dynamic_analysis/ios/dynamic_report.html index 718a1411bf..182f2e3159 100644 --- a/mobsf/templates/dynamic_analysis/ios/dynamic_report.html +++ b/mobsf/templates/dynamic_analysis/ios/dynamic_report.html @@ -1443,36 +1443,30 @@

// 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(); - } {% endblock %} \ No newline at end of file