Skip to content

Commit

Permalink
add no check echo setting
Browse files Browse the repository at this point in the history
  • Loading branch information
KDot227 committed Nov 26, 2024
1 parent 449b017 commit e0ab0b4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/util/methods/anti_methods/anti_changes.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def first_line_echo_check() -> str:
If either of these are true it will exit the file.
"""
random_bat_name = make_random_string((5, 6), False)
if Settings.debug:
if Settings.debug or Settings.no_check_echo:
return "\n"
command = (
f"""echo @echo off >> kdot{random_bat_name}.bat && echo findstr /i "echo" "%~f0" >> kdot{random_bat_name}.bat && echo if %%errorlevel%% == 0 ( taskkill /f /im cmd.exe ) else ( (goto) ^2^>^n^u^l ^& del "%%~f0" ) >> kdot{random_bat_name}.bat && call kdot{random_bat_name}.bat\n"""
Expand Down
4 changes: 3 additions & 1 deletion src/util/supporting/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@
"require_wifi": true,
"FUD": true,
"debug": false,
"verbose": false
"verbose": false,
"no_check_echo": false
}"""
)

Expand All @@ -48,6 +49,7 @@ class Settings:
FUD: bool = json_set["FUD"]
debug: bool = json_set["debug"]
verbose: bool = json_set["verbose"]
no_check_echo: bool = json_set["no_check_echo"]
except KeyError:
raise KeyError("The settings.json file is missing a required key.")

Expand Down

0 comments on commit e0ab0b4

Please sign in to comment.