You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
when i run this code print(client.consoles.console(cid).run_module_with_output(exploit, payload='cmd/unix/interact'))
i got ValueError: No valid PayloadModule provided for exploit execution.
The reason is that the type of parameter is but in the func it is judged wether it is PayloadModule.
if 'DisablePayloadHandler' in opts and opts['DisablePayloadHandler']:
pass
elif isinstance(payload, PayloadModule):
if payload.modulename not in mod.payloads:
raise ValueError(
'Invalid payload ({}) for given target ({}).'.format(payload.modulename, mod.target))
options_str += 'set payload {}\n'.format(payload.modulename)
for k, v in payload.runoptions.items():
if v is None or (isinstance(v, str) and not v):
continue
options_str += 'set {} {}\n'.format(k, v)
else:
raise ValueError('No valid PayloadModule provided for exploit execution.')
The text was updated successfully, but these errors were encountered:
when i run this code print(client.consoles.console(cid).run_module_with_output(exploit, payload='cmd/unix/interact'))
i got ValueError: No valid PayloadModule provided for exploit execution.
The reason is that the type of parameter is but in the func it is judged wether it is PayloadModule.
if 'DisablePayloadHandler' in opts and opts['DisablePayloadHandler']:
pass
elif isinstance(payload, PayloadModule):
if payload.modulename not in mod.payloads:
raise ValueError(
'Invalid payload ({}) for given target ({}).'.format(payload.modulename, mod.target))
options_str += 'set payload {}\n'.format(payload.modulename)
for k, v in payload.runoptions.items():
if v is None or (isinstance(v, str) and not v):
continue
options_str += 'set {} {}\n'.format(k, v)
else:
raise ValueError('No valid PayloadModule provided for exploit execution.')
The text was updated successfully, but these errors were encountered: