/* Livebox H235 to Unlock key converter * (C) 2004 Evariste Hardy * * 1. Get a shell on Livebox (there are dozen of flaws to do that) * 2. Use "redboot_fconfig_get --parameter h235_key /dev/mtd4" to get your * H235 key * 3. Use this tool to get your unlock key * 4. Use the unlock key in http://configuration.adsl/brdgoff.html */ #include #include #include char unlock[17]; int main (int argc, char *argv[]) { printf ("\nLivebox H235 to unlock key converter\n(C) 2004 Evariste Hardy\n\n"); if (argc != 2 || (strlen (argv[1]) != 16)) { printf ("Use %s H235KEY\nH235 key is 16 chars large\n", argv[0]); exit (1); } unlock[1] = argv[1][4]; unlock[0] = argv[1][9]; unlock[2] = argv[1][1]; unlock[3] = argv[1][12]; unlock[4] = argv[1][14]; unlock[5] = argv[1][5]; unlock[6] = argv[1][13]; unlock[7] = argv[1][6]; unlock[8] = argv[1][15]; unlock[9] = argv[1][3]; unlock[10] = argv[1][8]; unlock[11] = argv[1][0]; unlock[12] = argv[1][7]; unlock[13] = argv[1][10]; unlock[14] = argv[1][2]; unlock[15] = argv[1][11]; printf ("Your unlock key is %s\n", unlock); return 0; }