SAL-BOF

July 27, 2025 ยท View on GitHub

This extension enhances situational awareness by providing a set of local Beacon Object File (BOF) commands. These commands allow the operator to gather detailed information about the target system's network configuration, file access control, environment variables, and other critical system details.

arp

List ARP table

arp

cacls

List user permissions for the specified file or directory, wildcards supported

cacls <path>

dir

Lists files in a specified directory. Supports wildcards (e.g. "C:\Windows\S*"). Optionally, it can perform a recursive list with the /s argument

dir <path> [/s]

env

List process environment variables

env

ipconfig

List IPv4 address, hostname, and DNS server

ipconfig

listdns

List DNS cache entries. Attempt to query and resolve each

listdns

nslookup

Make a DNS query

nslookup <domain> [server] [type>]

privcheck

BOFs to detect common privilege escalation paths in Windows. This is taken from ostrichgolf/PrivCheck which was originally forked from mertdas/PrivKit. PrivCheck currently includes the following modules:

privcheck <module>
ModuleDescription
alwayselevatedChecks if Always Install Elevated is enabled using the registry.
hijackablepathChecks the path environment variable for writable directories (FILE_ADD_FILE) that can be exploited to elevate privileges.
tokenprivLists the current token privileges and highlights known vulnerable ones.
unattendfilesChecks for leftover unattend files that might contain sensitive information.
unquotedsvcChecks for unquoted service paths.
vulndriversChecks if any service on the system uses a known vulnerable driver (based on loldrivers.io). The list of vulnerable drivers is downloaded from loldrivers.io during compilation, then baked into the BOF. Recompile periodically to update .

routeprint

List IPv4 routes

routeprint

uptime

List system uptime

uptime

useridletime

Shows how long the user as been idle, displayed in seconds, minutes, hours and days.

useridletime

whoami

List whoami /all

whoami

Credits