dissect.target.plugins.os.unix.linux.android._os¶
Module Contents¶
Classes¶
Linux plugin. |
Functions¶
Search for Android |
- class dissect.target.plugins.os.unix.linux.android._os.AndroidPlugin(target: dissect.target.target.Target)¶
Bases:
dissect.target.plugins.os.unix.linux._os.LinuxPluginLinux plugin.
- target¶
- build_prop_paths¶
- props¶
- classmethod detect(target: dissect.target.target.Target) dissect.target.filesystem.Filesystem | None¶
Detect a Linux-like filesystem.
These days there is little difference in the filesystem format used by Unix and Linux. Both implementations use the Filesystem Hierarchy Standard (FHS). We can differentiate between Unix and Linux by checking for specific Linux kernel-only files not present on actual Unix filesystems (e.g. BSD, Solaris, IBM AIX and HP-UX).
References
- classmethod create(target: dissect.target.target.Target, sysvol: dissect.target.filesystem.Filesystem) typing_extensions.Self¶
Initiate this OSPlugin with the given target and detected filesystem.
- Parameters:
target – The
Targetobject.sysvol – The filesystem that was detected in the
detect()function.
- Returns:
An instantiated version of the OSPlugin.
- hostname() str | None¶
Return the target’s hostname.
- Returns:
The hostname as string.
- ips() list[str]¶
Returns a list of static IP addresses and DHCP lease IP addresses found on the host system.
- version() str¶
Return the target’s OS version.
- Returns:
The OS version as string.
- os() str¶
Return a slug of the target’s OS name.
- Returns:
A slug of the OS name, e.g. ‘windows’ or ‘linux’.
- users() collections.abc.Iterator[dissect.target.helpers.record.EmptyRecord]¶
Yield unix user records from passwd files or syslog session logins.
References
- dissect.target.plugins.os.unix.linux.android._os.find_build_props(fs: dissect.target.filesystem.Filesystem) collections.abc.Iterator[pathlib.Path]¶
Search for Android
build.propfiles on the providedFilesystem.