mirror of
https://github.com/dobin/SuperMega
synced 2026-06-02 17:27:10 +00:00
feature: nicer ui injectable view
This commit is contained in:
@@ -14,15 +14,27 @@
|
|||||||
<h3>{{injectable['name']}}</h3>
|
<h3>{{injectable['name']}}</h3>
|
||||||
<a href="/injectables/{{injectable['name']}}">More details</a>
|
<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">
|
<table class="table">
|
||||||
<tr>
|
<tr>
|
||||||
<th>name</th>
|
<th>name</th>
|
||||||
|
<th>raw offset</th>
|
||||||
<th>raw size</th>
|
<th>raw size</th>
|
||||||
|
<th>RVA</th>
|
||||||
|
<th>VA</th>
|
||||||
</tr>
|
</tr>
|
||||||
{% for section in injectable['sections'] %}
|
{% for section in injectable['superpe'].pe_sections %}
|
||||||
<tr>
|
<tr>
|
||||||
<td>{{section['name']}}</td>
|
<td>{{section.name}}</td>
|
||||||
<td>{{section['raw_size']}}</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>
|
</tr>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</table>
|
</table>
|
||||||
|
|||||||
+4
-2
@@ -48,11 +48,13 @@ def injectables_view():
|
|||||||
'name': file,
|
'name': file,
|
||||||
#'exports': superpe.get_exports_full(),
|
#'exports': superpe.get_exports_full(),
|
||||||
#'iat': superpe.get_iat_entries(),
|
#'iat': superpe.get_iat_entries(),
|
||||||
'sections': superpe.pe_sections,
|
'superpe': superpe,
|
||||||
|
#'sections': superpe.pe_sections,
|
||||||
}
|
}
|
||||||
injectables.append(e)
|
injectables.append(e)
|
||||||
#break
|
#break
|
||||||
return render_template('injectables.html', injectables=injectables)
|
return render_template('injectables.html',
|
||||||
|
injectables=injectables)
|
||||||
|
|
||||||
|
|
||||||
@views.app_template_filter('hexint')
|
@views.app_template_filter('hexint')
|
||||||
|
|||||||
Reference in New Issue
Block a user