Results 1 to 10 of 15
-
29th Jul 2010, 04:11 PM #1OPMemberWebsite's:
intelligen2009.comDLMF - library for decrypting container files (rsdf, ccf, ncf and dlc)
Hello,
i like to present another minor project for application developers, particularly for download managers. some other download program coders developed files (called container files), which store the directlinks encrypted to prevent abuse. However many programs especially smaller ones have no algorithm to read these files, because the decryption is secret.
i developed in cooperation with some other coders a all-in-one solution to decrypt these files securely and easy.
In order to prevent mass-abusing - i ll not share a GUI or any kind of a end-user program, but these libraries with the corresponding interfaces.
i ll not share the source code - under no circumstances! don't ask .!.
Download (Linux, Windows): dlmf.zip
the interface is written in delphi, but is COM-based
Delphi: Widestring
C++: BSTR*
the Linux solution is not tested, cause i'm not familiar with this kind of system, just cross compiled
Delphi:
Code:procedure(RSDFFile: Widestring; out Result: Widestring); stdcall; external 'DLMF.dll';
Code:extern "C" __declspec(dllimport) __stdcall void RSDFToPlain(BSTR* RSDFFile, [out] BSTR* Result);
Code:[DllImport("DLMF.dll", EntryPoint = "RSDFToPlain", ExactSpelling = true, CallingConvention = CallingConvention.StdCall, CharSet = CharSet.Ansi)] public static extern void RSDFToPlain([MarshalAs(UnmanagedType.BStr)]string RSDFFile, [MarshalAs(UnmanagedType.BStr)]out string Result);
geskill Reviewed by geskill on . DLMF - library for decrypting container files (rsdf, ccf, ncf and dlc) Hello, i like to present another minor project for application developers, particularly for download managers. some other download program coders developed files (called container files), which store the directlinks encrypted to prevent abuse. However many programs especially smaller ones have no algorithm to read these files, because the decryption is secret. i developed in cooperation with some other coders a all-in-one solution to decrypt these files securely and easy. In order to prevent Rating: 5
-
29th Jul 2010, 04:44 PM #2Respected Developer
Nice. But why use the library when implementing it is quite easy (http://www.superwayne.org/papers/ccf3/)?
Just tried it, according to VS2010 it's not a valid COM component.
-
29th Jul 2010, 04:57 PM #3OPMemberWebsite's:
intelligen2009.comyou miss-understood me, i'm using COM-based parameters no COM component, sorry. The link you provided is just a technique for 1 container, furthermore there is missing something AND this container format is discontinued.
Delphi (original):
Code:function CCF30ToPlain(CCFFile: Widestring): Widestring; external 'DLMF.dll';
Code:void __stdcall CCF30ToPlain(BSTR* result, BSTR* CCFFile);
Code:[DllImport("DLMF.dll", EntryPoint="CCF30ToPlain", CallingConvention=CallingConvention.StdCall)] public static extern string CCF30ToPlain(string CCFFile);
-
29th Jul 2010, 05:03 PM #4Respected Developer
Ah I see. Still, these sort of file formats are easy to implement. Anyway, do you have a reference somewhere for the lib? I'd like to test the performance impact of .NET interop over C++.
Edit:
Your C# method is indeed the correct way (apart from string, should be StringBuilder in this case I think, don't know the delphi types).
Edit2:
Nope it's string .
http://www.netcoole.com/delphi2cs/datatype.htm
-
29th Jul 2010, 05:23 PM #5OPMemberWebsite's:
intelligen2009.comCode:[DllImport("DLMF.dll", EntryPoint="CCF30ToPlain", CallingConvention=CallingConvention.StdCall, CharSet=CharSet.Ansi)] public static extern string CCF30ToPlain(string CCFFile);
the parameter "CCFFile" is the file name "C:\mytestfile.ccf", not the file content
EDIT:
pls try this file: DLMF.dll i think i have a error in the calling convention...
-
29th Jul 2010, 05:47 PM #6Respected Developer
Neither work. "External component has thrown an exception."
Code:class Program { [DllImport("DLMF.dll", EntryPoint = "CCF30ToPlain", CallingConvention = CallingConvention.StdCall)] public static extern string CCF30ToPlain(string CCFFile); static void Main(string[] args) { string file = Environment.CurrentDirectory + "\\Simpsons_Staffel_4_Komplett.rsdf"; string data = CCF30ToPlain(file); Console.WriteLine(data); Console.ReadKey(true); } }
-
29th Jul 2010, 05:52 PM #7OPMemberWebsite's:
intelligen2009.comfor rsdf files you should use:
Code:class Program { [DllImport("DLMF.dll", EntryPoint = "RSDFToPlain", CallingConvention = CallingConvention.StdCall)] public static extern string RSDFToPlain(string RSDFFile); static void Main(string[] args) { string file = Environment.CurrentDirectory + "\\Simpsons_Staffel_4_Komplett.rsdf"; string data = RSDFToPlain(file); Console.WriteLine(data); Console.ReadKey(true); } }
Code:string file = Environment.CurrentDirectory + "\\Simpsons_Staffel_4_Komplett.rsdf"; // i would use it this way string file = Environment.CurrentDirectory + "\Simpsons_Staffel_4_Komplett.rsdf";
-
29th Jul 2010, 05:56 PM #8Respected Developer
It's called escaping characters. The \ has a special meaning in most languages. I tried it on 3 ccf files before I tried the rsdf.
-
29th Jul 2010, 06:02 PM #9OPMemberWebsite's:
intelligen2009.comhmm.. okay did you tried the charset?
Code:[DllImport("DLMF.dll", EntryPoint="CCF30ToPlain", CallingConvention=CallingConvention.StdCall, CharSet=CharSet.Ansi)] public static extern string CCF30ToPlain(string CCFFile); [DllImport("DLMF.dll", EntryPoint = "RSDFToPlain", CallingConvention=CallingConvention.StdCall, CharSet=CharSet.Ansi)] public static extern string RSDFToPlain(string RSDFFile);
-
29th Jul 2010, 06:08 PM #10Respected Developer
Ansi is assumed, there's no need to explicitly specify it. But yes I did try that. The problem is not with the interop since the exception comes from the dll. So something is wrong there or there's an issue with using string as data type.
Sponsored Links
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
Adding ip on vps container
By masterb56 in forum Server ManagementReplies: 1Last Post: 20th Sep 2011, 02:43 AM -
OpenVZ Container
By StabU2Dead in forum Webmaster DiscussionReplies: 2Last Post: 22nd May 2011, 10:07 AM -
Installing GD Graphics Library or Imagick Image Library
By RNBxBeatz in forum Webmaster DiscussionReplies: 0Last Post: 13th May 2011, 09:49 AM -
How to install GD Graphics Library or Imagick Image Library?
By Hillside in forum Technical Help Desk SupportReplies: 2Last Post: 12th Dec 2010, 09:54 AM -
MSDN Library
By BlaZe in forum General DiscussionReplies: 0Last Post: 26th Mar 2010, 06:28 AM
themaPoster - post to forums and...
Version 5.19 released. Open older version (or...