Fixed bug that was preventing dynamic payload options to be set with metasploit modules.
This commit is contained in:
@@ -108,11 +108,11 @@ function generate_form_input_field(form, input, value, disabled, zombie) {
|
|||||||
};
|
};
|
||||||
|
|
||||||
function get_dynamic_payload_details(payload, 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({
|
Ext.Ajax.request({
|
||||||
loadMask: true,
|
loadMask: true,
|
||||||
url: '/<%= @base_path %>/modules/select/commandmodule.json',
|
url: '<%= @base_path %>/modules/select/commandmodule.json',
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
params: 'command_module_id=' + modid + '&' + 'payload_name=' + payload,
|
params: 'command_module_id=' + modid + '&' + 'payload_name=' + payload,
|
||||||
success: function(resp) {
|
success: function(resp) {
|
||||||
var module = Ext.decode(resp.responseText);
|
var module = Ext.decode(resp.responseText);
|
||||||
|
|||||||
Reference in New Issue
Block a user