msfrpc-client 1.0.3 → 1.1.0
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.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/.ruby-version +1 -0
- data/.travis.yml +7 -0
- data/Gemfile +4 -0
- data/Gemfile.lock +57 -0
- data/LICENSE +22 -5
- data/Rakefile +4 -16
- data/lib/msfrpc-client/version.rb +5 -0
- data/msfrpc-client.gemspec +25 -18
- metadata +60 -23
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 11744747ce28ee144620957a3c362e3eb1e5b843
|
|
4
|
+
data.tar.gz: ef6329d09ec64617a0bd266f4fe0c1ab480c464f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: dca81c9fa5e2f6485e188273a061ff88d7554180f3e98ca990e1e5328a5a1ca5d9053a2c6c116e414fa1087814627f778ca9d8c781763567fddcfe38803df6ea
|
|
7
|
+
data.tar.gz: bad778fbbc15b44635fd72f41694db3a77296e729dc2324871f627ebd9bb6097f77aa6665f44fc347dbf7b187f5f2315e127fabb92cee0af8e57cccd70faa621
|
data/.gitignore
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
pkg
|
data/.ruby-version
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
2.4.0
|
data/.travis.yml
ADDED
data/Gemfile
ADDED
data/Gemfile.lock
ADDED
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
PATH
|
|
2
|
+
remote: .
|
|
3
|
+
specs:
|
|
4
|
+
msfrpc-client (1.1.0)
|
|
5
|
+
msgpack
|
|
6
|
+
rex
|
|
7
|
+
|
|
8
|
+
GEM
|
|
9
|
+
remote: https://rubygems.org/
|
|
10
|
+
specs:
|
|
11
|
+
diff-lcs (1.3)
|
|
12
|
+
filesize (0.1.1)
|
|
13
|
+
jsobfu (0.4.2)
|
|
14
|
+
rkelly-remix
|
|
15
|
+
json (2.0.3)
|
|
16
|
+
metasm (1.0.3)
|
|
17
|
+
mini_portile2 (2.1.0)
|
|
18
|
+
msgpack (1.1.0)
|
|
19
|
+
nokogiri (1.7.0.1)
|
|
20
|
+
mini_portile2 (~> 2.1.0)
|
|
21
|
+
rake (12.0.0)
|
|
22
|
+
rb-readline-r7 (0.5.2.0)
|
|
23
|
+
rex (2.0.10)
|
|
24
|
+
filesize
|
|
25
|
+
jsobfu (~> 0.4.1)
|
|
26
|
+
json
|
|
27
|
+
metasm (~> 1.0.2)
|
|
28
|
+
nokogiri
|
|
29
|
+
rb-readline-r7
|
|
30
|
+
robots
|
|
31
|
+
rkelly-remix (0.0.7)
|
|
32
|
+
robots (0.10.1)
|
|
33
|
+
rspec (3.5.0)
|
|
34
|
+
rspec-core (~> 3.5.0)
|
|
35
|
+
rspec-expectations (~> 3.5.0)
|
|
36
|
+
rspec-mocks (~> 3.5.0)
|
|
37
|
+
rspec-core (3.5.4)
|
|
38
|
+
rspec-support (~> 3.5.0)
|
|
39
|
+
rspec-expectations (3.5.0)
|
|
40
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
|
41
|
+
rspec-support (~> 3.5.0)
|
|
42
|
+
rspec-mocks (3.5.0)
|
|
43
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
|
44
|
+
rspec-support (~> 3.5.0)
|
|
45
|
+
rspec-support (3.5.0)
|
|
46
|
+
|
|
47
|
+
PLATFORMS
|
|
48
|
+
ruby
|
|
49
|
+
|
|
50
|
+
DEPENDENCIES
|
|
51
|
+
bundler
|
|
52
|
+
msfrpc-client!
|
|
53
|
+
rake
|
|
54
|
+
rspec
|
|
55
|
+
|
|
56
|
+
BUNDLED WITH
|
|
57
|
+
1.14.6
|
data/LICENSE
CHANGED
|
@@ -1,10 +1,27 @@
|
|
|
1
|
-
Copyright (
|
|
1
|
+
Copyright (C) 2012-2016, Rapid7, Inc.
|
|
2
2
|
All rights reserved.
|
|
3
3
|
|
|
4
|
-
Redistribution and use in source and binary forms, with or without modification,
|
|
4
|
+
Redistribution and use in source and binary forms, with or without modification,
|
|
5
|
+
are permitted provided that the following conditions are met:
|
|
5
6
|
|
|
6
|
-
|
|
7
|
+
* Redistributions of source code must retain the above copyright notice,
|
|
8
|
+
this list of conditions and the following disclaimer.
|
|
7
9
|
|
|
8
|
-
|
|
10
|
+
* Redistributions in binary form must reproduce the above copyright notice,
|
|
11
|
+
this list of conditions and the following disclaimer in the documentation
|
|
12
|
+
and/or other materials provided with the distribution.
|
|
9
13
|
|
|
10
|
-
|
|
14
|
+
* Neither the name of Rapid7 LLC nor the names of its contributors
|
|
15
|
+
may be used to endorse or promote products derived from this software
|
|
16
|
+
without specific prior written permission.
|
|
17
|
+
|
|
18
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
|
19
|
+
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
|
20
|
+
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
21
|
+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
|
|
22
|
+
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
|
23
|
+
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
|
24
|
+
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
|
|
25
|
+
ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
26
|
+
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
|
27
|
+
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
data/Rakefile
CHANGED
|
@@ -1,18 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
require "bundler/gem_tasks"
|
|
2
|
+
require "rspec/core/rake_task"
|
|
2
3
|
|
|
3
|
-
|
|
4
|
-
Rake::Task['clean'].execute
|
|
5
|
-
puts "[*] Building msfrpc-client.gemspec"
|
|
6
|
-
system "gem build msfrpc-client.gemspec &> /dev/null"
|
|
7
|
-
end
|
|
8
|
-
|
|
9
|
-
task :release => :build do
|
|
10
|
-
puts "[*] Pushing msfrpc-client to rubygems.org"
|
|
11
|
-
system "gem push msfrpc-client-*.gem &> /dev/null"
|
|
12
|
-
Rake::Task['clean'].execute
|
|
13
|
-
end
|
|
14
|
-
|
|
15
|
-
task :clean do
|
|
16
|
-
system "rm *.gem &> /dev/null"
|
|
17
|
-
end
|
|
4
|
+
RSpec::Core::RakeTask.new(:spec)
|
|
18
5
|
|
|
6
|
+
task :default => :spec
|
data/msfrpc-client.gemspec
CHANGED
|
@@ -1,27 +1,34 @@
|
|
|
1
1
|
# -*- encoding: utf-8 -*-
|
|
2
2
|
$LOAD_PATH.push File.expand_path('../lib', __FILE__)
|
|
3
|
+
require 'msfrpc-client/version'
|
|
3
4
|
|
|
4
|
-
Gem::Specification.new do |
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
'HD Moore'
|
|
5
|
+
Gem::Specification.new do |spec|
|
|
6
|
+
spec.name = 'msfrpc-client'
|
|
7
|
+
spec.version = Msf::RPC::VERSION
|
|
8
|
+
spec.authors = [
|
|
9
|
+
'HD Moore',
|
|
10
|
+
'Brent Cook'
|
|
9
11
|
]
|
|
10
|
-
|
|
11
|
-
'hdm
|
|
12
|
+
spec.email = [
|
|
13
|
+
'x@hdm.io',
|
|
14
|
+
'bcook@rapid7.com'
|
|
12
15
|
]
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
This gem provides a Ruby client API to access the Rapid7 Metasploit
|
|
16
|
+
spec.homepage = "http://www.metasploit.com/"
|
|
17
|
+
spec.summary = %q{Ruby API for the Rapid7 Metasploit RPC service}
|
|
18
|
+
spec.description = %q{
|
|
19
|
+
This gem provides a Ruby client API to access the Rapid7 Metasploit RPC service.
|
|
17
20
|
}.gsub(/\s+/, ' ').strip
|
|
18
21
|
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
22
|
+
spec.files = `git ls-files`.split("\n")
|
|
23
|
+
spec.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
|
24
|
+
spec.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
|
25
|
+
spec.require_paths = ['lib']
|
|
26
|
+
spec.licenses = ['BSD-2-Clause']
|
|
24
27
|
|
|
25
|
-
|
|
26
|
-
|
|
28
|
+
spec.add_runtime_dependency 'msgpack'
|
|
29
|
+
spec.add_runtime_dependency 'rex'
|
|
30
|
+
|
|
31
|
+
spec.add_development_dependency "bundler"
|
|
32
|
+
spec.add_development_dependency "rake"
|
|
33
|
+
spec.add_development_dependency "rspec"
|
|
27
34
|
end
|
metadata
CHANGED
|
@@ -1,63 +1,100 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: msfrpc-client
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0
|
|
4
|
+
version: 1.1.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- HD Moore
|
|
8
|
+
- Brent Cook
|
|
8
9
|
autorequire:
|
|
9
10
|
bindir: bin
|
|
10
11
|
cert_chain: []
|
|
11
|
-
date:
|
|
12
|
+
date: 2017-03-20 00:00:00.000000000 Z
|
|
12
13
|
dependencies:
|
|
13
14
|
- !ruby/object:Gem::Dependency
|
|
14
15
|
name: msgpack
|
|
15
16
|
requirement: !ruby/object:Gem::Requirement
|
|
16
17
|
requirements:
|
|
17
|
-
- - "~>"
|
|
18
|
-
- !ruby/object:Gem::Version
|
|
19
|
-
version: 0.5.8
|
|
20
18
|
- - ">="
|
|
21
19
|
- !ruby/object:Gem::Version
|
|
22
|
-
version: 0
|
|
20
|
+
version: '0'
|
|
23
21
|
type: :runtime
|
|
24
22
|
prerelease: false
|
|
25
23
|
version_requirements: !ruby/object:Gem::Requirement
|
|
26
24
|
requirements:
|
|
27
|
-
- - "
|
|
25
|
+
- - ">="
|
|
28
26
|
- !ruby/object:Gem::Version
|
|
29
|
-
version: 0
|
|
27
|
+
version: '0'
|
|
28
|
+
- !ruby/object:Gem::Dependency
|
|
29
|
+
name: rex
|
|
30
|
+
requirement: !ruby/object:Gem::Requirement
|
|
31
|
+
requirements:
|
|
30
32
|
- - ">="
|
|
31
33
|
- !ruby/object:Gem::Version
|
|
32
|
-
version: 0
|
|
34
|
+
version: '0'
|
|
35
|
+
type: :runtime
|
|
36
|
+
prerelease: false
|
|
37
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
38
|
+
requirements:
|
|
39
|
+
- - ">="
|
|
40
|
+
- !ruby/object:Gem::Version
|
|
41
|
+
version: '0'
|
|
33
42
|
- !ruby/object:Gem::Dependency
|
|
34
|
-
name:
|
|
43
|
+
name: bundler
|
|
35
44
|
requirement: !ruby/object:Gem::Requirement
|
|
36
45
|
requirements:
|
|
37
|
-
- - "
|
|
46
|
+
- - ">="
|
|
47
|
+
- !ruby/object:Gem::Version
|
|
48
|
+
version: '0'
|
|
49
|
+
type: :development
|
|
50
|
+
prerelease: false
|
|
51
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
52
|
+
requirements:
|
|
53
|
+
- - ">="
|
|
38
54
|
- !ruby/object:Gem::Version
|
|
39
|
-
version: 0
|
|
55
|
+
version: '0'
|
|
56
|
+
- !ruby/object:Gem::Dependency
|
|
57
|
+
name: rake
|
|
58
|
+
requirement: !ruby/object:Gem::Requirement
|
|
59
|
+
requirements:
|
|
40
60
|
- - ">="
|
|
41
61
|
- !ruby/object:Gem::Version
|
|
42
|
-
version: 0
|
|
43
|
-
type: :
|
|
62
|
+
version: '0'
|
|
63
|
+
type: :development
|
|
44
64
|
prerelease: false
|
|
45
65
|
version_requirements: !ruby/object:Gem::Requirement
|
|
46
66
|
requirements:
|
|
47
|
-
- - "
|
|
67
|
+
- - ">="
|
|
48
68
|
- !ruby/object:Gem::Version
|
|
49
|
-
version: 0
|
|
69
|
+
version: '0'
|
|
70
|
+
- !ruby/object:Gem::Dependency
|
|
71
|
+
name: rspec
|
|
72
|
+
requirement: !ruby/object:Gem::Requirement
|
|
73
|
+
requirements:
|
|
74
|
+
- - ">="
|
|
75
|
+
- !ruby/object:Gem::Version
|
|
76
|
+
version: '0'
|
|
77
|
+
type: :development
|
|
78
|
+
prerelease: false
|
|
79
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
80
|
+
requirements:
|
|
50
81
|
- - ">="
|
|
51
82
|
- !ruby/object:Gem::Version
|
|
52
|
-
version: 0
|
|
53
|
-
description: This gem provides a Ruby client API to access the Rapid7 Metasploit
|
|
54
|
-
|
|
83
|
+
version: '0'
|
|
84
|
+
description: This gem provides a Ruby client API to access the Rapid7 Metasploit RPC
|
|
85
|
+
service.
|
|
55
86
|
email:
|
|
56
|
-
- hdm
|
|
87
|
+
- x@hdm.io
|
|
88
|
+
- bcook@rapid7.com
|
|
57
89
|
executables: []
|
|
58
90
|
extensions: []
|
|
59
91
|
extra_rdoc_files: []
|
|
60
92
|
files:
|
|
93
|
+
- ".gitignore"
|
|
94
|
+
- ".ruby-version"
|
|
95
|
+
- ".travis.yml"
|
|
96
|
+
- Gemfile
|
|
97
|
+
- Gemfile.lock
|
|
61
98
|
- LICENSE
|
|
62
99
|
- README.markdown
|
|
63
100
|
- Rakefile
|
|
@@ -66,6 +103,7 @@ files:
|
|
|
66
103
|
- lib/msfrpc-client.rb
|
|
67
104
|
- lib/msfrpc-client/client.rb
|
|
68
105
|
- lib/msfrpc-client/constants.rb
|
|
106
|
+
- lib/msfrpc-client/version.rb
|
|
69
107
|
- msfrpc-client.gemspec
|
|
70
108
|
homepage: http://www.metasploit.com/
|
|
71
109
|
licenses:
|
|
@@ -87,9 +125,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
87
125
|
version: '0'
|
|
88
126
|
requirements: []
|
|
89
127
|
rubyforge_project:
|
|
90
|
-
rubygems_version: 2.
|
|
128
|
+
rubygems_version: 2.6.10
|
|
91
129
|
signing_key:
|
|
92
130
|
specification_version: 4
|
|
93
|
-
summary: Ruby API for the Rapid7 Metasploit
|
|
131
|
+
summary: Ruby API for the Rapid7 Metasploit RPC service
|
|
94
132
|
test_files: []
|
|
95
|
-
has_rdoc:
|