Connect to TCP port 80 on host example.com:
nc -vv <hostname> 80
Port scan TCP ports 7 through 1023 on a specified host:
nc -v -z 7-1023
| from fastapi import Request, Depends, HTTPException, Response | |
| from fastapi.responses import RedirectResponse | |
| # This must be randomly generated | |
| RANDON_SESSION_ID = "iskksioskassyidd" | |
| # This must be a lookup on user database | |
| USER_CORRECT = ("admin", "admin") | |
| # This must be Redis, Memcached, SQLite, KV, etc... |
| # https://myaccount.google.com/lesssecureapps | |
| import datetime as dt | |
| from datetime import datetime | |
| import time , smtplib | |
| def send_email(have): | |
| email_user = '***@gmail.com' # email here | |
| server = smtplib.SMTP ('smtp.gmail.com', 587) | |
| server.starttls() | |
| server.login(email_user, '***') # pass here or read from input | |
| message = """\ |