Skip to content

Added batch modules loading using a wildcard#481

Open
ozaiats wants to merge 3 commits into
mkaring:masterfrom
ozaiats:feature/batch_modules_loading
Open

Added batch modules loading using a wildcard#481
ozaiats wants to merge 3 commits into
mkaring:masterfrom
ozaiats:feature/batch_modules_loading

Conversation

@ozaiats

@ozaiats ozaiats commented May 4, 2022

Copy link
Copy Markdown

The change allows using a wildcard to batch load modules that need to be obfuscated.
Usage example:

	<module path="*.dll"                                         >
	    <rule preset="none" pattern="true" inherit="false">
			<protection id="ctrl flow" />
			<protection id="invalid metadata" />
			<protection id="ref proxy" />
			<protection id="rename" />
			<protection id="resources" />
		</rule>
	</module>

@mkaring what do you think?

@AppVeyorBot

Copy link
Copy Markdown

Build ConfuserEx 986 completed (commit 55008ed32d by @)

Comment thread Confuser.Core/Project/ConfuserProject.cs Outdated
Comment thread Confuser.Core/Project/ConfuserProject.cs Outdated
@AppVeyorBot

Copy link
Copy Markdown

Build ConfuserEx 987 completed (commit 9c41530ab1 by @)

mcpolo99 added a commit to mcpolo99/ConfuserExx that referenced this pull request Jun 7, 2026
) (#35)

Cherry-pick of mkaring#481 — allows using wildcards like
*.dll in module paths to batch-load modules from the base directory.

The Load method now accepts an optional baseDirRoot parameter to
resolve relative base directory paths. New internal helpers AddModule,
IsWildcard, and BatchLoadModules handle wildcard expansion using
Directory.GetFiles with TopDirectoryOnly search.

Co-authored-by: RandomCrocodile <mawi@polosab.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants