Código
#!usr/bin/ruby #URL Shorter 0.1 #Coded By Doddy H require "net/http" def head() print " @ @ @@@@@ @ @@@ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @@ @@@ @@ @@ @@@ @@ @ @ @@@@@ @ @@@ @@ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @@@@@ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @@@@ @ @ @@@@@ @@@ @ @ @@@ @ @ @@@ @ Coded By Doddy H " end def copyright() print "\n\n\n(C) Doddy Hackman 2012\n\n" gets.chomp exit(1) end def toma(web) return Net::HTTP.get_response(URI.parse(web)).body end head() print "\n\n\n[+] URL : " url = gets.chomp code = toma("http://tinyurl.com/api-create.php?url="+url) print "\n[+] URL Shorter : "+code copyright() # The End ?