Post-Exploitation Nirvana
summary
OpenDLP now deploys its Windows agents over existing Meterpreter sessions using Metasploit RPC, avoiding domain creds by shipping a middleware suite: a Perl meter.pl RPC client plus a Metasploit Ruby opdlp.rb post module. Interpreter deployment works but has session-output contention and no native RPC file transfer; the post module creates a private console, base64-encodes file payloads, cleans up services and binaries, supports hundreds of sessions, and in demo runs completes deployments successfully (two targets deployed).
AI-written summary · about
chapters (10)
- 0:00Intro
- 4:36Current Limitations of OpenDLI In order to deploy to multiple systems with a single profile, you must have domain admin credentials or the hash If you don't have domain admin credentials, you need to create a profile for each system with different passwords or hashes (must be a system account due to service interactions)
- 5:53The tools were in a bag... What better tools to use than we ones we've been using already OpenDLP for scanning and viewing the result Metasploit for compromising the systems
- 6:49No credentials, no problem Rather than using Metasploit to get the credentials (and copying them manually into a profile) why not simply use Metasploit for deployment? Metasploit meterpreter sessions provide the ability to: Upload/download files Execute programs on the target Manage Services Metasploit RPC provides a mechanism to drive from remote
- 7:33Why Metasploit? Openly available Exploit Framework that many Pentesters use, including us Has an RPC interface that allows another tool to list compromised systems and interact with them Many routines that allow you to deploy services, elevate privileges, download/upload files, and execute applications on the target
- 8:04OpenDLP Metasploit Bridge The OpenDLP Metasploit Bridge gives OpenDLP the ability to use Metasploit sessions to deploy the agent scanner Allows the user to create a single profile for windows Metasploit sessions regardless of the credentials necessary for the machines All features of the current OpenDLP deployment are available via Metasploit Sessions
- 10:43MetaSploiter Background Since OpenDLP is written in perl, I needed a perl module to communicate with Metasploit Stand-alone perl module to interact with meterpreter sessions from any perl program Parses RPC responses so you don't have to
- 22:20User Interface walk-through To add support for the Metasploit bridge to OpenDLP, many of the web pages needed to be changed or updated, and several new pages were added as well.
- 24:38Web Page Mods: Starting a Sca startscan.html A Windows Agent Scan requires manual additions the IP addresses to deploy to here. Deployment via Metasploit uses sessions that can change as new boxes are popped, or if Metasploit
- 26:18Web Page Mods: Start Scan start-verify.html Appears the same as before, but behind the scenes this is where all the code for deployment over the Metasploit bridge takes place Metasploit configuration parameters are loaded from the database Metasploit RPC host, port, login password, etc Deploys either to a Meterpreter-based bridge or a post-module-based bridge depending on the scan type Detailed deployment info is output
