feature: nicer ui injectable view

This commit is contained in:
Dobin Rutishauser
2025-06-21 18:54:02 +02:00
parent a782fd0842
commit 2e522de234
2 changed files with 19 additions and 5 deletions
+15 -3
View File
@@ -14,15 +14,27 @@
<h3>{{injectable['name']}}</h3>
<a href="/injectables/{{injectable['name']}}">More details</a>
<ul>
<li>Image base: {{ injectable['superpe'].get_image_base()|hexint }}</li>
<li>Entry point: {{ injectable['superpe'].get_entrypoint()|hexint }}</li>
<li>Code section: {{ injectable['superpe'].get_code_section().Name }}</li>
</ul>
<table class="table">
<tr>
<th>name</th>
<th>raw offset</th>
<th>raw size</th>
<th>RVA</th>
<th>VA</th>
</tr>
{% for section in injectable['sections'] %}
{% for section in injectable['superpe'].pe_sections %}
<tr>
<td>{{section['name']}}</td>
<td>{{section['raw_size']}}</td>
<td>{{section.name}}</td>
<td>{{section.raw_addr}}</td>
<td>{{section.raw_size}}</td>
<td>{{section.virt_addr|hexint}}</td>
<td>{{(section.virt_addr + injectable['superpe'].get_image_base())|hexint}}</td>
</tr>
{% endfor %}
</table>
+4 -2
View File
@@ -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')