1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69
| package com.company;
import java.util.HashMap;
public class Main { public static int[] realflag = {9, 4, 23, 8, 17, 1, 18, 0, 13, 7, 2, 20, 16, 10, 22, 12, 19, 6, 15, 21, 3, 14, 5, 11}; public static int[] therealflag = {20, 16, 12, 9, 6, 15, 21, 3, 18, 0, 13, 7, 1, 4, 23, 8, 17, 2, 10, 22, 19, 11, 14, 5}; public static HashMap<Integer, Character> theflags = new HashMap<>(); public static HashMap<Integer, Character> theflags0 = new HashMap<>(); public static HashMap<Integer, Character> theflags1 = new HashMap<>(); public static HashMap<Integer, Character> theflags2 = new HashMap<>(); public static boolean m = true; public static boolean g = false;
public static void createMap(HashMap owo, String input, boolean uwu) { if (uwu) { for (int i = 0; i < input.length(); i++) { owo.put(realflag[i], input.charAt(i)); } } else { for (int i = 0; i < input.length(); i++) { owo.put(therealflag[i], input.charAt(i)); } } }
public static void main(String[] var0) throws Exception { String flag = "ow0_wh4t_4_h4ckr_y0u_4r3"; createMap(theflags0, flag, g); createMap(theflags2, flag, m); int[] thefinalflag = {157, 157, 236, 168, 160, 162, 171, 162, 165, 199, 169, 169, 160, 194, 235, 207, 227, 210, 157, 203, 227, 104, 212, 202}; String s=""; char[] f = new char[24]; for (int p = 0; p < thefinalflag.length; p++) { if (thefinalflag[p] >= 156 && thefinalflag[p] <= 166) thefinalflag[p] -= 10; thefinalflag[p] -= theflags0.get(p);
}
thefinalflag[8]+=10; thefinalflag[5]+=10;
for(int i=0;i<thefinalflag.length-3;i++) { int j=0; for(;j<realflag.length;j++) { if(realflag[j]==i) break; } f[j]=(char)thefinalflag[i]; } System.out.println(f); for(int i=thefinalflag.length-3;i<thefinalflag.length;i++) { int j=0; for(;j<therealflag.length;j++) { if(therealflag[j]==i) break; } f[j]=(char)thefinalflag[i]; } System.out.println(f); } }
|
Comments