Update hatcloud.rb

master
Mateus Lino 2018-05-06 11:59:12 -03:00 committed by GitHub
parent 9ad4c1d614
commit 996ff9e974
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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']