feature: show iat in web ui

This commit is contained in:
Dobin
2024-04-03 19:22:48 +01:00
parent 7bc03fa6c2
commit de73d5452e
3 changed files with 35 additions and 0 deletions
+12
View File
@@ -0,0 +1,12 @@
<h1> IAT </h1>
{% for dll in iat %}
<h2>DLL: {{dll}}</h2>
<ul>
{% for entry in iat[dll] %}
<li> {{ entry.dll_name }}: {{ entry.func_name }} ({{ entry.iat_vaddr }})</li>
{% endfor%}
</ul>
{% endfor %}
+6
View File
@@ -0,0 +1,6 @@
<ul>
{% for exe in exes %}
<li><a href="/exes/{{exe}}">{{exe}}</a></li>
{% endfor %}
</ul>
+17
View File
@@ -4,6 +4,7 @@ import os
import logging
from typing import List, Tuple
from pe.superpe import SuperPe
from model.defs import *
views = Blueprint('views', __name__)
@@ -13,3 +14,19 @@ logger = logging.getLogger("Views")
@views.route("/")
def index():
return render_template('index.html')
@views.route("/exes/<exe_name>")
def exe_view(exe_name):
path = "{}/{}".format(PATH_EXES, exe_name)
superpe = SuperPe(path)
return render_template('exe.html', superpe=superpe, iat=superpe.get_iat_entries())
@views.route("/exes")
def exes_view():
exes = []
for file in os.listdir(PATH_EXES):
exes.append(file)
return render_template('exes.html', exes=exes)