mirror of
https://github.com/dobin/SuperMega
synced 2026-06-02 17:27:10 +00:00
fix: save comment
This commit is contained in:
@@ -14,7 +14,8 @@
|
||||
|
||||
<div class="row">
|
||||
<div class="col-3">
|
||||
<input type="text" name="comment" class="hidden form-control" placeholder="Comment" value="{{project.comment}}"
|
||||
<input type="text" name="comment" class="hidden form-control"
|
||||
placeholder="Comment" value="{{project.comment}}"
|
||||
placeholder="" aria-label="PROJECTNAME" aria-describedby="basic-addon1">
|
||||
|
||||
<select class="form-select" name="shellcode" aria-label="SHELLCODE">
|
||||
|
||||
@@ -78,6 +78,7 @@ def add_project():
|
||||
settings = Settings()
|
||||
|
||||
project_name = request.form['project_name']
|
||||
comment = request.form['comment']
|
||||
|
||||
settings.payload_path = "app/upload/shellcode/" + request.form['shellcode']
|
||||
if request.form['shellcode'] == "createfile.bin":
|
||||
@@ -106,6 +107,7 @@ def add_project():
|
||||
# overwrite project
|
||||
project = storage.get_project(project_name)
|
||||
project.settings = settings
|
||||
project.comment = comment
|
||||
else:
|
||||
# add new project
|
||||
project = Project(project_name, settings)
|
||||
@@ -113,6 +115,7 @@ def add_project():
|
||||
project.project_exe = request.form['exe'].replace(".exe", ".infected.exe")
|
||||
project.settings = settings
|
||||
settings.project_name = project_name
|
||||
project.comment = comment
|
||||
storage.add_project(project)
|
||||
storage.save_data()
|
||||
return redirect("/project/{}".format(project_name), code=302)
|
||||
|
||||
Reference in New Issue
Block a user