Update hatcloud.rb
parent
9901807320
commit
d0e69fcf1e
21
hatcloud.rb
21
hatcloud.rb
|
@ -3,6 +3,9 @@ require 'open-uri'
|
||||||
require 'json'
|
require 'json'
|
||||||
require 'socket'
|
require 'socket'
|
||||||
require 'optparse'
|
require 'optparse'
|
||||||
|
require 'timeout'
|
||||||
|
|
||||||
|
|
||||||
def banner()
|
def banner()
|
||||||
red = "\033[01;31m"
|
red = "\033[01;31m"
|
||||||
green = "\033[01;32m"
|
green = "\033[01;32m"
|
||||||
|
@ -28,13 +31,15 @@ options = {:bypass => nil}
|
||||||
parser = OptionParser.new do|opts|
|
parser = OptionParser.new do|opts|
|
||||||
|
|
||||||
opts.banner = "Exemple: ruby cloudhat.rb -b <your target> or ruby cloudhat.rb --byp <your target>"
|
opts.banner = "Exemple: ruby cloudhat.rb -b <your target> or ruby cloudhat.rb --byp <your target>"
|
||||||
opts.on('-b ','--byp ', 'Generetor IP for BootNet', String)do |bypass|
|
opts.on('-b ','--byp ', 'Discorver real IP (bypass cloudflare)', String)do |bypass|
|
||||||
options[:bypass]=bypass;
|
options[:bypass]=bypass;
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
opts.on('-h', '--help', 'Help') do
|
opts.on('-h', '--help', 'Help') do
|
||||||
banner()
|
banner()
|
||||||
puts opts
|
puts opts
|
||||||
|
puts "Exemple: ruby cloudhat.rb -b discordapp.com or ruby cloudhat.rb --byp discordapp.com"
|
||||||
exit
|
exit
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
@ -44,22 +49,26 @@ parser.parse!
|
||||||
|
|
||||||
|
|
||||||
banner()
|
banner()
|
||||||
|
|
||||||
l = options[:bypass]
|
l = options[:bypass]
|
||||||
|
|
||||||
|
|
||||||
uri = URI ("http://www.crimeflare.com/cgi-bin/cfsearch.cgi")
|
uri = URI ("http://www.crimeflare.com/cgi-bin/cfsearch.cgi")
|
||||||
res = Net::HTTP.post_form(uri, 'cfS' => options[:bypass])
|
res = Net::HTTP.post_form(uri, 'cfS' => options[:bypass])
|
||||||
|
|
||||||
x = res.body
|
x = res.body
|
||||||
y = /(\d*\.\d*\.\d*\.\d*)/.match(x)
|
y = /(\d*\.\d*\.\d*\.\d*)/.match(x)
|
||||||
k = IPSocket.getaddress (options[:bypass])
|
k = IPSocket.getaddress (options[:bypass])
|
||||||
puts "[+] Site analise: #{l} "
|
|
||||||
puts "[+] Ip cloudflare is #{k} "
|
puts "[+] Site analysis: #{l} "
|
||||||
|
puts "[+] IP CloudFlare is #{k} "
|
||||||
puts "[+] IP real is #{y}"
|
puts "[+] IP real is #{y}"
|
||||||
target = "http://ipinfo.io/#{y}/json"
|
target = "http://ipinfo.io/#{y}/json"
|
||||||
url = URI(target).read
|
url = URI(target).read
|
||||||
json = JSON.parse(url)
|
json = JSON.parse(url)
|
||||||
puts "[+] Hostname: " + json['hostname']
|
puts "[+] Hostname: " + json['hostname']
|
||||||
puts "[+] Cidade: " +json['city']
|
puts "[+] City: " +json['city']
|
||||||
puts "[+] Region: " + json['country']
|
puts "[+] Region: " + json['country']
|
||||||
puts "[+] Location: " + json['loc']
|
puts "[+] Location: " + json['loc']
|
||||||
puts "[+] Organization: " + json['org']
|
puts "[+] Organization: " + json['org']
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue