metasploit-runner 0.1.6 → 0.1.8

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4bb75550e85c0732ecd62feb3eb1c8c149f5f7a3
4
- data.tar.gz: 9ca0b010c3becf3364811bdafe0cb1498fcb0175
3
+ metadata.gz: ade37ee5ad6a5f514b47ade631cc9c3c2504ef65
4
+ data.tar.gz: f3ca83cd02dec9d40044cd9e6d0f9b636c394bd3
5
5
  SHA512:
6
- metadata.gz: c2f222fa88b8fb2ae7805ef8c4fa8d97811b355e1a61b70944ffa4fc7fc802627974adf58bb5f431c1ebe064c077ea04e168ee1ef31c80fa3dbdca029e59e654
7
- data.tar.gz: c4726d89905d7a30a0725d79e17c2f88db1ef24d318265a5dfefb6685621174a69472a923d6b752b3e7eeb14fd83fe559e1b976efdf99712dfdbe0e7b26e627f
6
+ metadata.gz: 7b8567fecac69cb76a7b1f3ebced3073aff8356a86e0d62d5b0cc361ca93d8a504d1f29d3b3627aadec406e13cb2625c090511256ac5ddedd9d9b9287fd069f9
7
+ data.tar.gz: 3a8e4a7e9bd96837186a965a73da69b92d1681ced7b00e9043f49a6d4cd12d08a5b7f5a79e127cac353db45f8646daea9ed216f9dbfe0243b580938c9f7491d2
@@ -1,3 +1,3 @@
1
1
  module MetasploitPenTestScript
2
- VERSION = "0.1.6"
2
+ VERSION = "0.1.8"
3
3
  end
@@ -68,16 +68,18 @@ module Metasploit
68
68
  end
69
69
 
70
70
  def self.wait_for_task_to_stop_running(rpc_client, status_message, task_id)
71
- sleep(3)
72
- status = rpc_client.call('pro.task_status', task_id)
73
- puts status_message
74
- progress = status.fetch(task_id, {}).fetch('progress', {})
75
- puts "This task is #{progress} % complete"
76
- info = status.fetch(task_id, {}).fetch('info', {})
77
- puts "I am currently executing: #{info}"
78
- status = status.fetch(task_id, {}).fetch('status', {})
79
-
80
- wait_for_task_to_stop_running(rpc_client, status_message, task_id) if status == CONSTANTS::RUNNING_IMPORT_STATUS
71
+ loop do
72
+ sleep(3)
73
+ status = rpc_client.call('pro.task_status', task_id)
74
+ puts status_message
75
+ progress = status.fetch(task_id, {}).fetch('progress', {})
76
+ puts "This task is #{progress} % complete"
77
+ info = status.fetch(task_id, {}).fetch('info', {})
78
+ puts "I am currently executing: #{info}"
79
+ status = status.fetch(task_id, {}).fetch('status', {})
80
+
81
+ break if status != CONSTANTS::RUNNING_IMPORT_STATUS
82
+ end
81
83
  end
82
84
  end
83
85
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: metasploit-runner
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.6
4
+ version: 0.1.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nathan Gibson
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-12-14 00:00:00.000000000 Z
11
+ date: 2014-12-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: msfrpc-client