diff --git a/README.md b/README.md index 2fc2182..8a34882 100644 --- a/README.md +++ b/README.md @@ -32,7 +32,7 @@ ### Use App Password ![App Password](https://i.imgur.com/krkn5EX.png) - Copy App Password. -- Use App Password in Email-Bomber script. +- Use App Password in Email-Bomber script (you can input it safely into the prompt without it displaying to the console). ### Setup App Password in Email-Bomber script ![Folder Structure](./resources/images/folder-structure.jpg) @@ -82,12 +82,6 @@ cd emailbomber python emailbomber.py ``` -# 🧾 Requirements.txt -- [SMTP](https://docs.python.org/3/library/smtplib.html), which stands for Simple Mail Transfer Protocol, is a built-in Python module used to send e-mails in Python. - - -- [OS](https://docs.python.org/3/library/os.html), which stands for Operating System, is a built-in Python module which provides a portable way of using operating system dependent functionality. - ## πŸ“‡ License ``` MIT License diff --git a/emailbomber.py b/emailbomber.py index d492437..266a7cf 100644 --- a/emailbomber.py +++ b/emailbomber.py @@ -1,5 +1,6 @@ # Built-in libraries import smtplib +import getpass from os import access, path, mkdir from email.message import EmailMessage @@ -10,7 +11,7 @@ if not path.exists("User_Credentials"): # If User_Credentials does not exist, asks for user credentials sender = input("Enter the Gmail address you would like to send emails from (example@gmail.com) -> ") - app_password = input("Enter the app's password (xxxx xxxx xxxx xxxx) -> ") + app_password = getpass.getpass("Enter the app's password (xxxx xxxx xxxx xxxx) -> ") else: # Otherwise, reads saved user credentials sender = open("User_Credentials/sender.txt", "rt").read()

AltStyle γ«γ‚ˆγ£γ¦ε€‰ζ›γ•γ‚ŒγŸγƒšγƒΌγ‚Έ (->γ‚ͺγƒͺγ‚ΈγƒŠγƒ«) /