Hello all, we have been targeted by a certain type of spambot that will send messages to our users in their private messages. If you get a message from such a loser/bot, report it to us here, and delete the message !

BF2 - BFP4F DFM Menu files

Get your graphics formats figures out here! Got details for others? Post here!
Post Reply
Posts: 20
Joined: Tue May 03, 2016 2:13 pm
Been thanked: 13 times

BF2 - BFP4F DFM Menu files

Post by warrantyvoider » Thu Jan 24, 2019 10:26 am

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

Code: Select all

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

        static void Main(string[] args)
            if (args.Length != 1 || !File.Exists(args[0]))
            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";
                name += ".dfm";
            File.WriteAllBytes(name, input);

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


Post Reply