Phishing Email Generator

import random

def generate_phishing_email(sender_name, sender_email):
"""Generate a fake phishing email."""
subjects = [
"Urgent: Your Account Needs Verification",
"You've Won a $1000 Gift Card!",
"Your Invoice is Attached",
"Action Required: Update Your Payment Information",
"Congratulations! You've Been Selected!"
]

bodies = [
f"Dear Customer,\n\nWe noticed suspicious activity in your account. Please click the link below to verify your account:\nhttp://fake-link.com\n\nBest,\n{sender_name}",
f"Congratulations! You've won a $1000 gift card. Claim your prize by clicking here:\nhttp://fake-link.com\n\nSincerely,\n{sender_name}",
f"Attached is your invoice. Please review it immediately.\n\nBest,\n{sender_name}",
f"Your payment information needs to be updated. Click here:\nhttp://fake-link.com\n\nThank you,\n{sender_name}",
f"You've been selected for a special offer! Click the link to redeem:\nhttp://fake-link.com\n\nCheers,\n{sender_name}"
]

email_subject = random.choice(subjects)
email_body = random.choice(bodies)

email = f"From: {sender_name} <{sender_email}>\nSubject: {email_subject}\n\n{email_body}"
return email

def main():
print("Phishing Email Generator")

sender_name = input("Enter fake sender name: ")
sender_email = input("Enter fake sender email: ")

phishing_email = generate_phishing_email(sender_name, sender_email)

print("\n--- Generated Phishing Email ---")
print(phishing_email)

# Save to file
with open("phishing_email.txt", "w") as file:
file.write(phishing_email)

print("\nPhishing email saved to 'phishing_email.txt'.")

if __name__ == "__main__":
main()