What are the two methods to set the AppDomainManager for hijacking a .NET program?

The two methods are: (1) Setting environment variables via `set APPDOMAIN_MANAGER_ASM` and `set APPDOMAIN_MANAGER_TYPE` in cmd, which affects only the current session. (2) Creating a configuration file named `<executable>.config` (e.g., `program.exe.config`) with the appropriate `appDomainManagerAssembly` and `appDomainManagerType` values. The config file method is more universal and persistent, as it does not depend on environment variables. Both methods are covered in [Use AppDomainManager to maintain persistence](/news/use-appdomainmanager-to-maintain-persistence).