Update hatcloud.rb
parent
9ad4c1d614
commit
996ff9e974
|
@ -86,7 +86,7 @@ end
|
|||
target = "http://ipinfo.io/#{regex}/json"
|
||||
url = URI(target).read
|
||||
json = JSON.parse(url)
|
||||
puts "[+] Hostname: ".green + json['hostname']
|
||||
puts "[+] Hostname: ".green + json['hostname'].to_s
|
||||
puts "[+] City: ".green + json['city']
|
||||
puts "[+] Region: ".green + json['country']
|
||||
puts "[+] Location: ".green + json['loc']
|
||||
|
|
Loading…
Reference in New Issue