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 /
sssd /
[ HOME SHELL ]
Name
Size
Permission
Action
modules
[ DIR ]
drwxr-xr-x
__init__.py
0
B
-rw-r--r--
parser.py
1.87
KB
-rw-r--r--
source_files.py
2.25
KB
-rw-r--r--
source_journald.py
1.3
KB
-rw-r--r--
source_reader.py
508
B
-rw-r--r--
sss_analyze.py
3.47
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : source_files.py
import glob import logging from sssd.source_reader import Reader logger = logging.getLogger() class Files(Reader): """ A class used to represent a Log Files Reader Args: path -- the path where SSSD logs are to be read (default /var/log/sssd/) """ def __init__(self, path): super().__init__() self.log_files = [] self.path = self.resolve_path(path) self.domains = self.get_domain_logfiles() def __iter__(self): """ Yields: str: The next line in the log file """ for files in self.log_files: try: with open(files) as file: for line in file: yield line except FileNotFoundError as err: logger.warning("Could not find domain log file, skipping") logger.warning(err) continue def resolve_path(self, path): if path.endswith("/"): return path else: return path + "/" def get_domain_logfiles(self, child=False): """ Retrieve list of SSSD log files, exclude rotated (.gz) files """ domain_files = [] exclude_list = ["ifp", "nss", "pam", "sudo", "autofs", "ssh", "pac", "kcm", ".gz"] if child: file_list = glob.glob(self.path + "*.log") else: file_list = glob.glob(self.path + "sssd_*") for file in file_list: if not any(s in file for s in exclude_list): domain_files.append(file) return domain_files def set_component(self, component, child): """ Switch the reader to interact with a certain SSSD component NSS, PAM, BE """ self.log_files = [] if component == self.Component.NSS: self.log_files.append(self.path + "sssd_nss.log") elif component == self.Component.PAM: self.log_files.append(self.path + "sssd_pam.log") elif component == self.Component.BE: domains = self.get_domain_logfiles(child) if not domains: raise IOError # error: No domains found? for dom in domains: self.log_files.append(dom)
Close