Linux ns1.utparral.edu.mx 6.8.0-79-generic #79~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Fri Aug 15 16:54:53 UTC 2 x86_64
Apache/2.4.58 (Unix) OpenSSL/1.1.1w PHP/8.2.12 mod_perl/2.0.12 Perl/v5.34.1
: 10.10.1.9 | : 10.10.1.254
Cant Read [ /etc/named.conf ]
daemon
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
README
+ Create Folder
+ Create File
/
usr /
lib /
python3 /
dist-packages /
aptdaemon /
[ HOME SHELL ]
Name
Size
Permission
Action
__pycache__
[ DIR ]
drwxr-xr-x
worker
[ DIR ]
drwxr-xr-x
client.py
73.34
KB
-rw-r--r--
config.py
9
KB
-rw-r--r--
console.py
29.89
KB
-rw-r--r--
core.py
90.84
KB
-rw-r--r--
crash.py
2.74
KB
-rw-r--r--
debconf.py
6.24
KB
-rw-r--r--
enums.py
32.34
KB
-rw-r--r--
errors.py
7.29
KB
-rw-r--r--
gtk3widgets.py
47.25
KB
-rw-r--r--
__init__.py
1.14
KB
-rw-r--r--
lock.py
5.9
KB
-rw-r--r--
logger.py
2.3
KB
-rw-r--r--
loop.py
1.07
KB
-rw-r--r--
networking.py
9.7
KB
-rw-r--r--
policykit1.py
6.98
KB
-rw-r--r--
progress.py
33.4
KB
-rw-r--r--
utils.py
3.79
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : crash.py
"""Apport integration to provide better problem reports.""" # Copyright (C) 2010 Sebastian Heinlein <devel@glatzor.de> # # Licensed under the GNU General Public License Version 2 # # 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. # # 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, write to the Free Software # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. __author__ = "Sebastian Heinlein <devel@glatzor.de>" __all__ = ("create_report") import os import apport import apport.fileutils import apt_pkg from . import enums def create_report(error, traceback, trans=None): """Create an apport problem report for a given crash. :param error: The summary of the error. :param traceback: The traceback of the exception. :param trans: The optional transaction in which the crash occured. """ if not apport.packaging.enabled() or os.getcwd() != "/": return uid = 0 report = apport.Report("Crash") report["Title"] = error package = "aptdaemon" try: package_version = apport.packaging.get_version(package) except ValueError as e: if 'does not exist' in e.message: package_version = 'unknown' report['Package'] = '%s %s' % (package, package_version) report["SourcePackage"] = "aptdaemon" report["Traceback"] = traceback report["ExecutablePath"] = "/usr/sbin/aptd" report.add_os_info() # Attach information about the transaction if trans: report["Annotation"] = enums.get_role_error_from_enum(trans.role) report["TransactionRole"] = trans.role report["TransactionPackages"] = str([list(l) for l in trans.packages]) report["TransactionDepends"] = str([list(l) for l in trans.depends]) report["TransactionKwargs"] = str(trans.kwargs) report["TransactionLocale"] = trans.locale report["TransactionOutput"] = trans.output report["TransactionErrorCode"] = trans._error_property[0] report["TransactionErrorDetails"] = trans._error_property[1] uid = os.path.basename(trans.tid) # Write report with apport.fileutils.make_report_file(report, uid) as f: report.write(f) if __name__ == "__main__": apt_pkg.init_config() create_report('test', 'testtrace') # vim:ts=4:sw=4:et
Close