mirror of
https://github.com/dobin/SuperMega
synced 2026-06-02 17:27:10 +00:00
feature: MyVirtualProtect
This commit is contained in:
@@ -286,6 +286,23 @@
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group row">
|
||||
<label for="virtualprotect_style" class="col-sm-5 col-form-label">
|
||||
VirtualProtect
|
||||
</label>
|
||||
<div class="col-sm-7">
|
||||
<select class="form-select" name="virtualprotect" id="virtualprotect"
|
||||
aria-label="virtualprotect" onchange="this.form.submit()">
|
||||
{% for name in virtualprotectstyles %}
|
||||
<option value="{{name}}"
|
||||
{% if name in project.settings.plugin_virtualprotect %} selected {% endif %}
|
||||
>{{name}}
|
||||
</option>
|
||||
{% endfor %}
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -105,6 +105,7 @@ def project(name):
|
||||
guardrail_styles = list_files(PATH_GUARDRAILS)
|
||||
antiemulation_styles = list_files(PATH_ANTIEMULATION)
|
||||
decoy_styles = list_files(PATH_DECOY)
|
||||
virtualprotect_styles = list_files(PATH_VIRTUALPROTECT)
|
||||
|
||||
return render_template('project.html',
|
||||
project_name = name,
|
||||
@@ -136,6 +137,7 @@ def project(name):
|
||||
guardrailstyles = guardrail_styles,
|
||||
antiemulationstyles = antiemulation_styles,
|
||||
decoystyles = decoy_styles,
|
||||
virtualprotectstyles = virtualprotect_styles
|
||||
)
|
||||
|
||||
|
||||
@@ -216,6 +218,7 @@ def add_project():
|
||||
settings.payload_location = PayloadLocation[payload_location]
|
||||
|
||||
settings.plugin_guardrail_data = request.form.get('guardrail_data', '')
|
||||
settings.plugin_virtualprotect = request.form.get('virtualprotect')
|
||||
|
||||
# overwrite project
|
||||
project = storage.get_project(project_name)
|
||||
|
||||
Reference in New Issue
Block a user