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
+3
View File
@@ -43,6 +43,9 @@
margin-top: 1.0em;
margin-left: 1em;
}
.indent h2 {
margin-top: 0.7em;
}
.indent h3 {
margin-top: 0.7em;
}
+14 -8
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>
<table>
<tr>
<th>Import</th>
<th>available</th>
<th>location</th>
</tr>
{% for dll_resolve in resolved_dlls %}
<li> {{ dll_resolve.dllname }}: {{ dll_resolve.cdll_res }} : {{ dll_resolve.path_res }}</li>
{% endfor%}
</ul>
<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>
+4 -15
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>
<h3>{{exe['name']}}</h3>
<a href="/exes/{{exe['name']}}">More details</a>
<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 %}
</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>
-1
View File
@@ -20,7 +20,6 @@ def index():
@views.route("/exes/<exe_name>")
def exe_view(exe_name):
# TODO
filepath = "{}{}".format(PATH_EXES, exe_name)
if not os.path.exists(filepath):
filepath = "{}{}".format(PATH_EXES_MORE, exe_name)
+1 -1
View File
@@ -45,7 +45,7 @@ def projects_route():
def project(name):
project_setting = storage.get_project_setting(name)
if project_setting == None:
logger.error("Project {} not found".format(name))<<<<<
logger.error("Project {} not found".format(name))
return redirect("/projects", code=302)
project_setting.print()