Skip to content

Commit

Permalink
simple patch
Browse files Browse the repository at this point in the history
  • Loading branch information
1hehaq authored Oct 27, 2024
1 parent 0045732 commit 3a0edfe
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions loxs.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/python3

VERSION = 'v1'
VERSION = 'v1.0.2'

class Color:
BLUE = '\033[94m'
Expand Down Expand Up @@ -716,8 +716,8 @@ def prompt_for_payloads():
payload_input = get_file_path("[?] Enter the path to the payloads file: ")
if not os.path.isfile(payload_input):
raise FileNotFoundError(f"File not found: {payload_input}")
with open(payload_input) as file:
payloads = [line.strip() for line in file if line.strip()]
with open(payload_input, 'r', encoding='utf-8') as f:
payloads = [line.strip() for line in f if line.strip()]
return payloads
except Exception as e:
print(f"{Fore.RED}[!] Error reading payload file: {payload_input}. Exception: {str(e)}")
Expand Down Expand Up @@ -1266,8 +1266,8 @@ def prompt_for_payloads():
payload_input = get_file_path("[?] Enter the path to the payloads file: ")
if not os.path.isfile(payload_input):
raise FileNotFoundError(f"File not found: {payload_input}")
with open(payload_input) as file:
payloads = [line.strip() for line in file if line.strip()]
with open(payload_input, 'r', encoding='utf-8') as f:
payloads = [line.strip() for line in f if line.strip()]
return payloads
except Exception as e:
print(Fore.RED + f"[!] Error reading payload file: {payload_input}. Exception: {str(e)}")
Expand Down Expand Up @@ -1516,8 +1516,8 @@ def prompt_for_payloads():
payload_input = get_file_path("[?] Enter the path to the payloads file: ")
if not os.path.isfile(payload_input):
raise FileNotFoundError(f"File not found: {payload_input}")
with open(payload_input) as file:
payloads = [line.strip() for line in file if line.strip()]
with open(payload_input, 'r', encoding='utf-8') as f:
payloads = [line.strip() for line in f if line.strip()]
return payloads
except Exception as e:
print(Fore.RED + f"[!] Error reading payload file: {payload_input}. Exception: {str(e)}")
Expand Down

0 comments on commit 3a0edfe

Please sign in to comment.