This commit is contained in:
2026-04-21 20:37:36 -04:00
parent 0738f66f0a
commit 373afccd2d

View File

@@ -10,9 +10,10 @@ import sys
# - Overwrite messages and LLM prompts with random junk # - Overwrite messages and LLM prompts with random junk
# ----- VERSION ----- # # ----- VERSION ----- #
# Version A-1-i "DWeb", the first version to integrate darkweb_register.py and prompt_destroyer.py into # Version A-1-ii "DWeb", the first version to integrate darkweb_register.py and prompt_destroyer.py into
# one integrated file, built upon and taking its name from the former. You can find these two files in # one integrated file, built upon and taking its name from the former. You can find these two files in
# the "archive" folder this script is located in. # the "archive" folder this script is located in.
# Patch 1-ii: Small fixes
# ----- SPECIAL STUFF ----- # # ----- SPECIAL STUFF ----- #
# I decided to take a modular approach to this project. Everything is clearly marked, configurable, and modular. # I decided to take a modular approach to this project. Everything is clearly marked, configurable, and modular.
@@ -44,7 +45,7 @@ def set_config_value(key, value, filename="config.txt"):
found = True found = True
break break
# If the key wasn't there, add it to the end # If the key wasn't there, tell the user
if not found: if not found:
input("Not found, press ENTER to continue...") input("Not found, press ENTER to continue...")
return None return None
@@ -124,7 +125,7 @@ def generate_username():
def prompt_destroyer(): def prompt_destroyer():
pd_buffer = "" pd_buffer = ""
for i in range(random.randint(wordcount_min, wordcount_max)): for i in range(random.randint(wordcount_min, wordcount_max)):
pd_buffer += random_word(random.randint(1, 1000)) + " " pd_buffer += random_word(random.randint(1, textfile_length)) + " "
return pd_buffer.strip() return pd_buffer.strip()
# ----- BIG 'OL MAIN ----- # # ----- BIG 'OL MAIN ----- #
@@ -135,7 +136,7 @@ if __name__ == "__main__":
# TITLE # TITLE
print() print()
print("=" * 40) print("=" * 40)
print("PSecuritySuite V. A-1-i \"DWeb\" by P7MJ") print("PSecuritySuite V. A-1-ii \"DWeb\" by P7MJ")
print("=" * 40) print("=" * 40)
# REGULAR OPTIONS # REGULAR OPTIONS
@@ -181,9 +182,11 @@ if __name__ == "__main__":
if config_name == "e" or config_name == "E": if config_name == "e" or config_name == "E":
break break
config_value = input("Value > ") config_value = input("Value > ")
if config_name != "": if config_name != "" and config_name.isdigit():
set_config_value(config_name, config_value) set_config_value(config_name, config_value)
update_config() update_config()
elif not config_name.isdigit():
print("Not a natural number!")
if main_menu_choice == "h" or main_menu_choice == "H": if main_menu_choice == "h" or main_menu_choice == "H":
print("\nHELP SECTION\n--------------------") print("\nHELP SECTION\n--------------------")