mirror of
https://github.com/dobin/SuperMega
synced 2026-06-02 17:27:10 +00:00
feature: show iat in web ui
This commit is contained in:
@@ -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 %}
|
||||||
|
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
|
||||||
|
<ul>
|
||||||
|
{% for exe in exes %}
|
||||||
|
<li><a href="/exes/{{exe}}">{{exe}}</a></li>
|
||||||
|
{% endfor %}
|
||||||
|
</ul>
|
||||||
@@ -4,6 +4,7 @@ import os
|
|||||||
import logging
|
import logging
|
||||||
from typing import List, Tuple
|
from typing import List, Tuple
|
||||||
|
|
||||||
|
from pe.superpe import SuperPe
|
||||||
from model.defs import *
|
from model.defs import *
|
||||||
|
|
||||||
views = Blueprint('views', __name__)
|
views = Blueprint('views', __name__)
|
||||||
@@ -13,3 +14,19 @@ logger = logging.getLogger("Views")
|
|||||||
@views.route("/")
|
@views.route("/")
|
||||||
def index():
|
def index():
|
||||||
return render_template('index.html')
|
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)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user