Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

payload use problem #61

Open
Chinazfz opened this issue Dec 10, 2020 · 1 comment
Open

payload use problem #61

Chinazfz opened this issue Dec 10, 2020 · 1 comment

Comments

@Chinazfz
Copy link

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.')

@scmanjarrez
Copy link
Contributor

scmanjarrez commented Dec 29, 2020

Are you using pip version? Can you download github version and test again? I remember this error happening, but I think it got fixed in #58

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants