__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
#!/usr/bin/python
from glob import glob
from apport.hookutils import (attach_related_packages,
command_output, attach_file_if_exists)
import os
def add_info(report, ui):
# get info on all files in /var/crash/
reports = glob('/var/crash/*')
if reports:
report['CrashReports'] = command_output(
['stat', '-c', '%a:%u:%g:%s:%y:%x:%n'] + reports)
attach_related_packages(report, ['apport-noui'])
# is the system set to autoreport crashes?
if os.path.exists('/var/lib/apport/autoreport'):
report['Tags'] += ' autoreport-true'
else:
report['Tags'] += ' autoreport-false'
attach_file_if_exists(report, '/var/log/upstart/whoopsie.log')