elhacker.net cabecera Bienvenido(a), Visitante. Por favor Ingresar o Registrarse
¿Perdiste tu email de activación?.
 
Inicio Ayuda Buscar Ingresar Registrarse
29 Mayo 2012, 05:19  


Tema destacado: Recuerda que debes registrarte en el foro para poder participar (preguntar y responder)

+  Foro de elhacker.net
|-+  Programación
| |-+  Scripting (Moderadores: Novlucker, Leo Gutiérrez., EleKtro H@cker)
| | |-+  [Ruby] URL Shorter 0.1
0 Usuarios y 1 Visitante están viendo este tema.
Páginas: [1] Ir Abajo Respuesta Imprimir
Autor Tema: [Ruby] URL Shorter 0.1  (Leído 141 veces)
Doddy

Desconectado Desconectado

Mensajes: 220



Ver Perfil
[Ruby] URL Shorter 0.1
« en: 6 Febrero 2012, 19:42 »

un simple script para simplificar URLS.

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 ?
 


En línea

Páginas: [1] Ir Arriba Respuesta Imprimir 

Ir a:  

Mensajes similares
Asunto Iniciado por Respuestas Vistas Último mensaje
Ruby y Ruby on Rails
Programación General
Nanocity 2 675 Último mensaje 31 Octubre 2007, 21:32
por alone-in-the-chat
[Introducing Ruby] Lo que debes saber sobre Ruby
Scripting
RyogiShiki 0 1,946 Último mensaje 4 Marzo 2011, 20:45
por RyogiShiki
[Ruby] IRC Bot
Scripting
Doddy 0 541 Último mensaje 7 Octubre 2011, 01:30
por Doddy
[Python] URL Shorter 0.1
Scripting
Doddy 4 434 Último mensaje 8 Febrero 2012, 15:05
por Doddy
[Perl] URL Shorter 0.1
Scripting
Doddy 0 101 Último mensaje 6 Febrero 2012, 19:43
por Doddy
Powered by SMF 1.1.16 | SMF © 2006-2008, Simple Machines