fix: make DLL + func + EOP work

This commit is contained in:
Dobin
2024-04-14 11:47:47 +01:00
parent 368b14934d
commit b4671c8690
6 changed files with 141 additions and 59 deletions
+34 -3
View File
@@ -1,12 +1,43 @@
<!DOCTYPE html>
<html>
<head>
{% include 'header.html' %}
</head>
<body>
{% include 'navigation.html' %}
<h1> IAT </h1>
<div class="indent">
<h2> Exports </h2>
<table class="table">
<tr>
<th>Name</th>
<th>Address</th>
<th>Size (Approx)</th>
</tr>
{% for export in exports %}
<tr>
<td>{{export["name"]}}</td>
<td>{{export["addr"] | hexint}}</td>
<td>{{export["size"]}}</td>
</tr>
{% endfor %}
</table>
<h2> IAT </h2>
{% for dll in iat %}
<h2>DLL: {{dll}}</h2>
<h3>DLL: {{dll}}</h3>
<ul>
{% for entry in iat[dll] %}
<li> {{ entry.dll_name }}: {{ entry.func_name }} ({{ entry.iat_vaddr }})</li>
<li> {{ entry.dll_name }}: {{ entry.func_name }} ({{ entry.iat_vaddr | hexint }})</li>
{% endfor%}
</ul>
{% endfor %}
</div>
</body>
</html>
+9 -1
View File
@@ -20,7 +20,11 @@ def index():
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())
return render_template('exe.html',
superpe=superpe,
iat=superpe.get_iat_entries(),
exports=superpe.get_exports_full(),
)
@views.route("/exes")
@@ -30,3 +34,7 @@ def exes_view():
exes.append(file)
return render_template('exes.html', exes=exes)
@views.app_template_filter('hexint')
def hex_filter(s):
return hex(s)