404

[ Avaa Bypassed ]




Upload:

Command:

botdev@3.17.71.93: ~ $
#!/usr/bin/python3

import os, sys, stat


def dump_acpi_table(filename, tablename, out):
    '''Dump a single ACPI table'''

    out.write('%s @ 0x00000000\n' % tablename)
    n = 0
    f = open(filename, 'rb')
    hex_str = ''
    try:
        byte = f.read(1)
        while byte != b'':
            val = ord(byte)
            if (n & 15) == 0:
                hex_str = '  %4.4x: ' % n
                ascii_str = ''

            hex_str = hex_str + '%2.2x ' % val

            if (val < 32) or (val > 126):
                ascii_str = ascii_str + '.'
            else:
                ascii_str = ascii_str + chr(val)
            n = n + 1
            if (n & 15) == 0:
                out.write('%s %s\n' % (hex_str, ascii_str))
            byte = f.read(1)
    finally:
        for i in range(n & 15, 16):
            hex_str = hex_str + '   '

        if (n & 15) != 15:
            out.write('%s %s\n' % (hex_str, ascii_str))
        f.close()
    out.write('\n')


def dump_acpi_tables(path, out):
    '''Dump ACPI tables'''

    tables = os.listdir(path)
    for tablename in tables:
        pathname = os.path.join(path, tablename)
        mode = os.stat(pathname).st_mode
        if stat.S_ISDIR(mode):
            dump_acpi_tables(pathname, out)
        else:
            dump_acpi_table(pathname, tablename, out)


if os.path.isdir('/sys/firmware/acpi/tables'):
    dump_acpi_tables('/sys/firmware/acpi/tables', sys.stdout)

Filemanager

Name Type Size Permission Actions
general-hooks Folder 0755
package-hooks Folder 0755
symptoms Folder 0755
testsuite Folder 0755
apport File 31.6 KB 0755
apport-checkreports File 1.24 KB 0755
apport.jar File 2.38 KB 0644
apportcheckresume File 3.14 KB 0755
dump_acpi_tables.py File 1.41 KB 0755
dump_acpi_tables.pyc File 1.53 KB 0644
gcc_ice_hook File 1.18 KB 0755
is-enabled File 672 B 0755
iwlwifi_error_dump File 1.92 KB 0755
java_uncaught_exception File 2.58 KB 0755
kernel_crashdump File 2.82 KB 0755
kernel_oops File 1.2 KB 0755
package_hook File 2.15 KB 0755
recoverable_problem File 2.25 KB 0755
root_info_wrapper File 96 B 0755
unkillable_shutdown File 3.41 KB 0755
whoopsie-upload-all File 5.58 KB 0755