Breaking out from stripped tokens with duplication

This is just a short complementary follow-up after the previous, much longer article ( https://hackingiscool.pl/breaking-out-from-stripped-tokens-using-process-injection /) about moving code execution to a process with a more privileged token (in terms of token privileges and/or group memberships). In addition to the main method (process injection) and the second method