diff --git a/examples/EvilFiles/generatorScript.py b/examples/EvilFiles/generatorScript.py index 6fbce68..4d4a892 100644 --- a/examples/EvilFiles/generatorScript.py +++ b/examples/EvilFiles/generatorScript.py @@ -2,9 +2,8 @@ from os import getcwd exe = ExecutableGenerator( - file_path = r'D:\GithubRepos\pyhtools\examples\EvilFiles\generatorScript.py', # evil program file path - output_filename = 'evil_file', # output filename without extension, adding extension might raise error - output_dir = getcwd(), # output directory + file_path = r'D:\GithubRepos\pyhtools\examples\EvilFiles\Malwares\key_logger.py', # evil program file path + output_dir = '.', # output directory compiler = Compilers.DEFAULT, # compile using DEFAULT, CLANG, MINGW onefile = True, # creates single exe file remove_output = True, # deletes all compiled files and retains only exe diff --git a/pyhtools/evil_files/exec_generator.py b/pyhtools/evil_files/exec_generator.py index ff55915..85698ab 100644 --- a/pyhtools/evil_files/exec_generator.py +++ b/pyhtools/evil_files/exec_generator.py @@ -54,7 +54,7 @@ def __generate_command(self): if value_type is bool and value: cmd = f'--{key} ' elif value_type is str: - cmd = f'--{key} "{value}" ' + cmd = f'--{key}={value} ' # add option to command command += cmd @@ -65,5 +65,4 @@ def __generate_command(self): def generate_executable(self): command = self.__generate_command() - print(command) return call(command.split(), shell=True)