Linux cesa-www-main 6.1.0-49-cloud-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.174-1 (2026-05-26) x86_64
Apache/2.4.68 (Debian)
Server IP : 10.218.0.2 & Your IP : 216.73.216.28
Domains :
Cant Read [ /etc/named.conf ]
User : www-data
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
home /
otto /
python /
Delete
Unzip
Name
Size
Permission
Date
Action
app
[ DIR ]
drwxr-xr-x
2025-09-06 08:13
.env
479
B
-rw-r--r--
2025-09-06 08:13
.htaccess
44
B
-rw-r--r--
2025-09-06 08:13
check-ssl.py
1.36
KB
-rw-r--r--
2025-09-06 08:13
config.py
5.72
KB
-rw-r--r--
2025-09-06 08:13
db-bck.py
4.52
KB
-rw-r--r--
2025-09-06 08:13
db-transfer.py
3.94
KB
-rw-r--r--
2025-09-06 08:13
env.example
5.5
KB
-rw-r--r--
2025-09-06 08:13
requirements.txt
1.68
KB
-rw-r--r--
2025-09-06 08:13
send-mail.py
1.3
KB
-rw-r--r--
2025-09-06 08:13
server-checks.py
2.93
KB
-rw-r--r--
2025-09-06 08:13
Save
Rename
import sys import smtplib from email import policy from email.parser import BytesParser from pathlib import Path def main(): print(len(sys.argv)) if len(sys.argv) != 8: print("Usage:") print("python3 send_raw_email.py <raw_file_path> <from_email> <to_email> <smtp_host> <smtp_port> <smtp_user> <smtp_pass>") sys.exit(1) raw_file_path, from_email, to_email, smtp_host, smtp_port, smtp_user, smtp_pass = sys.argv[1:] # Load raw message from file try: file_string = Path(raw_file_path).read_text(encoding="utf-8") raw_bytes = Path(raw_file_path).read_bytes() msg = BytesParser(policy=policy.SMTP).parsebytes(raw_bytes) except Exception as e: print(f"Failed to read or parse raw message file: {e}") sys.exit(1) try: smtp_port = int(smtp_port) with smtplib.SMTP(smtp_host, smtp_port) as server: server.ehlo() if smtp_port == 587: server.starttls() server.ehlo() server.login(smtp_user, smtp_pass) server.sendmail(from_email, [to_email], file_string.encode("utf-8")) print("Email sent successfully.") except Exception as e: print(f"Error sending email: {e}") sys.exit(1) if __name__ == "__main__": main()