Skip to content

Commit

Permalink
specify output command
Browse files Browse the repository at this point in the history
  • Loading branch information
KDot227 committed Jan 19, 2025
1 parent d29b706 commit 6510f32
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,7 @@ def get_user_file() -> str:
if __name__ == "__main__":
parse = ArgumentParser()
parse.add_argument("-f", "--file", help="File to obfuscate", type=str)
parse.add_argument("-o", "--output", help="Output file location", type=str)
parse.add_argument(
"-nu", "--no-utf-16-bom", help="No UTF-16 BOM", action="store_true"
)
Expand All @@ -191,6 +192,7 @@ def get_user_file() -> str:
args.file,
double_click_check=Settings.double_click_check,
utf_16_bom=Settings.utf_16_bom,
output=args.output,
)
sys.exit(0)
AutoUpdate(__version__)
Expand Down
6 changes: 5 additions & 1 deletion src/util/obfuscation/obfuscate.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,12 @@ def __init__(
file: str,
double_click_check: bool = True,
utf_16_bom: bool = True,
output: str = None,
) -> None:
self.new_file = f"{file[:-4]}_obf.bat"
if output:
self.new_file = output
else:
self.new_file = f"{file[:-4]}_obf.bat"
self.double_click = double_click_check
self.utf_16_bom = utf_16_bom

Expand Down

0 comments on commit 6510f32

Please sign in to comment.