Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

feat: prompt app password without echoing #24

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
coderatul merged 2 commits into coderatul:main from task0001:patch-1
Apr 1, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 1 addition & 7 deletions README.md
View file Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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
Expand Down
3 changes: 2 additions & 1 deletion emailbomber.py
View file Open in desktop
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Built-in libraries
import smtplib
import getpass
from os import access, path, mkdir
from email.message import EmailMessage

Expand All @@ -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()
Expand Down

AltStyle によって変換されたページ (->オリジナル) /