mirror of
https://github.com/dobin/SuperMega
synced 2026-06-03 01:27:11 +00:00
feature: ui: sections in exes/
This commit is contained in:
+39
-3
@@ -1,6 +1,42 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
{% include 'header.html' %}
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
{% include 'navigation.html' %}
|
||||||
|
|
||||||
<ul>
|
<div class="indent">
|
||||||
|
|
||||||
|
<h1> Exes </h1>
|
||||||
|
|
||||||
|
<table class="table">
|
||||||
|
<tr>
|
||||||
|
<th>Exe</th>
|
||||||
|
<th>Sections</th>
|
||||||
|
</tr>
|
||||||
{% for exe in exes %}
|
{% for exe in exes %}
|
||||||
<li><a href="/exes/{{exe}}">{{exe}}</a></li>
|
<tr>
|
||||||
|
<td><a href="/exes/{{exe['name']}}">{{exe['name']}}</a></td>
|
||||||
|
<td>
|
||||||
|
<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 %}
|
{% endfor %}
|
||||||
</ul>
|
</table>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
{% endfor %}
|
||||||
|
</table>
|
||||||
|
|
||||||
|
|||||||
+15
-1
@@ -31,7 +31,21 @@ def exe_view(exe_name):
|
|||||||
def exes_view():
|
def exes_view():
|
||||||
exes = []
|
exes = []
|
||||||
for file in os.listdir(PATH_EXES):
|
for file in os.listdir(PATH_EXES):
|
||||||
exes.append(file)
|
if not file.endswith(".dll") and not file.endswith(".exe"):
|
||||||
|
continue
|
||||||
|
if '.verify' in file or '.test' in file:
|
||||||
|
continue
|
||||||
|
|
||||||
|
superpe = SuperPe("{}/{}".format(PATH_EXES, file))
|
||||||
|
|
||||||
|
e = {
|
||||||
|
'name': file,
|
||||||
|
#'exports': superpe.get_exports_full(),
|
||||||
|
#'iat': superpe.get_iat_entries(),
|
||||||
|
'sections': superpe.pe_sections,
|
||||||
|
}
|
||||||
|
exes.append(e)
|
||||||
|
#break
|
||||||
return render_template('exes.html', exes=exes)
|
return render_template('exes.html', exes=exes)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user