.NETC # Implementation: A plug-in algorithm for site password in the FlashFXP address book

xiaoxiao2021-03-06  67

See CCFER & TLFER: Kanbol's Java code translation modification: kanbol said: Previously written a program in TLF to automatically update flashfxp's address book, which is to modify the sites.dat file now to post FlashFXP's plus solution algorithm, by the way The Structural algorithm of the sites.dat file can be seen below, the Sites.dat file structure is relatively simple, if you open it directly with UltraEdit, you can see a text file to convert to hex editing mode, you can see a bit of different sites. Name, including its directory names in a "[]", such as the subdirectories under the directory ABC DEF under the site sitename // c # code: // use means; // useing system.text;

public class Class1 {private static char [] key = "yA36zA48dEhfrvghGRg57h5UlDv3" .ToCharArray (); public static void Main () {System.Console.Out.WriteLine (Decode (Encode ( "password"))); System.Console.Out .Writeline ("Microshaoft"))))))); system.console.out.writeline ("flashfxp"))))))); system.console.out.writeline (Encode ("FlashFXP")) );} Public static string decode (String x) {system.text.StringBuilder SB = new system.text.StringBuilder (); char [] ca = x.tochararray (); for (int i = 0; i <(CA .Length - 2); i = 2) {String S1 = "" CA [i 2] CA [i 3]; string s2 = " system.convert.tostring ((byte) Key [ I / 2)% 13], 16); String S3 = "" CA [i] CA [i 1]; int m = (System.Convert.Toint32 (S1, 16) ^ System.convert.Toint32 ( S2, 16)) - System.Convert.Toint32 (S3, 16); if (m <0) {m = 255;} Sb.Append ((short));} return sb.tostring ();

转载请注明原文地址:https://www.9cbs.com/read-87483.html

New Post(0)