metasploit_data_models 3.0.6 → 3.0.7

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: efbf351f64b4a93f1afd048bb165bf2296afbfd9
4
- data.tar.gz: e66caa2b50cc9b68d2c7a28590b3f4bbcebf6198
3
+ metadata.gz: 9e3a9f464f4c5acf236ec313b67d8e4686298ef9
4
+ data.tar.gz: a56be8865bd99ea4d7ba17d97399744ac6ae9500
5
5
  SHA512:
6
- metadata.gz: bba1790cd8dceb51f909cd8badf9d2e16f18e7539e817b1bfaf520c80ccaf9f89708d49da2bdec9a6ebf960d48fe031375afcbec25f0f3d063d4dba58bff2a73
7
- data.tar.gz: d1d1271a17cd7debe802fb0ee717b3c59764e374fabc76c34e555ab955c12d92890fef71a6f7a6723d1d178740d985f0ce816135d4cd6dbae945c13e2f61852c
6
+ metadata.gz: 661b24819d081fbf080693d538b60088fe25104a579c44ca574100772fd5a2d99d8692e2811b29f33f3642aa94aa0c8ca8e2de98e07ce32f960300dbd0191074
7
+ data.tar.gz: 5f0da1d61c0eb886bd9b809b0c9b92be1b1ce1d1a76572b47f94fde0baf35b7b8def20a8c0418744db3458aea6c3bfbd23d99d182502ea2d26b46117c517633c
checksums.yaml.gz.sig CHANGED
Binary file
data.tar.gz.sig CHANGED
Binary file
@@ -0,0 +1,79 @@
1
+ # An asychronous callback that has been received by the Mettle Pingback Listener and is logged
2
+ class Mdm::AsyncCallback < ActiveRecord::Base
3
+ extend ActiveSupport::Autoload
4
+
5
+ include Metasploit::Model::Search
6
+
7
+ #
8
+ # Associations
9
+ #
10
+
11
+ # @!attribute [rw] workspace
12
+ # {Mdm::Workspace} in which this payload was created.
13
+ #
14
+ # @return [Mdm::Workspace]
15
+ belongs_to :workspace,
16
+ class_name: 'Mdm::Workspace',
17
+ inverse_of: :payloads
18
+
19
+
20
+ #
21
+ # Attributes
22
+ #
23
+
24
+ # @!attribute [rw] uuid
25
+ # A 16-byte unique identifier for this payload. The UUID is encoded to include specific information.
26
+ # See lib/msf/core/payload/uuid.rb in the https://github.com/rapid7/metasploit-framework repo.
27
+ #
28
+ # @return [String]
29
+
30
+ # @!attribute [rw] timestamp
31
+ # The Unix format timestamp when this payload called back.
32
+ #
33
+ # @return [Integer]
34
+
35
+ # @!attribute [rw] listener_uri
36
+ # Non-unique URIs (eg. "tcp://192.168.1.7:4444") which received callbacks from this payload.
37
+ #
38
+ # @return [String]
39
+
40
+ # @!attribute [rw] target_host
41
+ # The IP address (eg. "192.168.1.7" or "fe80::1") from which the callback originated, from the view of the callback listener.
42
+ #
43
+ # @return [String]
44
+
45
+ # @!attribute [rw] target_port
46
+ # The IP port (eg. "4444") from which the callback originated, from the view of the callback listener.
47
+ #
48
+ # @return [Integer]
49
+
50
+ # @!attribute [rw] workspace_id
51
+ # The ID of the workspace this payload belongs to.
52
+ #
53
+ # @return [Integer]
54
+
55
+ #
56
+ # Validations
57
+ #
58
+
59
+ validates :workspace, :presence => true
60
+
61
+
62
+ #
63
+ # Search Attributes
64
+ #
65
+
66
+ search_attribute :uuid,
67
+ type: :string
68
+
69
+ #
70
+ # Serializations
71
+ #
72
+
73
+ # NONE
74
+
75
+
76
+ public
77
+
78
+ Metasploit::Concern.run(self)
79
+ end
@@ -84,6 +84,9 @@ class Mdm::Workspace < ActiveRecord::Base
84
84
  # Payloads for this workspace.
85
85
  has_many :payloads, :class_name => 'Mdm::Payload'
86
86
 
87
+ # Callbacks for this workspace.
88
+ has_many :async_callbacks, :class_name => 'Mdm::AsyncCallback'
89
+
87
90
  #
88
91
  # Attributes
89
92
  #
@@ -0,0 +1,14 @@
1
+ class CreateAsyncCallbacks < ActiveRecord::Migration
2
+ def change
3
+ create_table :async_callbacks do |t|
4
+ t.string :uuid
5
+ t.integer :timestamp
6
+ t.string :listener_uri
7
+ t.string :target_host
8
+ t.string :target_port
9
+
10
+ t.timestamps null: false
11
+ t.uuid null: false
12
+ end
13
+ end
14
+ end
data/lib/mdm.rb CHANGED
@@ -3,6 +3,7 @@ module Mdm
3
3
  extend ActiveSupport::Autoload
4
4
 
5
5
  autoload :ApiKey
6
+ autoload :AsyncCallback
6
7
  autoload :Client
7
8
  autoload :Cred
8
9
  autoload :Event
@@ -1,6 +1,6 @@
1
1
  module MetasploitDataModels
2
2
  # VERSION is managed by GemRelease
3
- VERSION = '3.0.6'
3
+ VERSION = '3.0.7'
4
4
 
5
5
  # @return [String]
6
6
  #
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: metasploit_data_models
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.6
4
+ version: 3.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samuel Huckins
@@ -91,7 +91,7 @@ cert_chain:
91
91
  G+Hmcg1v810agasPdoydE0RTVZgEOOMoQ07qu7JFXVWZ9ZQpHT7qJATWL/b2csFG
92
92
  8mVuTXnyJOKRJA==
93
93
  -----END CERTIFICATE-----
94
- date: 2019-03-04 00:00:00.000000000 Z
94
+ date: 2019-03-08 00:00:00.000000000 Z
95
95
  dependencies:
96
96
  - !ruby/object:Gem::Dependency
97
97
  name: metasploit-yard
@@ -344,6 +344,7 @@ files:
344
344
  - Rakefile
345
345
  - UPGRADING.md
346
346
  - app/models/mdm/api_key.rb
347
+ - app/models/mdm/async_callback.rb
347
348
  - app/models/mdm/client.rb
348
349
  - app/models/mdm/cred.rb
349
350
  - app/models/mdm/event.rb
@@ -554,6 +555,7 @@ files:
554
555
  - db/migrate/20160415153312_remove_not_null_from_web_vuln_p_arams.rb
555
556
  - db/migrate/20161004165612_add_fingerprinted_to_workspace.rb
556
557
  - db/migrate/20161227212223_add_os_family_to_hosts.rb
558
+ - db/migrate/20180308134512_create_async_callbacks.rb
557
559
  - db/migrate/20180904120211_create_payloads.rb
558
560
  - lib/mdm.rb
559
561
  - lib/mdm/host/operating_system_normalization.rb
metadata.gz.sig CHANGED
Binary file