meterpreter_bins 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (38) hide show
  1. checksums.yaml +15 -0
  2. data/.gitignore +42 -0
  3. data/CONTRIBUTING.md +8 -0
  4. data/Gemfile +4 -0
  5. data/LICENSE +20 -0
  6. data/LICENSE.txt +39 -0
  7. data/README.md +25 -0
  8. data/Rakefile +1 -0
  9. data/lib/meterpreter_bins/version.rb +9 -0
  10. data/lib/meterpreter_bins.rb +104 -0
  11. data/meterpreter/elevator.x64.dll +0 -0
  12. data/meterpreter/elevator.x86.dll +0 -0
  13. data/meterpreter/ext_server_espia.x64.dll +0 -0
  14. data/meterpreter/ext_server_espia.x86.dll +0 -0
  15. data/meterpreter/ext_server_extapi.x64.dll +0 -0
  16. data/meterpreter/ext_server_extapi.x86.dll +0 -0
  17. data/meterpreter/ext_server_incognito.x64.dll +0 -0
  18. data/meterpreter/ext_server_incognito.x86.dll +0 -0
  19. data/meterpreter/ext_server_lanattacks.x64.dll +0 -0
  20. data/meterpreter/ext_server_lanattacks.x86.dll +0 -0
  21. data/meterpreter/ext_server_mimikatz.x64.dll +0 -0
  22. data/meterpreter/ext_server_mimikatz.x86.dll +0 -0
  23. data/meterpreter/ext_server_networkpug.lso +0 -0
  24. data/meterpreter/ext_server_priv.x64.dll +0 -0
  25. data/meterpreter/ext_server_priv.x86.dll +0 -0
  26. data/meterpreter/ext_server_sniffer.lso +0 -0
  27. data/meterpreter/ext_server_sniffer.x64.dll +0 -0
  28. data/meterpreter/ext_server_sniffer.x86.dll +0 -0
  29. data/meterpreter/ext_server_stdapi.lso +0 -0
  30. data/meterpreter/ext_server_stdapi.x64.dll +0 -0
  31. data/meterpreter/ext_server_stdapi.x86.dll +0 -0
  32. data/meterpreter/metsrv.x64.dll +0 -0
  33. data/meterpreter/metsrv.x86.dll +0 -0
  34. data/meterpreter/msflinker_linux_x86.bin +0 -0
  35. data/meterpreter/screenshot.x64.dll +0 -0
  36. data/meterpreter/screenshot.x86.dll +0 -0
  37. data/meterpreter_bins.gemspec +32 -0
  38. metadata +133 -0
checksums.yaml ADDED
@@ -0,0 +1,15 @@
1
+ ---
2
+ !binary "U0hBMQ==":
3
+ metadata.gz: !binary |-
4
+ OTE3NTZlOGQ2MzljYjg3YTFiMjAwZDY0YWM3OTRiMDUxM2I1MTFkMw==
5
+ data.tar.gz: !binary |-
6
+ OTBmOGEzNzM2Y2I4ZDJkMjNiZDgzNTMyNzAzYThhZjY2YThhYjg3Mw==
7
+ SHA512:
8
+ metadata.gz: !binary |-
9
+ ZDU4YTEwZWM1Yjc1MmQ1NjdjMDc5ZWQ3YzM5MmFjNDdkNzA3NDI2N2I1NWIy
10
+ OTRiZjE1Y2FhZTUzYTAwNDNhNWM5ZWVkZDUxZWUyODFlMjUyZGUzMDNkMmM1
11
+ YzgzMjRmNzkxYWQ3ZGY4NmUzMjRmZDY3OGU1MzBhNzJlNjcwYzQ=
12
+ data.tar.gz: !binary |-
13
+ Zjg4YTRmZWIyNTYwNDIwMTZhYzc3ZjRhNjBjZGUzNDA1NmMyOWQ0YWY5YWUy
14
+ YWI2ZDA3Njk3NzA3NGVlY2I4ODYyZWQ4ZGM5MzgzOGRiNjEzYzFkMzFiYWE5
15
+ MGFlZTE2YTUwNzAyNTg5ZDNmOTU5YTczYzEyODA2ZGUzZmFhNGY=
data/.gitignore ADDED
@@ -0,0 +1,42 @@
1
+ *.gem
2
+ *.rbc
3
+ .bundle
4
+ .config
5
+ coverage
6
+ InstalledFiles
7
+ lib/bundler/man
8
+ rdoc
9
+ spec/reports
10
+ test/tmp
11
+ test/version_tmp
12
+ tmp
13
+
14
+ # YARD artifacts
15
+ .yardoc
16
+ _yardoc
17
+ doc/
18
+
19
+ # Compiled Object files
20
+ *.slo
21
+ *.lo
22
+ *.o
23
+
24
+ # Compiled Dynamic libraries
25
+ *.so
26
+ *.dylib
27
+
28
+ # Compiled Static libraries
29
+ *.lai
30
+ *.la
31
+ *.a
32
+
33
+ # temp stuff
34
+ *.swp
35
+ Gemfile.lock
36
+
37
+ # and the generated output
38
+ pkg/*
39
+
40
+ # never include private bins!
41
+ # If you're interested in these, consider http://metasploit.pro
42
+ meterpreter/ext_server_pivot.*
data/CONTRIBUTING.md ADDED
@@ -0,0 +1,8 @@
1
+ Please direct contributions to Meterpreter's source repository at:
2
+
3
+ https://github.com/rapid7/meterpreter
4
+
5
+ Issues should be filed at:
6
+
7
+ https://dev.metasploit.com/redmine/projects/framework
8
+
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in meterpreter_binaries.gemspec
4
+ gemspec
data/LICENSE ADDED
@@ -0,0 +1,20 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2014 Rapid7
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy of
6
+ this software and associated documentation files (the "Software"), to deal in
7
+ the Software without restriction, including without limitation the rights to
8
+ use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
9
+ the Software, and to permit persons to whom the Software is furnished to do so,
10
+ subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
17
+ FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
18
+ COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
19
+ IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
20
+ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/LICENSE.txt ADDED
@@ -0,0 +1,39 @@
1
+ Meterpreter is available for use under the following license, commonly known as the
2
+ 3-clause (or "modified") BSD license:
3
+
4
+ =========================================================================================
5
+
6
+ Meterpreter
7
+ -----------
8
+
9
+ Copyright (c) 2006-2013, Rapid7 Inc
10
+
11
+ Redistribution and use in source and binary forms, with or without modification, are
12
+ permitted provided that the following conditions are met:
13
+
14
+ * Redistributions of source code must retain the above copyright notice, this list of
15
+ conditions and the following disclaimer.
16
+
17
+ * Redistributions in binary form must reproduce the above copyright notice, this list of
18
+ conditions and the following disclaimer in the documentation and/or other materials
19
+ provided with the distribution.
20
+
21
+ * Neither the name of Rapid7 nor the names of its contributors may be used to endorse or
22
+ promote products derived from this software without specific prior written permission.
23
+
24
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY
25
+ EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
26
+ MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL
27
+ THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
28
+ SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT
29
+ OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
30
+ HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR
31
+ TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
32
+ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
33
+
34
+ =========================================================================================
35
+
36
+ Portions of Meterpreter are based on works by others. Licenses for those
37
+ portions are detailed at the Meterpreter source repository
38
+ https://github.com/rapid7/meterpreter
39
+
data/README.md ADDED
@@ -0,0 +1,25 @@
1
+ # Meterpreter Binaries
2
+
3
+ This gem is a Metasploit-specific gem that contains all of the
4
+ compiled binaries for the Meterpreter payload. This is made up of:
5
+
6
+ * Windows DLLs
7
+ * POSIX LSOs
8
+ * POSIX BIN
9
+
10
+ The other files have been left alone for now.
11
+
12
+ ## Installation
13
+
14
+ Given the nature of the contents of this gem, installation
15
+ outside of Metasploit is not advised. To use Meterpreter,
16
+ download and install Metasploit itself.
17
+
18
+ ## Building
19
+
20
+ To build the gem:
21
+
22
+ 1. Update the version number in `lib/meterpreter_binaries/version.rb`
23
+ 1. Copy the updated binaries into the `data/meterpreter` folder.
24
+ 1. Run `rake build` to generate the new gem file.
25
+ 1. Run `rake release` to release the binary to RubyGems.
data/Rakefile ADDED
@@ -0,0 +1 @@
1
+ require "bundler/gem_tasks"
@@ -0,0 +1,9 @@
1
+ # -*- coding:binary -*-
2
+ module MeterpreterBinaries
3
+ VERSION = '0.0.1'
4
+
5
+ def self.version
6
+ VERSION
7
+ end
8
+
9
+ end
@@ -0,0 +1,104 @@
1
+ # -*- coding:binary -*-
2
+
3
+ require 'meterpreter_bins/version' unless defined? MeterpreterBinaries::VERSION
4
+
5
+ module MeterpreterBinaries
6
+
7
+ EXTENSION_PREFIX = 'ext_server_'
8
+ METERPRETER_SUBFOLDER = 'meterpreter'
9
+
10
+ #
11
+ # Get the path to an extension based on its name (no prefix).
12
+ #
13
+ def self.ext_path(ext_name, binary_suffix)
14
+ path("#{EXTENSION_PREFIX}#{ext_name}", binary_suffix)
15
+ end
16
+
17
+ #
18
+ # Get the path to a meterpreter binary by full name.
19
+ #
20
+ def self.path(name, binary_suffix)
21
+ file_name = "#{name}.#{binary_suffix}".downcase
22
+ root_dirs = [local_dir]
23
+
24
+ # Try the data folder first to see if the extension exists, as this
25
+ # allows for the MSF data/meterpreter folder to override what is
26
+ # in the gem. This is very helpful for testing/development without
27
+ # having to move the binaries to the gem folder each time. We only
28
+ # do this is MSF is installed.
29
+ root_dirs.unshift(metasploit_data_dir) if metasploit_installed?
30
+
31
+ until root_dirs.length.zero?
32
+ file_path = expand(root_dirs.shift, file_name)
33
+ return file_path if ::File.readable?(file_path)
34
+ end
35
+
36
+ nil
37
+ end
38
+
39
+ #
40
+ # List all the available extensions for the given suffix.
41
+ #
42
+ def self.list_extensions(binary_suffix)
43
+ extensions = []
44
+
45
+ root_dirs = [local_dir]
46
+ # Find the valid extensions in the data folder first, if MSF
47
+ # is installed.
48
+ root_dirs.unshift(metasploit_data_dir) if metasploit_installed?
49
+
50
+ until root_dirs.length.zero?
51
+ # Merge in any that don't already exist in the collection.
52
+ enum_ext(root_dirs.shift, binary_suffix).each do |e|
53
+ extensions.push(e) unless extensions.include?(e)
54
+ end
55
+ end
56
+
57
+ extensions
58
+ end
59
+
60
+ private
61
+
62
+ #
63
+ # Determine if MSF has been installed and is being used.
64
+ #
65
+ def self.metasploit_installed?
66
+ defined? Msf::Config
67
+ end
68
+
69
+ #
70
+ # Full path to the local gem folder which contains the binaries.
71
+ #
72
+ def self.local_dir
73
+ ::File.join(::File.dirname(__FILE__), '..', METERPRETER_SUBFOLDER)
74
+ end
75
+
76
+ #
77
+ # Full path to the MSF data folder which contains the binaries.
78
+ #
79
+ def self.metasploit_data_dir
80
+ ::File.join(Msf::Config.data_directory, METERPRETER_SUBFOLDER)
81
+ end
82
+
83
+ #
84
+ # Expand the given root path and file name into a full file location.
85
+ #
86
+ def self.expand(root_dir, file_name)
87
+ ::File.expand_path(::File.join(root_dir, file_name))
88
+ end
89
+
90
+ #
91
+ # Enumerate extensions in the given root folder based on the suffix.
92
+ #
93
+ def self.enum_ext(root_dir, binary_suffix)
94
+ exts = []
95
+ ::Dir.entries(root_dir).each do |f|
96
+ if (::File.readable?(::File.join(root_dir, f)) && f =~ /#{EXTENSION_PREFIX}(.*)\.#{binary_suffix}/)
97
+ exts.push($1)
98
+ end
99
+ end
100
+ exts
101
+ end
102
+
103
+ end
104
+
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
@@ -0,0 +1,32 @@
1
+ # -*- coding:binary -*-
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'meterpreter_bins/version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "meterpreter_bins"
8
+ spec.version = MeterpreterBinaries::VERSION
9
+ spec.authors = ["OJ Reeves"]
10
+ spec.email = ["oj_reeves@rapid7.com"]
11
+ spec.description = %q{Compiled binaries for Metasploit's Meterpreter}
12
+ spec.summary = %q{This gem contains all the compiled binaries required to make
13
+ Meterpreter function. This includes Windows and POSIX binaries.}
14
+ spec.homepage = "http://www.metasploit.com"
15
+ spec.license = '3-clause (or "modified") BSD'
16
+
17
+ spec.files = `git ls-files`.split("\n")
18
+ spec.files += Dir['meterpreter/*']
19
+ spec.executables = []
20
+ spec.require_paths = ['lib']
21
+
22
+ # Since this is a pre-compiled binary, we'll need to give people a
23
+ # hint as to what state the source was actually in when we compiled
24
+ # up. In this way, the gem version can be linked to a commit hash and
25
+ # users can get a sense of where in the history they are.
26
+ spec.metadata['source'] = 'https://github.com/rapid7/meterpreter'
27
+ spec.metadata['source_commit'] = 'e77c87cdb79a2732108be937e056622b45cb093c'
28
+ spec.metadata['source_commit_url'] = "#{spec.metadata['source']}/commit/#{spec.metadata['source_commit']}"
29
+
30
+ spec.add_development_dependency "bundler", "~> 1.3"
31
+ spec.add_development_dependency "rake"
32
+ end
metadata ADDED
@@ -0,0 +1,133 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: !binary |-
3
+ bWV0ZXJwcmV0ZXJfYmlucw==
4
+ version: !ruby/object:Gem::Version
5
+ version: !binary |-
6
+ MC4wLjE=
7
+ platform: ruby
8
+ authors:
9
+ - !binary |-
10
+ T0ogUmVldmVz
11
+ autorequire:
12
+ bindir: bin
13
+ cert_chain: []
14
+ date: 2014-01-16 00:00:00.000000000 Z
15
+ dependencies:
16
+ - !ruby/object:Gem::Dependency
17
+ name: !binary |-
18
+ YnVuZGxlcg==
19
+ requirement: !ruby/object:Gem::Requirement
20
+ requirements:
21
+ - - !binary |-
22
+ fj4=
23
+ - !ruby/object:Gem::Version
24
+ version: !binary |-
25
+ MS4z
26
+ type: :development
27
+ prerelease: false
28
+ version_requirements: !ruby/object:Gem::Requirement
29
+ requirements:
30
+ - - !binary |-
31
+ fj4=
32
+ - !ruby/object:Gem::Version
33
+ version: !binary |-
34
+ MS4z
35
+ - !ruby/object:Gem::Dependency
36
+ name: !binary |-
37
+ cmFrZQ==
38
+ requirement: !ruby/object:Gem::Requirement
39
+ requirements:
40
+ - - ! '>='
41
+ - !ruby/object:Gem::Version
42
+ version: '0'
43
+ type: :development
44
+ prerelease: false
45
+ version_requirements: !ruby/object:Gem::Requirement
46
+ requirements:
47
+ - - ! '>='
48
+ - !ruby/object:Gem::Version
49
+ version: '0'
50
+ description: !binary |-
51
+ Q29tcGlsZWQgYmluYXJpZXMgZm9yIE1ldGFzcGxvaXQncyBNZXRlcnByZXRl
52
+ cg==
53
+ email:
54
+ - !binary |-
55
+ b2pfcmVldmVzQHJhcGlkNy5jb20=
56
+ executables: []
57
+ extensions: []
58
+ extra_rdoc_files: []
59
+ files:
60
+ - .gitignore
61
+ - CONTRIBUTING.md
62
+ - Gemfile
63
+ - LICENSE
64
+ - LICENSE.txt
65
+ - README.md
66
+ - Rakefile
67
+ - lib/meterpreter_bins.rb
68
+ - lib/meterpreter_bins/version.rb
69
+ - meterpreter/elevator.x64.dll
70
+ - meterpreter/elevator.x86.dll
71
+ - meterpreter/ext_server_espia.x64.dll
72
+ - meterpreter/ext_server_espia.x86.dll
73
+ - meterpreter/ext_server_extapi.x64.dll
74
+ - meterpreter/ext_server_extapi.x86.dll
75
+ - meterpreter/ext_server_incognito.x64.dll
76
+ - meterpreter/ext_server_incognito.x86.dll
77
+ - meterpreter/ext_server_lanattacks.x64.dll
78
+ - meterpreter/ext_server_lanattacks.x86.dll
79
+ - meterpreter/ext_server_mimikatz.x64.dll
80
+ - meterpreter/ext_server_mimikatz.x86.dll
81
+ - meterpreter/ext_server_networkpug.lso
82
+ - meterpreter/ext_server_priv.x64.dll
83
+ - meterpreter/ext_server_priv.x86.dll
84
+ - meterpreter/ext_server_sniffer.lso
85
+ - meterpreter/ext_server_sniffer.x64.dll
86
+ - meterpreter/ext_server_sniffer.x86.dll
87
+ - meterpreter/ext_server_stdapi.lso
88
+ - meterpreter/ext_server_stdapi.x64.dll
89
+ - meterpreter/ext_server_stdapi.x86.dll
90
+ - meterpreter/metsrv.x64.dll
91
+ - meterpreter/metsrv.x86.dll
92
+ - meterpreter/msflinker_linux_x86.bin
93
+ - meterpreter/screenshot.x64.dll
94
+ - meterpreter/screenshot.x86.dll
95
+ - meterpreter_bins.gemspec
96
+ homepage: !binary |-
97
+ aHR0cDovL3d3dy5tZXRhc3Bsb2l0LmNvbQ==
98
+ licenses:
99
+ - !binary |-
100
+ My1jbGF1c2UgKG9yICJtb2RpZmllZCIpIEJTRA==
101
+ metadata:
102
+ !binary "c291cmNl": !binary |-
103
+ aHR0cHM6Ly9naXRodWIuY29tL3JhcGlkNy9tZXRlcnByZXRlcg==
104
+ !binary "c291cmNlX2NvbW1pdA==": !binary |-
105
+ ZTc3Yzg3Y2RiNzlhMjczMjEwOGJlOTM3ZTA1NjYyMmI0NWNiMDkzYw==
106
+ !binary "c291cmNlX2NvbW1pdF91cmw=": !binary |-
107
+ aHR0cHM6Ly9naXRodWIuY29tL3JhcGlkNy9tZXRlcnByZXRlci9jb21taXQv
108
+ ZTc3Yzg3Y2RiNzlhMjczMjEwOGJlOTM3ZTA1NjYyMmI0NWNiMDkzYw==
109
+ post_install_message:
110
+ rdoc_options: []
111
+ require_paths:
112
+ - !binary |-
113
+ bGli
114
+ required_ruby_version: !ruby/object:Gem::Requirement
115
+ requirements:
116
+ - - ! '>='
117
+ - !ruby/object:Gem::Version
118
+ version: '0'
119
+ required_rubygems_version: !ruby/object:Gem::Requirement
120
+ requirements:
121
+ - - ! '>='
122
+ - !ruby/object:Gem::Version
123
+ version: '0'
124
+ requirements: []
125
+ rubyforge_project:
126
+ rubygems_version: 2.1.11
127
+ signing_key:
128
+ specification_version: 4
129
+ summary: !binary |-
130
+ VGhpcyBnZW0gY29udGFpbnMgYWxsIHRoZSBjb21waWxlZCBiaW5hcmllcyBy
131
+ ZXF1aXJlZCB0byBtYWtlIE1ldGVycHJldGVyIGZ1bmN0aW9uLiBUaGlzIGlu
132
+ Y2x1ZGVzIFdpbmRvd3MgYW5kIFBPU0lYIGJpbmFyaWVzLg==
133
+ test_files: []