From 2e522de2349fe4464c20cb4c8d26f996c695b87c Mon Sep 17 00:00:00 2001 From: Dobin Rutishauser Date: Sat, 21 Jun 2025 18:54:02 +0200 Subject: [PATCH] feature: nicer ui injectable view --- app/templates/injectables.html | 18 +++++++++++++++--- app/views.py | 6 ++++-- 2 files changed, 19 insertions(+), 5 deletions(-) diff --git a/app/templates/injectables.html b/app/templates/injectables.html index 6befd6a..38169cd 100644 --- a/app/templates/injectables.html +++ b/app/templates/injectables.html @@ -14,15 +14,27 @@

{{injectable['name']}}

More details + + + + + - {% for section in injectable['sections'] %} + {% for section in injectable['superpe'].pe_sections %} - - + + + + + {% endfor %}
nameraw offset raw sizeRVAVA
{{section['name']}}{{section['raw_size']}}{{section.name}}{{section.raw_addr}}{{section.raw_size}}{{section.virt_addr|hexint}}{{(section.virt_addr + injectable['superpe'].get_image_base())|hexint}}
diff --git a/app/views.py b/app/views.py index 9804765..95f68d4 100644 --- a/app/views.py +++ b/app/views.py @@ -48,11 +48,13 @@ def injectables_view(): 'name': file, #'exports': superpe.get_exports_full(), #'iat': superpe.get_iat_entries(), - 'sections': superpe.pe_sections, + 'superpe': superpe, + #'sections': superpe.pe_sections, } injectables.append(e) #break - return render_template('injectables.html', injectables=injectables) + return render_template('injectables.html', + injectables=injectables) @views.app_template_filter('hexint')