Linux websever 5.15.0-153-generic #163-Ubuntu SMP Thu Aug 7 16:37:18 UTC 2025 x86_64
Apache/2.4.52 (Ubuntu)
: 192.168.3.70 | : 192.168.1.99
Cant Read [ /etc/named.conf ]
8.1.2-1ubuntu2.23
urlab
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 /
lib /
python3 /
dist-packages /
samba /
provision /
[ HOME SHELL ]
Name
Size
Permission
Action
__pycache__
[ DIR ]
drwxr-xr-x
__init__.py
96.96
KB
-rw-r--r--
backend.py
2.26
KB
-rw-r--r--
common.py
2.77
KB
-rw-r--r--
kerberos.py
2.54
KB
-rw-r--r--
kerberos_implementation.py
763
B
-rw-r--r--
sambadns.py
50.52
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : kerberos.py
# Unix SMB/CIFS implementation # # Backend code for provisioning a Samba AD server # # Copyright (c) 2015 Andreas Schneider <asn@samba.org> # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 3 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. # from samba.provision.kerberos_implementation import ( kdb_modules_dir) from samba import is_heimdal_built import os def create_kdc_conf(kdcconf, realm, domain, logdir): if is_heimdal_built(): return # Do nothing if kdc.conf has been set if 'KRB5_KDC_PROFILE' in os.environ: return # We are in selftest if 'SAMBA_SELFTEST' in os.environ and 'MITKRB5' in os.environ: return assert kdcconf is not None assert domain is not None domain = domain.upper() assert realm is not None realm = realm.upper() f = open(kdcconf, 'w') try: f.write("[kdcdefaults]\n") f.write("\tkdc_ports = 88\n") f.write("\tkdc_tcp_ports = 88\n") f.write("\tkadmind_port = 464\n") f.write("\n") f.write("[realms]\n") f.write("\t%s = {\n" % realm) f.write("\t}\n") f.write("\n") f.write("\t%s = {\n" % realm.lower()) f.write("\t}\n") f.write("\n") f.write("\t%s = {\n" % domain) f.write("\t}\n") f.write("\n") f.write("[dbmodules]\n") f.write("\tdb_module_dir = %s\n" % kdb_modules_dir) f.write("\n") f.write("\t%s = {\n" % realm) f.write("\t\tdb_library = samba\n") f.write("\t}\n") f.write("\n") f.write("\t%s = {\n" % realm.lower()) f.write("\t\tdb_library = samba\n") f.write("\t}\n") f.write("\n") f.write("\t%s = {\n" % domain) f.write("\t\tdb_library = samba\n") f.write("\t}\n") f.write("\n") f.write("[logging]\n") f.write("\tkdc = FILE:%s/mit_kdc.log\n" % logdir) f.write("\tadmin_server = FILE:%s/mit_kadmin.log\n" % logdir) f.write("\n") finally: f.close()
Close