Skip to content

Commit 56dfe3c

Browse files
committed
string.puncuation added to remove hardcoded string
1 parent 7261ad1 commit 56dfe3c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

phishkiller.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ def generate_random_email():
5555

5656

5757
def generate_random_password(): # Generate password using uppercase, lowercase, numbers and special characters
58-
characters = string.ascii_letters + string.digits + "@$!%^&*"
58+
characters = string.ascii_letters + string.digits + string.punctuation
5959
length = random.randint(12, 20) # Random length between 12 and 20
6060
return "".join(random.choice(characters) for _ in range(length))
6161

0 commit comments

Comments
 (0)