Fixed file copying in Email Prompt

This commit is contained in:
sTiKyt 2020-05-09 19:33:45 +03:00
parent e46239a09a
commit 8999527109
No known key found for this signature in database
GPG Key ID: 510E1C3C9B2414B4

View File

@ -1,4 +1,4 @@
from Defs.ImportManager.unsorted_will_be_replaced import run_command, wait, path, system, getpass, base64
from Defs.ImportManager.unsorted_will_be_replaced import run_command, wait, path, system, getpass, base64, copyfile
import Defs.ThemeManager.theme as theme
import Defs.ActionManager.simple_informant as simple_informant
@ -58,7 +58,8 @@ def captured_data_email_configuration_prompt():
{1}http://github.com/darksecdevelopers
{0}** BY: {1}DARKSEC {0}**'''.format(default_palette[0], default_palette[2]))
print("-------------------------------\n{0}[ PROMPT: CONFIG EMAIL CREDENTIAL FILE ]{1}!! {0}\n-------------------------------".format(default_palette[0], default_palette[4]))
run_command('cp Defs/Send_Email/EmailConfigDefault.py Defs/Send_Email/emailconfig.py')
#run_command('cp Defs/Send_Email/EmailConfigDefault.py Defs/Send_Email/emailconfig.py')
copyfile('Defs/FeatureManager/EmailManager/EmailConfigDefault.py', 'Defs/FeatureManager/EmailManager/emailconfig.py')
GMAILACCOUNT = input("{0}[{1}+{0}] Enter Your Gmail Username:{1} ".format(default_palette[0], default_palette[4]))
with open('Defs/Send_Email/emailconfig.py') as f:
read_data = f.read()