• Earn real money by being active: Hello Guest, earn real money by simply being active on the forum — post quality content, get reactions, and help the community. Once you reach the minimum credit amount, you’ll be able to withdraw your balance directly. Learn how it works.

Ruby [Ruby] URL Shorter 0.1

Status
Not open for further replies.

Doddy

Leech
User
Joined
Apr 1, 2012
Messages
169
Reputation
0
Reaction score
406
Points
63
Credits
0
‎13 Years of Service‎
57%
un simple script para simplificar URLS.

Code:
>
#!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 ?
 
Status
Not open for further replies.
Back
Top