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

Function attack_sent1

BOTNETc2/cnc.py:543–557  ·  view source on GitHub ↗
(ip, port, secs, client)

Source from the content-addressed store, hash-verified

541"""
542
543def attack_sent1(ip, port, secs, client):
544 global send_attack_target
545 loadering(client)
546 color_random = f'\x1b[38;5;{randint(0,255)}m'
547 send(client, f"")
548 for x in banner.split('\n'):
549 send(client,f'{color_random}'+x)
550 time.sleep(0.2)
551 message_flooding = f"""╔═════════════════════════════ > _\n ! SEND ATTACKING !\n ═════════════════════════\n IP {ip}\n PORT {port}\n TIME {secs}\n ═════════════════════════\n </> </> </> </> </> </>\n╚═════════════════════════════[ {len(bots)} botnet ] >_"""
552 color_random = f'\x1b[38;5;{randint(0,255)}m'
553 for x in message_flooding.split('\n'):
554 send(client,f'{color_random}'+x)
555 time.sleep(0.2)
556 send(client,f"\033[32mSuccessfully sent command 📃")
557 send_attack_target += 1
558
559def attack_sent2(ip, port, secs, size, client):
560 global send_attack_target

Callers

nothing calls this directly

Calls 2

loaderingFunction · 0.70
sendFunction · 0.70

Tested by

no test coverage detected