403Webshell
Server IP : 93.86.61.54  /  Your IP : 216.73.216.60
Web Server : Apache/2.4.62 (Ubuntu)
System : Linux rasin.ddns.net 6.8.0-124-generic #124~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Tue May 26 21:05:19 UTC x86_64
User : www-data ( 33)
PHP Version : 8.4.22
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /usr/share/apport/package-hooks/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/share/apport/package-hooks/source_lightdm.py
import os
import re

from apport.hookutils import *

def add_info(report, ui):

    if ui:
        display_manager_files = {}
        if os.path.lexists('/var/log/lightdm'):
            display_manager_files['LightdmLog'] = \
                'cat /var/log/lightdm/lightdm.log'
            display_manager_files['LightdmDisplayLog'] = \
                'cat /var/log/lightdm/x-0.log'
            display_manager_files['LightdmGreeterLog'] = \
                 'cat /var/log/lightdm/seat0-greeter.log'
            display_manager_files['LightdmGreeterLogOld'] = \
                 'cat /var/log/lightdm/seat0-greeter.log.old'
            display_manager_files['LightdmConfig'] = \
                'cat /etc/lightdm/lightdm.conf'
            display_manager_files['LightdmUsersConfig'] = \
                'cat /etc/lightdm/users.conf'

        if ui.yesno("Your display manager log files may help developers"\
                    " diagnose the bug, but may contain sensitive information"\
                    " such as your hostname or username.  Do you want to"\
                    " include these logs in your bug report?") == True:
            attach_root_command_outputs(report, display_manager_files)

Youez - 2016 - github.com/yon3zu
LinuXploit