__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
#!/usr/bin/python3
"""Dump ACPI tables."""
# TODO: Address following pylint complaints
# pylint: disable=invalid-name
import os
import stat
import sys
def dump_acpi_table(filename, tablename, out):
"""Dump a single ACPI table."""
if not os.access(filename, os.R_OK):
return
out.write(f"{tablename[0:4]} @ 0x0000000000000000\n")
n = 0
with open(filename, "rb") as f:
hex_str = ""
try:
byte = f.read(1)
while byte != b"":
val = ord(byte)
if (n & 15) == 0:
if n > 65535:
hex_str = f" {n:04X}: "
else:
hex_str = f" {n:04X}: "
ascii_str = ""
hex_str = f"{hex_str}{val:02X} "
if (val < 32) or (val > 126):
ascii_str = f"{ascii_str}."
else:
ascii_str = ascii_str + chr(val)
n = n + 1
if (n & 15) == 0:
out.write(f"{hex_str} {ascii_str}\n")
byte = f.read(1)
finally:
if (n % 16) != 0:
hex_str += " " * (16 - n % 16)
out.write(f"{hex_str} {ascii_str}\n")
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)
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| general-hooks | Folder | 0755 |
|
|
| package-hooks | Folder | 0755 |
|
|
| symptoms | Folder | 0755 |
|
|
| testsuite | Folder | 0755 |
|
|
| apport | File | 43.68 KB | 0755 |
|
| apport-checkreports | File | 1.37 KB | 0755 |
|
| apport.jar | File | 2.38 KB | 0644 |
|
| apportcheckresume | File | 3.64 KB | 0755 |
|
| dump_acpi_tables.py | File | 1.72 KB | 0755 |
|
| gcc_ice_hook | File | 1.29 KB | 0755 |
|
| is-enabled | File | 672 B | 0755 |
|
| iwlwifi_error_dump | File | 1.96 KB | 0755 |
|
| java_uncaught_exception | File | 2.59 KB | 0755 |
|
| kernel_crashdump | File | 2.72 KB | 0755 |
|
| kernel_oops | File | 1.25 KB | 0755 |
|
| package_hook | File | 2.86 KB | 0755 |
|
| recoverable_problem | File | 2.4 KB | 0755 |
|
| root_info_wrapper | File | 96 B | 0755 |
|
| unkillable_shutdown | File | 3.53 KB | 0755 |
|
| whoopsie-upload-all | File | 8.33 KB | 0755 |
|