From 7f48b293da8f0e166f45eefe17766c0f4b5e846a Mon Sep 17 00:00:00 2001 From: Dobin Rutishauser Date: Fri, 20 Jun 2025 10:17:56 +0200 Subject: [PATCH] feature: better exe view --- app/static/styles.css | 3 +++ app/templates/exe.html | 24 +++++++++++------- app/templates/exes.html | 47 ++++++++++++++--------------------- app/templates/navigation.html | 6 +---- app/views.py | 1 - app/views_project.py | 2 +- 6 files changed, 38 insertions(+), 45 deletions(-) diff --git a/app/static/styles.css b/app/static/styles.css index bbfa829..b47ff3e 100644 --- a/app/static/styles.css +++ b/app/static/styles.css @@ -43,6 +43,9 @@ margin-top: 1.0em; margin-left: 1em; } + .indent h2 { + margin-top: 0.7em; + } .indent h3 { margin-top: 0.7em; } diff --git a/app/templates/exe.html b/app/templates/exe.html index 65d5979..efb6bd0 100644 --- a/app/templates/exe.html +++ b/app/templates/exe.html @@ -9,18 +9,25 @@
-

Sections

+

Injectable: {{superpe.filepath}}

- {% if iat|length > 0 %} -

IAT Imports DLLs

-
    - {% for dll_resolve in resolved_dlls %} -
  • {{ dll_resolve.dllname }}: {{ dll_resolve.cdll_res }} : {{ dll_resolve.path_res }}
  • - {% endfor%} -
+ + + + + + + {% for dll_resolve in resolved_dlls %} + + + + + + {% endfor %} +
Importavailablelocation
{{dll_resolve.dllname}}{{dll_resolve.cdll_res}}{{dll_resolve.path_res}}

IAT Imports functions

{% for dll in iat %} @@ -30,7 +37,6 @@ {% endfor%} {% endfor %} - {% endif %}
diff --git a/app/templates/exes.html b/app/templates/exes.html index c9337f3..e5c8dda 100644 --- a/app/templates/exes.html +++ b/app/templates/exes.html @@ -8,35 +8,24 @@
-

Exes

+ Injectables in data/binary/exes - - - - - - {% for exe in exes %} - - - - - {% endfor %} + {% for exe in exes %} +

{{exe['name']}}

+ More details + +
ExeSections
{{exe['name']}} - - - - - - - - {% for section in exe['sections'] %} - - - - - - - {% endfor %} -
nameraw sizevirt size diff
{{section['name']}}{{section['raw_size']}}{{section['virt_size']}}{{section['raw_size'] - section['virt_size']}}
-
+ + + + + {% for section in exe['sections'] %} + + + + + {% endfor %} +
nameraw size
{{section['name']}}{{section['raw_size']}}
+ {% endfor %} diff --git a/app/templates/navigation.html b/app/templates/navigation.html index 805df66..b369f30 100644 --- a/app/templates/navigation.html +++ b/app/templates/navigation.html @@ -24,11 +24,7 @@ -
diff --git a/app/views.py b/app/views.py index 13488eb..560c8eb 100644 --- a/app/views.py +++ b/app/views.py @@ -20,7 +20,6 @@ def index(): @views.route("/exes/") 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) diff --git a/app/views_project.py b/app/views_project.py index 0366dfa..cffc16d 100644 --- a/app/views_project.py +++ b/app/views_project.py @@ -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()