diff --git a/app/templates/project.html b/app/templates/project.html index 2288fba..e826ea3 100644 --- a/app/templates/project.html +++ b/app/templates/project.html @@ -9,27 +9,20 @@

{{project_name}}

-
- +
- - - -
- -
-
+ {% if is_built %}
@@ -50,10 +43,15 @@
+ {% endif %}
+ +
+ + {% endfor %} -
+
@@ -123,14 +121,15 @@ {% endfor %}
-
+
+ {{ project_dir }}
-
+
diff --git a/app/views_project.py b/app/views_project.py index 3e9bdf5..67660e9 100644 --- a/app/views_project.py +++ b/app/views_project.py @@ -41,6 +41,15 @@ def project(name): project = storage.get_project(name) if project == None: return redirect("/projects", code=302) + + exe_path = project.settings.inject_exe_out + is_built = False + if os.path.exists(exe_path): + is_built = True + + project_dir = os.path.dirname(os.path.abspath(project.settings.inject_exe_out)) + + log_files = get_logfiles(project.settings.main_dir) exes = [] @@ -60,6 +69,8 @@ def project(name): return render_template('project.html', project_name = name, project=project, + is_built=is_built, + project_dir=project_dir, exes=exes, shellcodes=shellcodes,