Skip to content

#get_os_architecture doesn't always return an architecture #21403

@smcintyre-r7

Description

@smcintyre-r7

The #get_os_architecture post API method has large holes in it's coverage. It doesn't return an architecture for non-meterpreter, non-windows sessions. That notably means any Linux shell session is unsupported.

Expected behavior

This functionality should be provided so post modules and LPEs can use it to reliably fingerprint the remote target. The returned value should be an ARCH_ constant.

Current behavior

Coverage is spotty.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions