require 'socket'
host = 'www.dragonjar.org'
puerto = 80
dir = "/index.php"
request = "GET #{dir} HTTP/1.0\r\n\n"
socket = TCPSocket.open(host,puerto)
socket.print(request)
response = socket.read
headers,code = response.split("\r\n\r\n\n\n", 2)
print code
#Designed by Dédalo
#camilo.galdos[at]dragonjar.org -> mail me for coding
host = 'www.dragonjar.org'
puerto = 80
dir = "/index.php"
request = "GET #{dir} HTTP/1.0\r\n\n"
socket = TCPSocket.open(host,puerto)
socket.print(request)
response = socket.read
headers,code = response.split("\r\n\r\n\n\n", 2)
print code
#Designed by Dédalo
#camilo.galdos[at]dragonjar.org -> mail me for coding
Saludos
Dr.White
No hay comentarios:
Publicar un comentario