Fixed bug that was preventing dynamic payload options to be set with metasploit modules.

This commit is contained in:
antisnatchor
2014-06-25 13:27:07 +02:00
parent 76d750681f
commit 9f76913b11

View File

@@ -108,11 +108,11 @@ function generate_form_input_field(form, input, value, disabled, zombie) {
};
function get_dynamic_payload_details(payload, zombie) {
modid = Ext.getCmp( 'form-zombie-'+zombie.session+'-field-mod_id').value
modid = Ext.getCmp('form-zombie-' + zombie.session + '-field-mod_id').value;
Ext.Ajax.request({
loadMask: true,
url: '/<%= @base_path %>/modules/select/commandmodule.json',
method: 'POST',
url: '<%= @base_path %>/modules/select/commandmodule.json',
method: 'POST',
params: 'command_module_id=' + modid + '&' + 'payload_name=' + payload,
success: function(resp) {
var module = Ext.decode(resp.responseText);