ui: update

This commit is contained in:
Dobin
2024-04-29 19:03:17 +01:00
parent 23bb16d172
commit 58045529d2
2 changed files with 6 additions and 8 deletions
+5 -7
View File
@@ -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 %}
+1 -1
View File
@@ -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()