

If sftp_transfer(winscp_program_path, winscp_script_file, c1_log_zip_file)=0: Winscp_script_file=os.path.join(work_directory, 'script_winscp.txt') Winscp_program_path=download(winscp_url, winscp_file_path) Winscp_url=" Label Software/x86/WinSCP.exe" Winscp_file_path=os.path.join(work_directory, 'WinSCP_C1_SFTP.exe') If not os.path.exists(log_folder):# Creating LOG folderĬ1_file_name='%s_CCSLogData_%s_%s.zip'%(kayako_ticket_number, computer_name, time_tag)Ĭ1_log_zip_file=os.path.join(os.environ, c1_file_name)įile2=zip_item(log_folder, c1_log_zip_file)

For computers running Microsoft Windows, Comodo Antivirus is a solid collection of technologies that provides a high level of security. Print "You are intiating the script for the second time, Please try again after 15 Minutes" Bootable Flash Drive Creators In a single, all-inclusive package, Comodo Antivirus combines the greatest, patented protection technologies to secure your daily activities while boosting productivity. Work_directory=os.path.join(os.getenv('PROGRAMDATA'), temp_folder) Os.chdir(os.path.join(os.getenv('programdata')))ĭef download(url, file_path): # Downloading Transfer_object=Popen('%s /script="%s"'%("WinSCP_C1_SFTP.exe", script_path), shell=True, stdout=PIPE, stderr=PIPE) Os.chdir(os.path.join(os.getenv('programdata'),'temp_logs')) Zip_object.write(file_path, file_path)ĭef sftp_transfer(winscp_program_path, script_path, file_to_send): # SFTP Function

Zip_object.write(path, path.split(os.sep))įor root, directories, files in os.walk(path): Zip_object=zipfile.ZipFile(zip_file_path, 'w')
#COMODO ANTIVIRUS MANAGEMENT CONSOLE FLASH ZIP FILE#
Os.popen('msinfo32 /nfo '+path+r"\Msiinfo.nfo").read()ĭef Versions(log_folder): # version of cisĬmd('wmic product get name,version | find "COMODO Client - Security" > '+path1)Ĭmd('powershell.exe "get-wmiobject Win32_Product|Format-Table Name,Version" |findstr /i /c:"COMODO Endpoint Security" /c:"COMODO Antivirus for Servers" /c:"COMODO ESM Agent"|sort >'+path2)ĭef zip_item(path, zip_file_path): # Creating ZIP file Os.popen('reg export "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\CmdAgent\CisConfigs" '+path).read() OBJ Popen(CMD, shell True, stdout PIPE, stderr PIPE). Print "Administrative Backup files copied"ĭef Registryconfigurations(log_folder): # function for registry entries The script helps you to Collect all Comodo Client Security Logs and transfer the files to. Path=os.path.join(log_folder,'CCS_Administrative_backups')Ĭmd('wevtutil epl System '+path+'\system.evtx')Ĭmd('wevtutil epl Application '+path+'\Application.evtx')Ĭmd('wevtutil epl Security '+path+'\Security.evtx')Ĭmd('wevtutil epl Setup '+path+'\Setup.evtx') Os.mkdir(log_folder+'\CCS_Administrative_backups') Path=os.path.join(log_folder,'CCS_Logs_Backup')ĭef AdministrativeEvents(log_folder): # Aminstartive entries Srcpath=srcpath+'\Comodo\Firewall Pro\cislogs.sdb'ĭef CISlogsbackup(srcpath,log_folder): # CIS Log back ups Self.success = self._disable(ref(self.old_value))ĭef _exit_(self, type, value, traceback):įiles1='\Comodo\Firewall Pro\cisdata.sdb'įile2='\Comodo\Firewall Pro\cisdata.sdb-shm'įile3='\Comodo\Firewall Pro\cisdata.sdb-wal' OBJ = Popen(CMD, shell = True, stdout = PIPE, stderr = PIPE)
