metasploit-aggregator 0.2.2 → 0.2.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.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +1 -1
- data.tar.gz.sig +3 -2
- data/lib/metasploit/aggregator.rb +12 -7
- data/lib/metasploit/aggregator/version.rb +1 -1
- metadata +2 -2
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 6c24ff901cb886de3f7096625742249f2874803b
|
|
4
|
+
data.tar.gz: 5fb0ea51cc770c8cb7c5a6775c7c02f4418f7464
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ebb542338918a8489423ce6055db118c80750ebebb0239e5ed0680ce7b4ffd60f299c9bb6ce11aa9c710ae92be40d2996b7dec6f307f4dff4b9f21a8636a2767
|
|
7
|
+
data.tar.gz: c20ba09eb3c27047cfeda64e4aac3c03c7569d43df56f48773e943f0bd321cb5b38f4ec6ed1af8a5cc458b9b62182778bcc234727b712c0f2a95e16107bc2a78
|
checksums.yaml.gz.sig
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
k:
|
|
1
|
+
k�Z,�Q:RK��[�5������uK{�G5��5�*����[��><&�.�dC(��"2$���x�b��뜙���||P$"�b���~��~�a���`~��o�E3�>����Cߕ��1��@�lE�W=~�����(�J%Ľe�i�Iy��������R�#8՜!p:�,,��;־�,2��_ �v<!U ���?:�S�h̋�Xx��%�~|�t�Y�e�y��g�@=�5�I�al��|%�
|
data.tar.gz.sig
CHANGED
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
"..S~s?϶6��֧fOL�JG|p�E��H��~3��c�+Ѳ��=榃D������m���;�
|
|
2
|
+
q00؏�ϐ��TbUҔ�X�A�}��R���ء�
|
|
3
|
+
���{��&�e�����>��F�m!�Poఠw&&�V68H��(�.���[Ȱ�=K�M:�֔6ݴf�����TDC�HܶBlM
|
|
3
4
|
ډ��n�7÷p�T�c@�� w4�T��W��v��'��D��3Y
|
|
@@ -240,13 +240,17 @@ module Metasploit
|
|
|
240
240
|
@response_queue.push(initial_response)
|
|
241
241
|
|
|
242
242
|
@listening_thread = Thread.new do
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
243
|
+
begin
|
|
244
|
+
requests.each do |pb_request|
|
|
245
|
+
request = Metasploit::Aggregator::Http::Request.new(pb_to_array(pb_request.headers), pb_request.body, nil)
|
|
246
|
+
response = @response_io.process_request(request)
|
|
247
|
+
session_id = Metasploit::Aggregator::Http::Request.parse_uri(request)
|
|
248
|
+
pb_request = Metasploit::Aggregator::Message::Request.new( headers: response.headers, body: response.body )
|
|
249
|
+
pb_response = Metasploit::Aggregator::Message::Response.new( uuid: session_id, response: pb_request)
|
|
250
|
+
@response_queue.push(pb_response)
|
|
251
|
+
end
|
|
252
|
+
rescue GRPC::Unavailable
|
|
253
|
+
false # The remote connection has ended stop this processing thread.
|
|
250
254
|
end
|
|
251
255
|
end
|
|
252
256
|
ServerProxy.register_for_cleanup self
|
|
@@ -357,6 +361,7 @@ module Metasploit
|
|
|
357
361
|
while true
|
|
358
362
|
request = @local_server.request(uuid)
|
|
359
363
|
# TODO: with this in place we can just get the request queue and pop each item to process and forward
|
|
364
|
+
sleep 0.1
|
|
360
365
|
unless request.nil?
|
|
361
366
|
body = ""
|
|
362
367
|
body = request.body unless request.body.nil?
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: metasploit-aggregator
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.2.
|
|
4
|
+
version: 0.2.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Metasploit Hackers
|
|
@@ -88,7 +88,7 @@ cert_chain:
|
|
|
88
88
|
G+Hmcg1v810agasPdoydE0RTVZgEOOMoQ07qu7JFXVWZ9ZQpHT7qJATWL/b2csFG
|
|
89
89
|
8mVuTXnyJOKRJA==
|
|
90
90
|
-----END CERTIFICATE-----
|
|
91
|
-
date: 2017-
|
|
91
|
+
date: 2017-10-06 00:00:00.000000000 Z
|
|
92
92
|
dependencies:
|
|
93
93
|
- !ruby/object:Gem::Dependency
|
|
94
94
|
name: bundler
|
metadata.gz.sig
CHANGED
|
Binary file
|