msfrpc-simple 0.0.2 → 0.0.3
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.
data/lib/msfrpc-simple/client.rb
CHANGED
@@ -20,7 +20,7 @@ module Msf
|
|
20
20
|
# project - project name we want to use for this connection.
|
21
21
|
#
|
22
22
|
# Returns nothing.
|
23
|
-
def initialize(project="default", username, password, user_opts)
|
23
|
+
def initialize(project="default", username, password, user_opts=nil)
|
24
24
|
|
25
25
|
#
|
26
26
|
# Merge our project in, and set this as the project we'll
|
@@ -36,7 +36,7 @@ module Msf
|
|
36
36
|
user_opts.merge!(conn_params)
|
37
37
|
|
38
38
|
#
|
39
|
-
# Connect to the RPC daemon using the default
|
39
|
+
# Connect to the RPC daemon using the default client
|
40
40
|
#
|
41
41
|
@client = Msf::RPC::Client.new(user_opts)
|
42
42
|
|
@@ -152,7 +152,14 @@ module Msf
|
|
152
152
|
#
|
153
153
|
# This module runs a number of _login modules
|
154
154
|
#
|
155
|
-
def
|
155
|
+
def bruteforce_host(options)
|
156
|
+
return "Not Implemented"
|
157
|
+
end
|
158
|
+
|
159
|
+
#
|
160
|
+
# This module runs a number of exploit modules
|
161
|
+
#
|
162
|
+
def bruteforce_host(options)
|
156
163
|
return "Not Implemented"
|
157
164
|
end
|
158
165
|
|
@@ -7,7 +7,7 @@ module Msf
|
|
7
7
|
def start_report(options)
|
8
8
|
raise "Not Implemented"
|
9
9
|
=begin
|
10
|
-
task = @
|
10
|
+
task = @client.call("pro.start_report", {
|
11
11
|
'DS_REPORT_TYPE' => options[:report_type],
|
12
12
|
'DS_WHITELIST_HOSTS' => options[:whitelist],
|
13
13
|
'DS_BLACKLIST_HOSTS' => options[:blacklist],
|
@@ -36,7 +36,7 @@ module Msf
|
|
36
36
|
def start_discover(options)
|
37
37
|
raise "Not Implemented"
|
38
38
|
|
39
|
-
#task = @
|
39
|
+
#task = @client.call("pro.start_discover", {
|
40
40
|
# 'DS_WHITELIST_HOSTS' => options[:whitelist],
|
41
41
|
# 'DS_BLACKLIST_HOSTS' => options[:blacklist],
|
42
42
|
# 'workspace' => options[:workspace],
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: msfrpc-simple
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-
|
12
|
+
date: 2012-11-24 00:00:00.000000000 Z
|
13
13
|
dependencies: []
|
14
14
|
description: Simple wrapper for the Metasploit RPC API
|
15
15
|
email:
|