Module: OneGadget::Fetchers::ArgumentResolution

Included in:
Base
Defined in:
lib/one_gadget/fetchers/argument_resolution.rb

Overview

What a reached +exec+/+posix_spawn+ call requires of its caller. Reads the arguments the emulator left, decides whether each is something a caller can arrange -- a "/bin/sh" pointer, an argv array that is already valid or can be built in place, an acceptable envp -- and states what is left as the gadget's constraints. Anything it cannot describe drops the candidate rather than reporting a gadget that would not run. Mixed into Base.