feature: better exe view

This commit is contained in:
Dobin Rutishauser
2025-06-20 10:17:56 +02:00
parent 7eefe7c444
commit 7f48b293da
6 changed files with 38 additions and 45 deletions
+15 -9
View File
@@ -9,18 +9,25 @@
<div class="indent">
<div class="row">
<h2>Sections</h2>
<h1>Injectable: {{superpe.filepath}}</h1>
<div class="col-6">
{% if iat|length > 0 %}
<h2> IAT Imports DLLs</h2>
<ul>
{% for dll_resolve in resolved_dlls %}
<li> {{ dll_resolve.dllname }}: {{ dll_resolve.cdll_res }} : {{ dll_resolve.path_res }}</li>
{% endfor%}
</ul>
<table>
<tr>
<th>Import</th>
<th>available</th>
<th>location</th>
</tr>
{% for dll_resolve in resolved_dlls %}
<tr>
<td>{{dll_resolve.dllname}}</td>
<td>{{dll_resolve.cdll_res}}</td>
<td>{{dll_resolve.path_res}}</td>
</tr>
{% endfor %}
</table>
<h2> IAT Imports functions</h2>
{% for dll in iat %}
@@ -30,7 +37,6 @@
{% endfor%}
</ul>
{% endfor %}
{% endif %}
</div>
+18 -29
View File
@@ -8,35 +8,24 @@
<div class="indent">
<h1> Exes </h1>
Injectables in <code>data/binary/exes</code>
<table class="table">
<tr>
<th>Exe</th>
<th>Sections</th>
</tr>
{% for exe in exes %}
<tr>
<td><a href="/exes/{{exe['name']}}">{{exe['name']}}</a></td>
<td>
<table class="table">
<tr>
<th>name</th>
<th>raw size</th>
<th>virt size</th>
<th> diff </th>
</tr>
{% for section in exe['sections'] %}
<tr>
<td>{{section['name']}}</td>
<td>{{section['raw_size']}}</td>
<td>{{section['virt_size']}}</td>
<td>{{section['raw_size'] - section['virt_size']}}</td>
</tr>
{% endfor %}
</table>
</td>
</tr>
{% endfor %}
{% for exe in exes %}
<h3>{{exe['name']}}</h3>
<a href="/exes/{{exe['name']}}">More details</a>
<table class="table">
<tr>
<th>name</th>
<th>raw size</th>
</tr>
{% for section in exe['sections'] %}
<tr>
<td>{{section['name']}}</td>
<td>{{section['raw_size']}}</td>
</tr>
{% endfor %}
</table>
{% endfor %}
</table>
+1 -5
View File
@@ -24,11 +24,7 @@
</li>
<li class="nav-item">
<a class="nav-link {{ 'active' if request.path == '/exes' else '' }}"
href="/exes">EXEs</a>
</li>
<li class="nav-item">
<a class="nav-link {{ 'active' if request.path == '/exes' else '' }}"
href="/shellcodes">Shellcodes</a>
href="/exes">Injectables</a>
</li>
</ul>
</div>