1
mirror of https://github.com/rapid7/metasploit-payloads synced 2024-12-08 23:33:07 +01:00
metasploit-payloads/gem
2017-03-17 11:04:18 -07:00
..
lib Bump to 1.2.20 2017-03-17 11:04:18 -07:00
.gitignore Hello metasploit-payloads 2015-03-26 07:05:28 -05:00
build.sh Hello metasploit-payloads 2015-03-26 07:05:28 -05:00
CONTRIBUTING.md Hello metasploit-payloads 2015-03-26 07:05:28 -05:00
Gemfile Hello metasploit-payloads 2015-03-26 07:05:28 -05:00
LICENSE Hello metasploit-payloads 2015-03-26 07:05:28 -05:00
metasploit-payloads.gemspec fix a couple of MeterpreterBinaries refs 2015-03-26 07:44:02 -05:00
Rakefile ensure that android is built and packaged 2015-05-26 18:26:32 -05:00
README.md fix a couple of MeterpreterBinaries refs 2015-03-26 07:44:02 -05:00

Metasploit Payloads

This gem is a Metasploit-specific gem that contains all of the Meterpreter payloads. This is made up of:

  • Windows DLLs
  • POSIX LSOs
  • POSIX BIN
  • Java Classes
  • PHP/Python Scripts

Installation

Given the nature of the contents of this gem, installation outside of Metasploit is not advised. To use Meterpreter, download and install Metasploit itself.

Building

To build the gem:

  1. Update the version number in lib/metasploit-payloads/version.rb
  2. Run:
  • rake win_prep to build on Windows
  • rake posix_prep to build on Linux
  • rake java_prep to build Java files
  • rake python_prep and rake php_prep to copy the latest PHP/Python meterpreter files into place
  1. Binaries will be built in the data folder.
  2. Run rake build to generate the new gem file using content in meterpreter folder.
  3. Run rake release to release the binary to RubyGems.

Note, when using the command rake win_prep and related Windows rake tasks, you must be in the Visual Studio Developer command prompt, and have a path to a git binary in your default path. If your git.exe is part of posh-git or GitHub for Windows, that means adding something like the following to your path:

"C:\Users\USERNAME\AppData\Local\GitHub\PortableGit_LONG_UUID_STRING_THING\bin"