mirror of
https://github.com/dobin/SuperMega
synced 2026-06-02 17:27:10 +00:00
ui: update
This commit is contained in:
@@ -14,21 +14,19 @@
|
||||
<!-- Row 1: Buttons -->
|
||||
<div class="col-1">
|
||||
<div class="row">
|
||||
<div class="col-6">
|
||||
<form method="POST" enctype="multipart/form-data" action="/project/{{project_name}}/exec?no_exec=true">
|
||||
<button class="btn btn-primary" type="submit" value="start">Open Dir</button>
|
||||
</form>
|
||||
|
||||
<form method="POST" enctype="multipart/form-data" action="/project/{{project_name}}/build">
|
||||
<button class="btn btn-primary" type="submit" value="start">Build</button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{% if is_built %}
|
||||
<div class="row">
|
||||
<form method="POST" enctype="multipart/form-data" action="/project/{{project_name}}/exec">
|
||||
<button class="btn btn-primary" type="submit" value="start">Start Local</button>
|
||||
</form>
|
||||
|
||||
<form method="POST" enctype="multipart/form-data" action="/project/{{project_name}}/exec?no_exec=true">
|
||||
<button class="btn btn-primary" type="submit" value="start">File Local</button>
|
||||
<button class="btn btn-primary" type="submit" value="start">Start</button>
|
||||
</form>
|
||||
|
||||
{% if has_remote %}
|
||||
|
||||
@@ -69,7 +69,7 @@ def project(name):
|
||||
payload_len = os.path.getsize(project.settings.payload_path)
|
||||
|
||||
# when we selected an input file
|
||||
if project.settings.inject_exe_in != "":
|
||||
if project.settings.inject_exe_in != "" and os.path.exists(project.settings.inject_exe_in):
|
||||
superpe = SuperPe(project.settings.inject_exe_in)
|
||||
is_64 = superpe.is_64()
|
||||
is_dotnet = superpe.is_dotnet()
|
||||
|
||||
Reference in New Issue
Block a user