Linux ubuntu 6.8.0-90-generic #91-Ubuntu SMP PREEMPT_DYNAMIC Tue Nov 18 14:14:30 UTC 2025 x86_64
nginx/1.24.0
: 67.217.245.49 | : 216.73.216.153
Cant Read [ /etc/named.conf ]
8.3.6
www-data
Bypass.pw
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
Backdoor Scanner
Backdoor Create
Alfa Webshell
CPANEL RESET
CREATE WP USER
README
+ Create Folder
+ Create File
/
usr /
share /
apport /
general-hooks /
[ HOME SHELL ]
Name
Size
Permission
Action
cloud-init.py
350
B
-rw-r--r--
cloud_archive.py
1.26
KB
-rw-r--r--
generic.py
4.58
KB
-rw-r--r--
image.py
1.28
KB
-rw-r--r--
parse_segv.py
14.26
KB
-rw-r--r--
powerpc.py
4.82
KB
-rw-r--r--
ubuntu-gnome.py
2.52
KB
-rw-r--r--
ubuntu.py
24.48
KB
-rw-r--r--
wayland_session.py
260
B
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : generic.py
"""Attach generally useful information, not specific to any package.""" # Copyright (C) 2009 Canonical Ltd. # Authors: Matt Zimmerman <mdz@canonical.com> # Martin Pitt <martin.pitt@ubuntu.com> # Brian Murray <brian@ubuntu.com> # # 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 2 of the License, or (at your # option) any later version. See http://www.gnu.org/copyleft/gpl.html for # the full text of the license. import os import re import apport.fileutils import apport.hookutils import apport.ui from problem_report import ProblemReport def add_info(report: ProblemReport, ui: apport.ui.HookUI) -> None: """Add generic, general information to the problem report.""" # TODO: Split into smaller functions/methods # pylint: disable=too-many-branches,too-many-locals nonfree_modules = apport.hookutils.nonfree_kernel_modules() if nonfree_modules: report["NonfreeKernelModules"] = " ".join(nonfree_modules) # check for low space mounts = {"/": "system", "/var": "/var", "/tmp": "/tmp"} home = os.getenv("HOME") if home: mounts[home] = "home" threshold = 50 for mount, mount_name in mounts.items(): try: stat = os.statvfs(mount) except FileNotFoundError: continue free_mb = stat.f_bavail * stat.f_frsize / 1000000 if free_mb < threshold: report["UnreportableReason"] = ( f"Your {mount_name} partition has less than {free_mb} MB" f" of free space available, which leads to problems using" f" applications and installing updates." f" Please free some space." ) # important glib errors/assertions (which should not have private data) if "ExecutablePath" in report: path = report["ExecutablePath"] gtk_like = ( apport.fileutils.links_with_shared_library(path, "libgtk") or apport.fileutils.links_with_shared_library(path, "libgtk-3") or apport.fileutils.links_with_shared_library(path, "libX11") ) if gtk_like and apport.hookutils.in_session_of_problem(report): xsession_errors = apport.hookutils.xsession_errors() if xsession_errors: report["XsessionErrors"] = xsession_errors # using local libraries? if "ProcMaps" in report: local_libs = set() for lib in re.finditer(r"\s(/[^ ]+\.so[.0-9]*)$", report["ProcMaps"], re.M): if not apport.fileutils.likely_packaged(lib.group(1)): local_libs.add(lib.group(1)) if ui and local_libs: if not ui.yesno( """\ The crashed program seems to use third-party or local libraries: %s It is highly recommended to check if the problem persists without those first. Do you want to continue the report process anyway? """ % "\n".join(local_libs) ): raise StopIteration report["LocalLibraries"] = " ".join(local_libs) report.add_tags(["local-libs"]) # using third-party packages? if "[origin:" in report.get("Package", "") or "[origin:" in report.get( "Dependencies", "" ): report.add_tags(["third-party-packages"]) # using ecryptfs? if os.path.exists(os.path.expanduser("~/.ecryptfs/wrapped-passphrase")): report["EcryptfsInUse"] = "Yes" # filter out crashes on missing GLX (LP#327673) in_gl = "/usr/lib/libGL.so" in (report.get("StacktraceTop") or "\n").splitlines()[0] if in_gl and "Loading extension GLX" not in apport.hookutils.read_file( "/var/log/Xorg.0.log" ): report["UnreportableReason"] = ( "The X.org server does not support the GLX extension," " which the crashed program expected to use." ) # filter out package install failures due to a segfault if ( "Segmentation fault" in report.get("ErrorMessage", "") and report["ProblemType"] == "Package" ): report["UnreportableReason"] = ( "The package installation resulted in a segmentation fault which" " is better reported as a crash report rather than a package" " install failure." ) # log errors if report["ProblemType"] == "Crash": apport.hookutils.attach_journal_errors(report) if __name__ == "__main__": r = ProblemReport() add_info(r, apport.ui.NoninteractiveHookUI()) for key, value in r.items(): print(f"{key}: {value}")
Close