Update random methods with randbytes
This commit is contained in:
parent
1d2ff5999a
commit
51f9105efa
1 changed files with 32 additions and 3 deletions
33
main.py
33
main.py
|
@ -1,4 +1,4 @@
|
|||
import sys
|
||||
# import sys
|
||||
import os
|
||||
import random
|
||||
import platform
|
||||
|
@ -6,6 +6,13 @@ import argparse
|
|||
import threading
|
||||
import socket
|
||||
|
||||
# TODO: Read docs on time, os, random, and platform
|
||||
# TODO: Take questions to Mastodon
|
||||
# TODO: Eat good food
|
||||
# TODO: Get plenty of water and sleep
|
||||
|
||||
|
||||
# ANSI colors with proper escape
|
||||
R = '\033[31m'
|
||||
G = '\033[32m'
|
||||
C = '\033[36m'
|
||||
|
@ -19,13 +26,35 @@ W = '\033[0m'
|
|||
# what that means for the network being scanned
|
||||
|
||||
|
||||
sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
|
||||
sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
|
||||
sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
|
||||
sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
|
||||
|
||||
bytes1 = random.randbytes(2000)
|
||||
bytes2 = random.randbytes(2900)
|
||||
system = platform.uname()[0]
|
||||
|
||||
|
||||
def check_os():
|
||||
if system == 'Windows':
|
||||
os.system("cls")
|
||||
elif system == 'Unix':
|
||||
os.system("clear")
|
||||
|
||||
|
||||
# Just added stupid infinite loop to shut up PyCharm complaints
|
||||
# The loop is stupid and doesn't work, but it is just filler
|
||||
|
||||
def ddos(target, port, ipaddress):
|
||||
try:
|
||||
while True:
|
||||
|
||||
num = 0
|
||||
num2 = 1
|
||||
comp = num < num2
|
||||
print(f"{comp}, infinite loop son")
|
||||
except:
|
||||
print("some more dummy text yo")
|
||||
|
||||
|
||||
for i in range(150):
|
||||
|
|
Loading…
Reference in a new issue