metasploit_payloads-mettle 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 8e1d0b8d8617d5ff9f173cb8aa20b9ea45e157cc
4
+ data.tar.gz: 4a5f84f7ffbde89d3ddc58293c7f02bd4a8a8a55
5
+ SHA512:
6
+ metadata.gz: de7571303a98ccd36d5dc66713bc7388d3fc19abe213bd3d8ff64a080be5911a1947affacee607c3819136d739e98011e6ebae9c54a6af44e7b88ddb08461844
7
+ data.tar.gz: c76638a442a84b4e6baab91399f9cb4b9e7ee5da2803d0b71d8489da27660a7333a02bd77bd3cb5fd4b1c275d338db2dd05a5395bad7b03e35f39fce49752ff9
checksums.yaml.gz.sig ADDED
Binary file
data.tar.gz.sig ADDED
Binary file
@@ -0,0 +1,85 @@
1
+ # -*- coding:binary -*-
2
+
3
+ unless defined? MetasploitPayloads::Mettle::VERSION
4
+ require 'metasploit_payloads/mettle/version'
5
+ end
6
+
7
+ #
8
+ # This module dispenses Mettle payload binary files
9
+ #
10
+ module MetasploitPayloads
11
+ module Mettle
12
+ def self.readable_path(gem_path, msf_path)
13
+ # Try the MSF path first to see if the file exists, allowing the MSF data
14
+ # folder to override what is in the gem. This is very helpful for
15
+ # testing/development without having to move the binaries to the gem folder
16
+ # each time. We only do this is MSF is installed.
17
+ if ::File.readable? msf_path
18
+ warn_local_path(msf_path) if ::File.readable? gem_path
19
+ msf_path
20
+ elsif ::File.readable? gem_path
21
+ gem_path
22
+ end
23
+ end
24
+
25
+ #
26
+ # Get the contents of any file packaged in this gem by local path and name.
27
+ #
28
+ def self.read(triple, file)
29
+ file_path = path("cross-#{triple}", 'bin', file)
30
+ if file_path.nil?
31
+ full_path = ::File.join([triple, file])
32
+ fail RuntimeError, "#{full_path} not found", caller
33
+ end
34
+
35
+ ::File.binread(file_path)
36
+ end
37
+
38
+ private
39
+
40
+ #
41
+ # Get the full path to any file packaged in this gem by local path and name.
42
+ #
43
+ def self.path(*path_parts)
44
+ gem_path = expand(data_directory, ::File.join(path_parts))
45
+ msf_path = 'thisisnotthefileyouarelookingfor'
46
+ if metasploit_installed?
47
+ msf_path = expand(Msf::Config.data_directory, ::File.join('mettle', path_parts))
48
+ end
49
+ readable_path(gem_path, msf_path)
50
+ end
51
+
52
+ #
53
+ # Full path to the local gem folder containing the base data
54
+ #
55
+ def self.data_directory
56
+ ::File.realpath(::File.join(::File.dirname(__FILE__), '..', '..', 'build'))
57
+ end
58
+
59
+ #
60
+ # Determine if MSF has been installed and is being used.
61
+ #
62
+ def self.metasploit_installed?
63
+ defined? Msf::Config
64
+ end
65
+
66
+ #
67
+ # Expand the given root path and file name into a full file location.
68
+ #
69
+ def self.expand(root_dir, file_name)
70
+ ::File.expand_path(::File.join(root_dir, file_name))
71
+ end
72
+
73
+ @local_paths = []
74
+
75
+ def self.warn_local_path(path)
76
+ unless @local_paths.include?(path)
77
+ STDERR.puts("WARNING: Local file #{path} is being used")
78
+ if @local_paths.empty?
79
+ STDERR.puts('WARNING: Local files may be incompatible Metasploit framework')
80
+ end
81
+ @local_paths << path
82
+ end
83
+ end
84
+ end
85
+ end
@@ -0,0 +1,10 @@
1
+ # -*- coding:binary -*-
2
+ module MetasploitPayloads
3
+ module Mettle
4
+ VERSION = '0.0.3'
5
+
6
+ def self.version
7
+ VERSION
8
+ end
9
+ end
10
+ end
metadata ADDED
@@ -0,0 +1,182 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: metasploit_payloads-mettle
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.3
5
+ platform: ruby
6
+ authors:
7
+ - Adam Cammack
8
+ - Brent Cook
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain:
12
+ - |
13
+ -----BEGIN CERTIFICATE-----
14
+ MIIDdTCCAl2gAwIBAgILBAAAAAABFUtaw5QwDQYJKoZIhvcNAQEFBQAwVzELMAkG
15
+ A1UEBhMCQkUxGTAXBgNVBAoTEEdsb2JhbFNpZ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VGTMSAAYWmfzyHXM
83
+ YMFYUWJzSFcuVR2YfxtbS45P7U5Qopd7jBQ0Ygk5h2a+B5nE4+UlhHj665d0zpYM
84
+ 1eWndMaO6WBOYnqtNyi8Dqqc1foKZDNHEDggYhGso7OIBunup+N4sPL9PwQ3eYe6
85
+ mUu8z0E4GXYViaMPOFkqaYnoYgf2L+7L5zKYT4h/NE/P7kj7EbduHgy/v/aAIrNl
86
+ 2SpuQH+SWteq3NXkAmFEEqvLJQ4sbptZt8OP8ghL3pVAvZNFmww/YVszSkShSzcg
87
+ QdihYCSEL2drS2cFd50jBeq71sxUtxbv82DUa2b+
88
+ -----END CERTIFICATE-----
89
+ date: 2016-05-16 00:00:00.000000000 Z
90
+ dependencies:
91
+ - !ruby/object:Gem::Dependency
92
+ name: bundler
93
+ requirement: !ruby/object:Gem::Requirement
94
+ requirements:
95
+ - - "~>"
96
+ - !ruby/object:Gem::Version
97
+ version: '1.12'
98
+ type: :development
99
+ prerelease: false
100
+ version_requirements: !ruby/object:Gem::Requirement
101
+ requirements:
102
+ - - "~>"
103
+ - !ruby/object:Gem::Version
104
+ version: '1.12'
105
+ - !ruby/object:Gem::Dependency
106
+ name: rake
107
+ requirement: !ruby/object:Gem::Requirement
108
+ requirements:
109
+ - - ">="
110
+ - !ruby/object:Gem::Version
111
+ version: '0'
112
+ type: :development
113
+ prerelease: false
114
+ version_requirements: !ruby/object:Gem::Requirement
115
+ requirements:
116
+ - - ">="
117
+ - !ruby/object:Gem::Version
118
+ version: '0'
119
+ - !ruby/object:Gem::Dependency
120
+ name: gem-release
121
+ requirement: !ruby/object:Gem::Requirement
122
+ requirements:
123
+ - - ">="
124
+ - !ruby/object:Gem::Version
125
+ version: '0'
126
+ type: :development
127
+ prerelease: false
128
+ version_requirements: !ruby/object:Gem::Requirement
129
+ requirements:
130
+ - - ">="
131
+ - !ruby/object:Gem::Version
132
+ version: '0'
133
+ description: Compiled binaries for Metasploit's next-gen Meterpreter
134
+ email:
135
+ - adam_cammack@rapid7.com
136
+ - brent_cook@rapid7.com
137
+ executables: []
138
+ extensions: []
139
+ extra_rdoc_files: []
140
+ files:
141
+ - build/cross-arm-linux-musleabi/bin/mettle
142
+ - build/cross-arm-linux-musleabi/bin/mettle.bin
143
+ - build/cross-arm-linux-musleabihf/bin/mettle
144
+ - build/cross-arm-linux-musleabihf/bin/mettle.bin
145
+ - build/cross-i486-linux-musl/bin/mettle
146
+ - build/cross-i486-linux-musl/bin/mettle.bin
147
+ - build/cross-mips-linux-musl/bin/mettle
148
+ - build/cross-mips-linux-musl/bin/mettle.bin
149
+ - build/cross-mipsel-linux-musl/bin/mettle
150
+ - build/cross-mipsel-linux-musl/bin/mettle.bin
151
+ - build/cross-powerpc-linux-musl/bin/mettle
152
+ - build/cross-powerpc-linux-musl/bin/mettle.bin
153
+ - build/cross-x86_64-linux-musl/bin/mettle
154
+ - build/cross-x86_64-linux-musl/bin/mettle.bin
155
+ - lib/metasploit_payloads/mettle.rb
156
+ - lib/metasploit_payloads/mettle/version.rb
157
+ homepage: http://www.metasploit.com
158
+ licenses:
159
+ - 3-clause (or "modified") BSD
160
+ metadata: {}
161
+ post_install_message:
162
+ rdoc_options: []
163
+ require_paths:
164
+ - lib
165
+ required_ruby_version: !ruby/object:Gem::Requirement
166
+ requirements:
167
+ - - ">="
168
+ - !ruby/object:Gem::Version
169
+ version: '0'
170
+ required_rubygems_version: !ruby/object:Gem::Requirement
171
+ requirements:
172
+ - - ">="
173
+ - !ruby/object:Gem::Version
174
+ version: '0'
175
+ requirements: []
176
+ rubyforge_project:
177
+ rubygems_version: 2.4.8
178
+ signing_key:
179
+ specification_version: 4
180
+ summary: This gem contains the compiled binaries required to make Mettle function,
181
+ and eventually their stages and stagers
182
+ test_files: []
metadata.gz.sig ADDED
@@ -0,0 +1,2 @@
1
+ ��"��P���o�&�$Щ��S�{p\���L����X˚�~@�}��(��?e|Y�8�a��y�I�)�ŶkēI^i�=�9D\Kd�p [pS�q�������:��&)q�� 8j�Š8�j���V��
2
+ \�Ɂ+&�Р[�je\9oue��Dmڑ v(B�T͜� �@���]�u����WT�!�9b 'Զ �����/����H��ۛ�k�˾��%z