feature: put payload into .rdata option

This commit is contained in:
Dobin
2024-05-09 21:04:37 +01:00
parent 3aa79afd70
commit 900c145557
16 changed files with 178 additions and 78 deletions
+8
View File
@@ -146,6 +146,14 @@
Add missing IAT entries
</label>
</div>
<select class="form-select" name="payload_location" aria-label="PAYLOADLOCATION" onchange="this.form.submit()">
{% for name, value in payload_locations %}
<option value="{{name}}"
{% if value in project.settings.payload_location.value %} selected {% endif %}
>{{value}}</option>
{% endfor %}
</select>
</div>
</div>
+5
View File
@@ -99,6 +99,7 @@ def project(name):
function_invoke_styles = [(color.name, color.value) for color in FunctionInvokeStyle]
decoderstyles = [(color.name, color.value) for color in DecoderStyle]
carrier_invoke_styles = [(color.name, color.value) for color in CarrierInvokeStyle]
payload_locations = [(color.name, color.value) for color in PayloadLocation]
return render_template('project.html',
project_name = name,
@@ -111,6 +112,7 @@ def project(name):
function_invoke_styles=function_invoke_styles,
decoderstyles=decoderstyles,
carrier_invoke_styles=carrier_invoke_styles,
payload_locations=payload_locations,
exports=exports,
log_files=log_files,
@@ -183,6 +185,9 @@ def add_project():
decoder_style = request.form['decoder_style']
settings.decoder_style = DecoderStyle[decoder_style]
payload_location = request.form['payload_location']
settings.payload_location = PayloadLocation[payload_location]
# overwrite project
project = storage.get_project(project_name)
project.settings = settings