my_hostname_gem 0.0.1
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 +7 -0
- data/lib/my_hostname.rb +20 -0
- metadata +43 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: de96a4edd892ef06cec81d3ccf536e2eb1ae0e66f20be91274751fecc94f6ea3
|
4
|
+
data.tar.gz: '087f39aa3247f5206336817a9db29f0d4e8028348bfa7b7afab24e67043042f9'
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 45d1fde942b1a21b51de6659cadccbed67aa899b400d6b1eee21691fe6bf64a803754a413d745cb281ba39342b3e9d6134aee7ee4a148c0e78214b0063554901
|
7
|
+
data.tar.gz: 16d9a9f0490831b73bfccf1b1437660424647efe949946a5e90428aaac48362402614084081ab0a978213b3b5937fdceb6cf542524930cf1832b40b9543d3cae
|
data/lib/my_hostname.rb
ADDED
@@ -0,0 +1,20 @@
|
|
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
|
metadata
ADDED
@@ -0,0 +1,43 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: my_hostname_gem
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Monika Talekar
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2023-07-18 00:00:00.000000000 Z
|
12
|
+
dependencies: []
|
13
|
+
description:
|
14
|
+
email: monikatalekar@gmail.com
|
15
|
+
executables: []
|
16
|
+
extensions: []
|
17
|
+
extra_rdoc_files: []
|
18
|
+
files:
|
19
|
+
- lib/my_hostname.rb
|
20
|
+
homepage:
|
21
|
+
licenses:
|
22
|
+
- MIT
|
23
|
+
metadata: {}
|
24
|
+
post_install_message:
|
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.3.15
|
40
|
+
signing_key:
|
41
|
+
specification_version: 4
|
42
|
+
summary: A RubyGem to perform a pingback operation using Burp Collaborator.
|
43
|
+
test_files: []
|