XeNTaX Forum Index
Forum MultiEx Commander Tools Tools Home
It is currently Fri Feb 15, 2019 11:57 pm

All times are UTC + 1 hour


Forum rules


Please click here to view the forum rules



Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: BF2 - BFP4F DFM Menu files
PostPosted: Thu Jan 24, 2019 10:26 am 
Offline
n00b

Joined: Tue May 03, 2016 2:13 pm
Posts: 17
Has thanked: 0 time
Have thanks: 11 times

someone asked me about this, so I looked into it, its just a simple XOR encryption:

Code:
class Program
    {
        static byte[] key = { 0x0B, 0xAD, 0xF0, 0x0D };

        static void Main(string[] args)
        {
            if (args.Length != 1 || !File.Exists(args[0]))
            {
                ShowUsage();
                return;
            }
            byte[] input = File.ReadAllBytes(args[0]);
            for (int i = 0; i < input.Length; i++)
                input[i] ^= key[i % 4];
            string name = Path.GetFileNameWithoutExtension(args[0]);
            if (args[0].ToLower().Trim().EndsWith(".dfm"))
                name += ".swf";
            else
                name += ".dfm";
            File.WriteAllBytes(name, input);
        }

        static void ShowUsage()
        {
            Console.WriteLine("DFM Converter Tool by Warranty Voider");
            Console.WriteLine("Usage:");
            Console.WriteLine(" DFMTool filename[.swf|.dfm]");
            Console.WriteLine(" DFMTool input.dfm");
            Console.WriteLine(" DFMTool input.swf");
        }
    }



greetz

You can make the ads go away by registering





Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group