yck1509 / ConfuserEx

An open-source, free protector for .NET applications
http://yck1509.github.io/ConfuserEx/
Other
3.57k stars 1.63k forks source link

Get exception to use compressor #14

Closed OurIslam closed 10 years ago

OurIslam commented 10 years ago

.csproj http://pastebin.com/dX7X4f2e

the exception Failed to load project: System.Xml.XmlException: '<', hexadecimal value 0x3C, is an invalid attribute ch aracter. Line 6, position 38. at System.Xml.XmlTextReaderImpl.Throw(Exception e) at System.Xml.XmlTextReaderImpl.ParseAttributeValueSlow(Int32 curPos, Char qu oteChar, NodeData attr) at System.Xml.XmlTextReaderImpl.ParseAttributes() at System.Xml.XmlTextReaderImpl.ParseElement() at System.Xml.XmlTextReaderImpl.ParseElementContent() at System.Xml.XmlLoader.LoadNode(Boolean skipOverWhitespace) at System.Xml.XmlLoader.LoadDocSequence(XmlDocument parentDoc) at System.Xml.XmlDocument.Load(XmlReader reader) at System.Xml.XmlDocument.Load(String filename) at Confuser.CLI.Program.Main(String[] args) in e:\Source\Public\Confuser2\Con fuser.CLI\Program.cs:line 26

sample plss

yck1509 commented 10 years ago

I mean, replace <module name> with actual module name, like <argument name="main" value="Test_Exe.exe"/>

OurIslam commented 10 years ago

i replaced modulename http://pastebin.com/AVNsNNrn

tried with real module name and new module name _.netmodule

both got same exception

Microsoft Windows Version 6.3.9600 2013 Microsoft Corporation. All rights reserved.

C:\Users\admin>C:\Users\admin\Desktop\confuserex\Confuser.CLI.exe C:\Users\admin \Desktop\confuserex\config.crproj [INFO] ConfuserEx v0.1.0-12-g4371de1 Copyright (C) Ki 2014 [INFO] Running on Microsoft Windows NT 6.2.9200.0, .NET Framework v2.0.50727.80 00, 64 bits [DEBUG] Discovering plugins... [INFO] Discovered 10 protections, 1 packers. [DEBUG] Resolving component dependency... [INFO] Loading input modules... [INFO] Loading 'C:\Users\admin\Desktop\Test_Exe.exe'... [INFO] Initializing... [DEBUG] Building pipeline... [INFO] Resolving dependencies... [DEBUG] Checking Strong Name... [DEBUG] Creating global .cctors... [DEBUG] Watermarking... [DEBUG] Building VTables & identifier list... [DEBUG] Analyzing... [WARN] Could not found resource type 'Test_Exe.Resources'. [INFO] Processing module 'Test_Exe.exe'... [ERROR] An IO error occured, check if all input/output locations are read/writab le. Exception: System.IO.IOException: Could not open file C:\Users\admin\Confuser.Ru ntime.dll for reading. Error: 00000002 at dnlib.IO.MemoryMappedFileStreamCreator..ctor(String fileName, Boolean mapA sImage) in e:\Source\Public\Confuser2\dnlib\src\IO\MemoryMappedFileStreamCreator .cs:line 85 at dnlib.IO.ImageStreamCreator.Create(String fileName, Boolean mapAsImage) in e:\Source\Public\Confuser2\dnlib\src\IO\ImageStreamCreator.cs:line 64 at dnlib.PE.PEImage..ctor(String fileName, Boolean mapAsImage, Boolean verify ) in e:\Source\Public\Confuser2\dnlib\src\PE\PEImage.cs:line 186 at dnlib.PE.PEImage..ctor(String fileName) in e:\Source\Public\Confuser2\dnli b\src\PE\PEImage.cs:line 213 at dnlib.DotNet.MD.MetaDataCreator.Load(String fileName) in e:\Source\Public\ Confuser2\dnlib\src\DotNet\MD\MetaDataCreator.cs:line 56 at dnlib.DotNet.ModuleDefMD.Load(String fileName) in e:\Source\Public\Confuse r2\dnlib\src\DotNet\ModuleDefMD.cs:line 186 at Confuser.Core.Services.RuntimeService.GetRuntimeType(String fullName) in e :\Source\Public\Confuser2\Confuser.Core\Services\RuntimeService.cs:line 10 at Confuser.Protections.AntiDebugProtection.AntiDebugPhase.Execute(ConfuserCo ntext context, ProtectionParameters parameters) in e:\Source\Public\Confuser2\Co nfuser.Protections\AntiDebugProtection.cs:line 65 at Confuser.Core.ProtectionPipeline.ExecuteStage(PipelineStage stage, Action 1 func, Func1 targets, ConfuserContext context) in e:\Source\Public\Confuser2\C onfuser.Core\ProtectionPipeline.cs:line 130 at Confuser.Core.ConfuserEngine.RunPipeline(ProtectionPipeline pipeline, Conf userContext context) in e:\Source\Public\Confuser2\Confuser.Core\ConfuserEngine. cs:line 194 at Confuser.Core.ConfuserEngine.RunInternal(ConfuserParameters parameters, Ca ncellationToken token) in e:\Source\Public\Confuser2\Confuser.Core\ConfuserEngin e.cs:line 145 Failed at 7:24 AM, 0:00 elapsed.

if give a sample of full argument .xaml to use that test.exe , i will able to understand.

OurIslam commented 10 years ago

wow works perfect . Thank you so much . i was waiting to see how packer plugin looks like in new confuserex . thanks. its ok thank you

issue fixed.

yck1509 commented 10 years ago

<module path="......" snKey="C:\path_to_key.snk">

OurIslam commented 10 years ago

Thanks again . but packer no have any dump anti , is really weak .

yck1509 commented 10 years ago

...? You're suppose to add anti dump yourself if you want that protection.

OurIslam commented 10 years ago

nothing . is really awesome . thank you :+1: