meterpreter_bins 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,7 @@
1
1
  ---
2
- !binary "U0hBMQ==":
3
- metadata.gz: !binary |-
4
- OTE3NTZlOGQ2MzljYjg3YTFiMjAwZDY0YWM3OTRiMDUxM2I1MTFkMw==
5
- data.tar.gz: !binary |-
6
- OTBmOGEzNzM2Y2I4ZDJkMjNiZDgzNTMyNzAzYThhZjY2YThhYjg3Mw==
2
+ SHA1:
3
+ metadata.gz: 59d6e62094b72615e2c22c07e98e2ad1b66b9e63
4
+ data.tar.gz: 38c434904d577e5c26df71be83272db6ce0dad3b
7
5
  SHA512:
8
- metadata.gz: !binary |-
9
- ZDU4YTEwZWM1Yjc1MmQ1NjdjMDc5ZWQ3YzM5MmFjNDdkNzA3NDI2N2I1NWIy
10
- OTRiZjE1Y2FhZTUzYTAwNDNhNWM5ZWVkZDUxZWUyODFlMjUyZGUzMDNkMmM1
11
- YzgzMjRmNzkxYWQ3ZGY4NmUzMjRmZDY3OGU1MzBhNzJlNjcwYzQ=
12
- data.tar.gz: !binary |-
13
- Zjg4YTRmZWIyNTYwNDIwMTZhYzc3ZjRhNjBjZGUzNDA1NmMyOWQ0YWY5YWUy
14
- YWI2ZDA3Njk3NzA3NGVlY2I4ODYyZWQ4ZGM5MzgzOGRiNjEzYzFkMzFiYWE5
15
- MGFlZTE2YTUwNzAyNTg5ZDNmOTU5YTczYzEyODA2ZGUzZmFhNGY=
6
+ metadata.gz: 9d90ffdb95dc9f8187c90fc03a44aad00e1b3ca4d4f9b9f4cc13d774939ee7f73964e440cbb255aeb027c04914ba756782ed197b6e795db7d0dc13ef716ec16b
7
+ data.tar.gz: ceeb78fa2253e78906531e92ceba3d02a78adbf359d3414012d05b279b4253749ce5622ecb75f9eafaa5dad806a5c70ae9bde11230b45f99d88c6456b0823803
data/.gitignore CHANGED
@@ -36,6 +36,7 @@ Gemfile.lock
36
36
 
37
37
  # and the generated output
38
38
  pkg/*
39
+ meterpreter/*
39
40
 
40
41
  # never include private bins!
41
42
  # If you're interested in these, consider http://metasploit.pro
data/README.md CHANGED
@@ -20,6 +20,18 @@ download and install Metasploit itself.
20
20
  To build the gem:
21
21
 
22
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.
23
+ 1. Run `rake win_prep` to build on Windows or `rake posix_prep` to build
24
+ on Linux.
25
+ 1. Binaries will be built in the `meterpreter` folder.
26
+ 1. Run `rake build` to generate the new gem file using content in
27
+ meterpreter folder.
25
28
  1. Run `rake release` to release the binary to RubyGems.
29
+
30
+ Note, when using the command `rake win_prep` and related Windows rake
31
+ tasks, you must be in the Visual Studio Developer command prompt,
32
+ **and** have a path to a git binary in your default path. If your
33
+ git.exe is part of posh-git or GitHub for Windows, that means adding
34
+ something like the following to your path:
35
+
36
+ `"C:\Users\USERNAME\AppData\Local\GitHub\PortableGit_LONG_UUID_STRING_THING\bin"`
37
+
data/Rakefile CHANGED
@@ -1 +1,82 @@
1
1
  require "bundler/gem_tasks"
2
+ require "shell"
3
+
4
+ make_folder = "../meterpreter/"
5
+ target_folder = "./meterpreter"
6
+
7
+ platform_config = {
8
+ :windows => {
9
+ :sources => [
10
+ "../meterpreter/output/x64",
11
+ "../meterpreter/output/x86"
12
+ ],
13
+ :extensions => [
14
+ "dll"
15
+ ]
16
+ },
17
+ :posix => {
18
+ :sources => [
19
+ "../meterpreter/data/meterpreter"
20
+ ],
21
+ :extensions => [
22
+ "lso", "bin"
23
+ ]
24
+ }
25
+ }
26
+
27
+ def copy_files(cnf, target_folder)
28
+ cnf[:sources].each do |f|
29
+ cnf[:extensions].each do |ext|
30
+ Dir.glob("#{f}/*.#{ext}").each do |bin|
31
+ target = File.join(target_folder, File.basename(bin))
32
+ print("Copying: #{bin} -> #{target}\n")
33
+ FileUtils.cp(bin, target)
34
+ end
35
+ end
36
+ end
37
+ end
38
+
39
+ task :create_dir do
40
+ Dir.mkdir(target_folder) unless Dir.exist?(target_folder)
41
+ end
42
+
43
+ task :win_compile do
44
+ Dir.chdir(make_folder) do
45
+ system('cmd.exe /c make.bat')
46
+ end
47
+ end
48
+
49
+ task :posix_compile do
50
+ Dir.chdir(make_folder) do
51
+ system('make clean && make')
52
+ end
53
+ end
54
+
55
+ task :win_copy do
56
+ copy_files(platform_config[:windows], target_folder)
57
+ end
58
+
59
+ task :posix_copy do
60
+ copy_files(platform_config[:posix], target_folder)
61
+ end
62
+
63
+ task :win_prep => [:create_dir, :win_compile, :win_copy] do
64
+ end
65
+
66
+ task :posix_prep => [:create_dir, :posix_compile, :posix_copy] do
67
+ end
68
+
69
+ # Override tag_version in bundler-#.#.#/lib/bundler/gem_helper.rb to force signed tags
70
+ module Bundler
71
+ class GemHelper
72
+ def tag_version
73
+ sh "git tag -m \"Version #{version}\" -s #{version_tag}"
74
+ Bundler.ui.confirm "Tagged #{version_tag}."
75
+ yield if block_given?
76
+ rescue
77
+ Bundler.ui.error "Untagging #{version_tag} due to error."
78
+ sh_with_code "git tag -d #{version_tag}"
79
+ raise
80
+ end
81
+ end
82
+ end
@@ -1,6 +1,6 @@
1
1
  # -*- coding:binary -*-
2
2
  module MeterpreterBinaries
3
- VERSION = '0.0.1'
3
+ VERSION = '0.0.2'
4
4
 
5
5
  def self.version
6
6
  VERSION
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
@@ -19,14 +19,26 @@ Gem::Specification.new do |spec|
19
19
  spec.executables = []
20
20
  spec.require_paths = ['lib']
21
21
 
22
+ # NOTE: I had to comment out all the metadata sections because, for some reason,
23
+ # my local installation of ruby/rake seems to think that metadata isn't valid.
24
+ # I get the following error:
25
+ # C:\code\meterpreter_bins>rake win_prep
26
+ # rake aborted!
27
+ # There was a NoMethodError while loading meterpreter_bins.gemspec:
28
+ # undefined method `metadata' for #<Gem::Specification name=meterpreter_bins version=0.0.1> from
29
+ # C:/code/meterpreter_bins/meterpreter_bins.gemspec:29:in `block in <main>'
30
+ # C:/code/meterpreter_bins/Rakefile:1:in `<top (required)>'
31
+ # (See full trace by running task with --trace)
32
+
22
33
  # Since this is a pre-compiled binary, we'll need to give people a
23
34
  # hint as to what state the source was actually in when we compiled
24
35
  # up. In this way, the gem version can be linked to a commit hash and
25
36
  # 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']}"
37
+ #spec.metadata['source'] = 'https://github.com/rapid7/meterpreter'
38
+ #spec.metadata['source_commit'] = 'e77c87cdb79a2732108be937e056622b45cb093c'
39
+ #spec.metadata['source_commit_url'] = "#{spec.metadata['source']}/commit/#{spec.metadata['source_commit']}"
29
40
 
30
41
  spec.add_development_dependency "bundler", "~> 1.3"
31
42
  spec.add_development_dependency "rake"
43
+ spec.add_development_dependency "gem-release"
32
44
  end
metadata CHANGED
@@ -1,63 +1,65 @@
1
1
  --- !ruby/object:Gem::Specification
2
- name: !binary |-
3
- bWV0ZXJwcmV0ZXJfYmlucw==
2
+ name: meterpreter_bins
4
3
  version: !ruby/object:Gem::Version
5
- version: !binary |-
6
- MC4wLjE=
4
+ version: 0.0.2
7
5
  platform: ruby
8
6
  authors:
9
- - !binary |-
10
- T0ogUmVldmVz
7
+ - OJ Reeves
11
8
  autorequire:
12
9
  bindir: bin
13
10
  cert_chain: []
14
- date: 2014-01-16 00:00:00.000000000 Z
11
+ date: 2014-05-27 00:00:00.000000000 Z
15
12
  dependencies:
16
13
  - !ruby/object:Gem::Dependency
17
- name: !binary |-
18
- YnVuZGxlcg==
14
+ name: bundler
19
15
  requirement: !ruby/object:Gem::Requirement
20
16
  requirements:
21
- - - !binary |-
22
- fj4=
17
+ - - "~>"
23
18
  - !ruby/object:Gem::Version
24
- version: !binary |-
25
- MS4z
19
+ version: '1.3'
26
20
  type: :development
27
21
  prerelease: false
28
22
  version_requirements: !ruby/object:Gem::Requirement
29
23
  requirements:
30
- - - !binary |-
31
- fj4=
24
+ - - "~>"
32
25
  - !ruby/object:Gem::Version
33
- version: !binary |-
34
- MS4z
26
+ version: '1.3'
35
27
  - !ruby/object:Gem::Dependency
36
- name: !binary |-
37
- cmFrZQ==
28
+ name: rake
38
29
  requirement: !ruby/object:Gem::Requirement
39
30
  requirements:
40
- - - ! '>='
31
+ - - ">="
41
32
  - !ruby/object:Gem::Version
42
33
  version: '0'
43
34
  type: :development
44
35
  prerelease: false
45
36
  version_requirements: !ruby/object:Gem::Requirement
46
37
  requirements:
47
- - - ! '>='
38
+ - - ">="
48
39
  - !ruby/object:Gem::Version
49
40
  version: '0'
50
- description: !binary |-
51
- Q29tcGlsZWQgYmluYXJpZXMgZm9yIE1ldGFzcGxvaXQncyBNZXRlcnByZXRl
52
- cg==
41
+ - !ruby/object:Gem::Dependency
42
+ name: gem-release
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ description: Compiled binaries for Metasploit's Meterpreter
53
56
  email:
54
- - !binary |-
55
- b2pfcmVldmVzQHJhcGlkNy5jb20=
57
+ - oj_reeves@rapid7.com
56
58
  executables: []
57
59
  extensions: []
58
60
  extra_rdoc_files: []
59
61
  files:
60
- - .gitignore
62
+ - ".gitignore"
61
63
  - CONTRIBUTING.md
62
64
  - Gemfile
63
65
  - LICENSE
@@ -78,56 +80,39 @@ files:
78
80
  - meterpreter/ext_server_lanattacks.x86.dll
79
81
  - meterpreter/ext_server_mimikatz.x64.dll
80
82
  - meterpreter/ext_server_mimikatz.x86.dll
81
- - meterpreter/ext_server_networkpug.lso
82
83
  - meterpreter/ext_server_priv.x64.dll
83
84
  - 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
85
  - meterpreter/ext_server_stdapi.x64.dll
89
86
  - meterpreter/ext_server_stdapi.x86.dll
90
87
  - meterpreter/metsrv.x64.dll
91
88
  - meterpreter/metsrv.x86.dll
92
- - meterpreter/msflinker_linux_x86.bin
93
89
  - meterpreter/screenshot.x64.dll
94
90
  - meterpreter/screenshot.x86.dll
95
91
  - meterpreter_bins.gemspec
96
- homepage: !binary |-
97
- aHR0cDovL3d3dy5tZXRhc3Bsb2l0LmNvbQ==
92
+ homepage: http://www.metasploit.com
98
93
  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==
94
+ - 3-clause (or "modified") BSD
95
+ metadata: {}
109
96
  post_install_message:
110
97
  rdoc_options: []
111
98
  require_paths:
112
- - !binary |-
113
- bGli
99
+ - lib
114
100
  required_ruby_version: !ruby/object:Gem::Requirement
115
101
  requirements:
116
- - - ! '>='
102
+ - - ">="
117
103
  - !ruby/object:Gem::Version
118
104
  version: '0'
119
105
  required_rubygems_version: !ruby/object:Gem::Requirement
120
106
  requirements:
121
- - - ! '>='
107
+ - - ">="
122
108
  - !ruby/object:Gem::Version
123
109
  version: '0'
124
110
  requirements: []
125
111
  rubyforge_project:
126
- rubygems_version: 2.1.11
112
+ rubygems_version: 2.2.1
127
113
  signing_key:
128
114
  specification_version: 4
129
- summary: !binary |-
130
- VGhpcyBnZW0gY29udGFpbnMgYWxsIHRoZSBjb21waWxlZCBiaW5hcmllcyBy
131
- ZXF1aXJlZCB0byBtYWtlIE1ldGVycHJldGVyIGZ1bmN0aW9uLiBUaGlzIGlu
132
- Y2x1ZGVzIFdpbmRvd3MgYW5kIFBPU0lYIGJpbmFyaWVzLg==
115
+ summary: This gem contains all the compiled binaries required to make Meterpreter
116
+ function. This includes Windows and POSIX binaries.
133
117
  test_files: []
118
+ has_rdoc:
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file