mirror of
https://github.com/dobin/SuperMega
synced 2026-06-02 17:27:10 +00:00
feature: better exe view
This commit is contained in:
@@ -43,6 +43,9 @@
|
|||||||
margin-top: 1.0em;
|
margin-top: 1.0em;
|
||||||
margin-left: 1em;
|
margin-left: 1em;
|
||||||
}
|
}
|
||||||
|
.indent h2 {
|
||||||
|
margin-top: 0.7em;
|
||||||
|
}
|
||||||
.indent h3 {
|
.indent h3 {
|
||||||
margin-top: 0.7em;
|
margin-top: 0.7em;
|
||||||
}
|
}
|
||||||
|
|||||||
+15
-9
@@ -9,18 +9,25 @@
|
|||||||
<div class="indent">
|
<div class="indent">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
|
|
||||||
<h2>Sections</h2>
|
<h1>Injectable: {{superpe.filepath}}</h1>
|
||||||
|
|
||||||
|
|
||||||
<div class="col-6">
|
<div class="col-6">
|
||||||
{% if iat|length > 0 %}
|
|
||||||
|
|
||||||
<h2> IAT Imports DLLs</h2>
|
<h2> IAT Imports DLLs</h2>
|
||||||
<ul>
|
<table>
|
||||||
{% for dll_resolve in resolved_dlls %}
|
<tr>
|
||||||
<li> {{ dll_resolve.dllname }}: {{ dll_resolve.cdll_res }} : {{ dll_resolve.path_res }}</li>
|
<th>Import</th>
|
||||||
{% endfor%}
|
<th>available</th>
|
||||||
</ul>
|
<th>location</th>
|
||||||
|
</tr>
|
||||||
|
{% for dll_resolve in resolved_dlls %}
|
||||||
|
<tr>
|
||||||
|
<td>{{dll_resolve.dllname}}</td>
|
||||||
|
<td>{{dll_resolve.cdll_res}}</td>
|
||||||
|
<td>{{dll_resolve.path_res}}</td>
|
||||||
|
</tr>
|
||||||
|
{% endfor %}
|
||||||
|
</table>
|
||||||
|
|
||||||
<h2> IAT Imports functions</h2>
|
<h2> IAT Imports functions</h2>
|
||||||
{% for dll in iat %}
|
{% for dll in iat %}
|
||||||
@@ -30,7 +37,6 @@
|
|||||||
{% endfor%}
|
{% endfor%}
|
||||||
</ul>
|
</ul>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% endif %}
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
+18
-29
@@ -8,35 +8,24 @@
|
|||||||
|
|
||||||
<div class="indent">
|
<div class="indent">
|
||||||
|
|
||||||
<h1> Exes </h1>
|
Injectables in <code>data/binary/exes</code>
|
||||||
|
|
||||||
<table class="table">
|
{% for exe in exes %}
|
||||||
<tr>
|
<h3>{{exe['name']}}</h3>
|
||||||
<th>Exe</th>
|
<a href="/exes/{{exe['name']}}">More details</a>
|
||||||
<th>Sections</th>
|
|
||||||
</tr>
|
<table class="table">
|
||||||
{% for exe in exes %}
|
<tr>
|
||||||
<tr>
|
<th>name</th>
|
||||||
<td><a href="/exes/{{exe['name']}}">{{exe['name']}}</a></td>
|
<th>raw size</th>
|
||||||
<td>
|
</tr>
|
||||||
<table class="table">
|
{% for section in exe['sections'] %}
|
||||||
<tr>
|
<tr>
|
||||||
<th>name</th>
|
<td>{{section['name']}}</td>
|
||||||
<th>raw size</th>
|
<td>{{section['raw_size']}}</td>
|
||||||
<th>virt size</th>
|
</tr>
|
||||||
<th> diff </th>
|
{% endfor %}
|
||||||
</tr>
|
</table>
|
||||||
{% for section in exe['sections'] %}
|
{% endfor %}
|
||||||
<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 %}
|
|
||||||
</table>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
{% endfor %}
|
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
|
|||||||
@@ -24,11 +24,7 @@
|
|||||||
</li>
|
</li>
|
||||||
<li class="nav-item">
|
<li class="nav-item">
|
||||||
<a class="nav-link {{ 'active' if request.path == '/exes' else '' }}"
|
<a class="nav-link {{ 'active' if request.path == '/exes' else '' }}"
|
||||||
href="/exes">EXEs</a>
|
href="/exes">Injectables</a>
|
||||||
</li>
|
|
||||||
<li class="nav-item">
|
|
||||||
<a class="nav-link {{ 'active' if request.path == '/exes' else '' }}"
|
|
||||||
href="/shellcodes">Shellcodes</a>
|
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -20,7 +20,6 @@ def index():
|
|||||||
|
|
||||||
@views.route("/exes/<exe_name>")
|
@views.route("/exes/<exe_name>")
|
||||||
def exe_view(exe_name):
|
def exe_view(exe_name):
|
||||||
# TODO
|
|
||||||
filepath = "{}{}".format(PATH_EXES, exe_name)
|
filepath = "{}{}".format(PATH_EXES, exe_name)
|
||||||
if not os.path.exists(filepath):
|
if not os.path.exists(filepath):
|
||||||
filepath = "{}{}".format(PATH_EXES_MORE, exe_name)
|
filepath = "{}{}".format(PATH_EXES_MORE, exe_name)
|
||||||
|
|||||||
@@ -45,7 +45,7 @@ def projects_route():
|
|||||||
def project(name):
|
def project(name):
|
||||||
project_setting = storage.get_project_setting(name)
|
project_setting = storage.get_project_setting(name)
|
||||||
if project_setting == None:
|
if project_setting == None:
|
||||||
logger.error("Project {} not found".format(name))<<<<<
|
logger.error("Project {} not found".format(name))
|
||||||
return redirect("/projects", code=302)
|
return redirect("/projects", code=302)
|
||||||
|
|
||||||
project_setting.print()
|
project_setting.print()
|
||||||
|
|||||||
Reference in New Issue
Block a user