my_hostname 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- 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: b5d8f213f738b7a79c8dd00760b7e958c3498224810f0310681f787b37cc89e1
|
4
|
+
data.tar.gz: e1c55f3527989e931e2ed7cae7f243a0d181976e73ddaae8f928d1f85130e4ef
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: a2f613b786ca28207ee487f953eabb391980464e5522cd87706cbad15ce0d053403356dcfaef975e0d31a4bc22d65716236dcc7f281d4b023c644243e263c939
|
7
|
+
data.tar.gz: 3094128fdf350ac1a41d17a9dffe0f6f99598af6b04a299d17f5f95bf5aed6af4b97ef0a694c0c94711056c7f7ba74eb89f57831f97d2182e481b41572cf7f17
|
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
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.6
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Monika Talekar
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2023-07-19 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: []
|