Shell
The following shell interface is provided to facilitate exploitation of CBXP by shell callers.
The Shell Interface for CBXP downloaded from GitHub.
Wherever you Install/Extract the CBXP PAX, make sure to add the path to the
bindirectory where thecbxpexecutable resides toPATHin/etc/profile(global) or~/.profile/~/.bashrc(local/individual).
📄 Description
Extract Control Blocks from Live Memory (storage), post-process them into JSON, and write the result JSON to the stdout file descriptor.
cbxp [options] [CONTROL_BLOCK]
-
-d,--debug
Print Debug Messages. -
-i,--include <pattern>
Include control blocks that are Accessible from the Root Control Block being extracted using an Include Pattern. -
-f,--filter
Filter repeated control block data using a Filter. -
-v,--version
Display Version Information. -
-h,--help
Display Usage Information.
💻 Examples
The following example extracts the PSA control block and prints Debug Messages.
Shell Script
cbxp -d psa
The following example extracts the CVT, includes the ECVT and the ASVT, and includes all Known Control Blocks that are pointed to directly by the ASVT.
Shell Script
cbxp -i ecvt -i 'asvt.*' cvt
The following example extracts all ASSB control blocks where both the Control Block Field ASSBJBNI matches the Filter Value IBMUSER and the Control Block Field ASSBJBNS matches the Filter Value BPXAS. The output is then piped into jq to Format it.
Shell Script
cbxp -f assb.assbjbni=IBMUSER assb | jq