\x89PNG\r\n\x1a\n\x00\x00\x00\x0DIHDR\x00\x00\x00\x01\x00 \x00\x00\x01\x08\x06\x00\x00\x00\x1F\x15\xC4\x89\x00\x00\x00 \x0AIDATx\x9Ccb\x00\x00\x00\x06\x00\x03\x1A\x05\x9D\x00\x00 \x00\x00IEND\xAE\x42\x60\x82 csarite.com
KUJUNTI.ID MINISH3LL
Path : /usr/share/apport/package-hooks/
(S)h3ll Cr3at0r :
F!le Upl0ad :

B-Con CMD Config cPanel C-Rdp D-Log Info Jump Mass Ransom Symlink vHost Zone-H

Current File : //usr/share/apport/package-hooks/source_nfs-utils.py


#!/usr/bin/python3

'''NFS Apport Interface

Copyright (C) 2022 Canonical Ltd
Author: Andreas Hasenack <andreas@canonical.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.
'''

from apport.hookutils import (
    attach_file_if_exists,
    command_output,
    recent_syslog,
)
from glob import glob
import re

def add_info(report, ui):
    file_list = ["/etc/nfs.conf","/etc/default/nfs-common", "/etc/default/nfs-kernel-server"]
    file_list.extend(glob("/etc/nfs.conf.d/*.conf"))
    file_list.append("/etc/exports")
    file_list.append("/etc/request-key.d/id_resolver.conf")
    for f in file_list:
        attach_file_if_exists(report, f)
    report["SyslogNFS"] = recent_syslog(re.compile("(rpc\.(nfsd|gssd|svcgssd|statd|mountd|idmapd)|blkmapd|nfsdcld|nfsidmap)\["))
    report["NFSMounts"] = command_output(["findmnt", "-n", "-t", "nfs"])
    report["NFSv4Mounts"] = command_output(["findmnt", "-n", "-t", "nfs4"])

© KUJUNTI.ID