rapid7 / metasploit-payloads

Unified repository for different Metasploit Framework payloads
Other
1.73k stars 669 forks source link

Request: meterpreter python additional command bindings #124

Open s3c opened 8 years ago

s3c commented 8 years ago

Although the python hooks currently support a number of commands, a handful of really useful commands aren't currently supported. The use, upload, download and uuid meterpreter commands come to mind. An example use would be a persistence script, that instead of just using stock methods of persistence, could do things like search for a vulnerable startup method such as a writable path, and upload a bypassed meterpreter dll.

Another would be to automatically start a keyscan and take a screenshot when certain applications were in use. This could be nicely tied in with the AutorunScript command, to automatically capture and report juicy information.

Lastly, with access to the use command a script could first enumerate which applications were installed that had post gather modules, and only these modules could be run to return as much information as possible without having to run each command blindly, or investigating it yourself.

OJ commented 8 years ago

Another set of non-trivial requests! :)

So yeah, use won't happen, and as far as I'm concerned download and upload won't either unless someone gives me a compelling set of reasons to consider it further that outweigh the technical and security concerns.

s3c commented 8 years ago

The security issue is a really good point, and admittedly stems from my reluctance to learn more ruby. This can always be done through other channels, which is what I'm doing now. Workarounds like these are possible for most of the commands, but I was hoping to rely on existing code that's been throughly tested.