-
Notifications
You must be signed in to change notification settings - Fork 92
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
targetpayloads inconsistency ? #30
Comments
Hi, def payloads(self):
"""
A list of compatible payloads.
"""
# return self.rpc.call(MsfRpcMethod.ModuleCompatiblePayloads, self.modulename)['payloads']
return self.targetpayloads(self.target) def targetpayloads(self, t=0):
"""
Returns a list of compatible payloads for a given target ID.
Optional Keyword Arguments:
- t : the target ID (default: 0, e.g. 'Automatic')
"""
return self.rpc.call(MsfRpcMethod.ModuleTargetCompatiblePayloads, [self.modulename, t])['payloads'] So you're getting payloads for target 0, but your current target is 1.
You are getting the error because you're targeting a Unix In-memory exploit using a Linux Dropper payload
|
Hey,
first of all thats a great tool really appreciate the work.
i've encountered a problem where in module 'linux/http/axis_srv_parhand_rce' when i choose one of the payloads that are returned from the function exploit.targetpayloads() i receive an exception stating that 'Invalid payload (cmd/unix/bind_netcat_gaping) for given target (1).'
i can see that it checks against self.payloads which is calling targetpayloads(self.target),
im pretty new with that library so i dont know what target is for but i assume that instead of using exploit.targetpayloads() i should use exploit.payloads? although the documentation talks about targetpayloads() and not about the property payloads
thank you.
The text was updated successfully, but these errors were encountered: