From 2f3f6553529eab133495046aaee190b1f85f8256 Mon Sep 17 00:00:00 2001 From: Adam Cammack Date: Thu, 26 May 2016 16:17:43 -0500 Subject: [PATCH] Add gem for mettle This adds the gem for the mettle binaries, which contains reflective payloads for a variety of Linux architectures (and more OSs in the future) --- Gemfile.lock | 2 ++ lib/rex/post/meterpreter.rb | 1 + metasploit-framework.gemspec | 2 ++ 3 files changed, 5 insertions(+) diff --git a/Gemfile.lock b/Gemfile.lock index 04b61fc948..31c1c15e68 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -16,6 +16,7 @@ PATH metasploit-model metasploit-payloads (= 1.1.12) metasploit_data_models + metasploit_payloads-mettle msgpack network_interface nokogiri @@ -162,6 +163,7 @@ GEM postgres_ext railties (~> 4.2.6) recog (~> 2.0) + metasploit_payloads-mettle (0.0.3) method_source (0.8.2) mime-types (3.0) mime-types-data (~> 3.2015) diff --git a/lib/rex/post/meterpreter.rb b/lib/rex/post/meterpreter.rb index 9c3b98160a..608880264d 100644 --- a/lib/rex/post/meterpreter.rb +++ b/lib/rex/post/meterpreter.rb @@ -1,5 +1,6 @@ # -*- coding: binary -*- require 'metasploit-payloads' +require 'metasploit_payloads/mettle' require 'rex/post/meterpreter/client' require 'rex/post/meterpreter/ui/console' diff --git a/metasploit-framework.gemspec b/metasploit-framework.gemspec index 166150065a..a38d0caf6d 100644 --- a/metasploit-framework.gemspec +++ b/metasploit-framework.gemspec @@ -71,6 +71,8 @@ Gem::Specification.new do |spec| spec.add_runtime_dependency 'metasploit-model' # Needed for Meterpreter spec.add_runtime_dependency 'metasploit-payloads', '1.1.12' + # Needed for the next-generation POSIX Meterpreter + spec.add_runtime_dependency 'metasploit_payloads-mettle' # Needed by msfgui and other rpc components spec.add_runtime_dependency 'msgpack' # get list of network interfaces, like eth* from OS.