terraria-cpp2il-methodrecon v1.4.4.9
Terraria mobile dump, with reconstructed method body. Dump with CallAnalysis: https://infinitynichto.github.io/terraria-cpp2il
Loading...
Searching...
No Matches
ChallengeResponse2.cs
Go to the documentation of this file.
1using System;
5using System.Text;
7
9{
10 // Token: 0x0200003A RID: 58
11 public static class ChallengeResponse2
12 {
13 // Token: 0x060001BD RID: 445 RVA: 0x00008078 File Offset: 0x00006278
14 private static byte[] Compute_LM(string password, byte[] challenge)
15 {
16 DES.Create().Clear();
17 byte[] array;
18 return array;
19 }
20
21 // Token: 0x060001BE RID: 446 RVA: 0x00008098 File Offset: 0x00006298
22 private static byte[] Compute_NTLM_Password(string password)
23 {
24 MD4 md = MD4.Create();
26 long num = 0L;
27 byte[] array;
28 Array.Clear(array, (int)num, 42163096);
29 return 42163096;
30 }
31
32 // Token: 0x060001BF RID: 447 RVA: 0x000080CC File Offset: 0x000062CC
33 private static byte[] Compute_NTLM(string password, byte[] challenge)
34 {
35 if (!true)
36 {
37 }
38 byte[] array;
39 return array;
40 }
41
42 // Token: 0x060001C0 RID: 448 RVA: 0x000080E0 File Offset: 0x000062E0
43 private static void Compute_NTLMv2_Session(string password, byte[] challenge, [Out] byte[] lm, [Out] byte[] ntlm)
44 {
46 MD5 md = MD5.Create();
47 int num = 8;
48 byte[] array;
50 long num2 = 0L;
51 byte[] array2;
52 Array.Clear(array2, (int)num2, num);
53 }
54
55 // Token: 0x060001C1 RID: 449 RVA: 0x00008120 File Offset: 0x00006320
56 private static byte[] Compute_NTLMv2(Type2Message type2, string username, string password, string domain)
57 {
58 /*
59An exception occurred when decompiling this method (060001C1)
60
61ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Byte[] Mono.Security.Protocol.Ntlm.ChallengeResponse2::Compute_NTLMv2(Mono.Security.Protocol.Ntlm.Type2Message,System.String,System.String,System.String)
62
63 ---> System.Exception: Basic block has to end with unconditional control flow.
64{
65 IL_0052:
66 stloc:int64(var_14_5F, callgetter:int64(DateTime::get_Ticks, callgetter:DateTime[exp:valuetype [mscorlib]System.DateTime&](DateTime::get_Now)))
67 stloc:RandomNumberGenerator(var_17_6C, call:RandomNumberGenerator(RandomNumberGenerator::Create))
68 stloc:int64(var_25_72, ldc.i4:int64(0))
69 stloc:int64(var_26_75, ldc.i4:int64(0))
70 call:void(Array::Clear, ldloc:uint8[][exp:Array](var_11), ldloc:int64[exp:int32](var_26_75), ldloc:int64[exp:int32](var_25_72))
71 stloc:int64(var_27_83, ldc.i4:int64(0))
72 call:void(Array::Clear, ldloc:uint8[][exp:Array](var_24), ldloc:int64[exp:int32](var_27_83), ldc.i4:int32(-1186988032))
73}
74
75 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
76 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
77 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
78 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
79 --- End of inner exception stack trace ---
80 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
81 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
82*/;
83 }
84
85 // Token: 0x060001C2 RID: 450 RVA: 0x000081C0 File Offset: 0x000063C0
86 public static void Compute(Type2Message type2, NtlmAuthLevel level, string username, string password, string domain, [Out] byte[] lm, [Out] byte[] ntlm)
87 {
88 }
89
90 // Token: 0x060001C3 RID: 451 RVA: 0x00008220 File Offset: 0x00006420
91 private static byte[] GetResponse(byte[] challenge, byte[] pwd)
92 {
93 /*
94An exception occurred when decompiling this method (060001C3)
95
96ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Byte[] Mono.Security.Protocol.Ntlm.ChallengeResponse2::GetResponse(System.Byte[],System.Byte[])
97
98 ---> System.Exception: Basic block has to end with unconditional control flow.
99{
100 Block_0:
101 stloc:DES(var_2_0A, call:DES(DES::Create))
102 stloc:int64(var_3_0C, ldc.i4:int64(0))
103 stloc:uint8[](var_4_14, call:uint8[](ChallengeResponse2::PrepareDESKey, ldloc:uint8[](challenge), ldloc:int64[exp:int32](var_3_0C)))
104 stloc:int32(var_5_17, ldc.i4:int32(7))
105 stloc:uint8[](var_6_21, call:uint8[](ChallengeResponse2::PrepareDESKey, ldloc:uint8[](challenge), ldloc:int32(var_5_17)))
106 stloc:int32(var_7_25, ldc.i4:int32(14))
107 stloc:uint8[](var_8_2F, call:uint8[](ChallengeResponse2::PrepareDESKey, ldloc:uint8[](challenge), ldloc:int32(var_7_25)))
108}
109
110 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
111 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
112 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
113 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
114 --- End of inner exception stack trace ---
115 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
116 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
117*/;
118 }
119
120 // Token: 0x060001C4 RID: 452 RVA: 0x00008260 File Offset: 0x00006460
121 private static byte[] PrepareDESKey(byte[] key56bits, int position)
122 {
123 }
124
125 // Token: 0x060001C5 RID: 453 RVA: 0x00008270 File Offset: 0x00006470
126 private static byte[] PasswordToKey(string password, int position)
127 {
128 int num = 7;
129 int num2 = Math.Min(0, num);
132 byte[] array;
133 return array;
134 }
135
136 // Token: 0x060001C6 RID: 454 RVA: 0x000082A0 File Offset: 0x000064A0
137 // Note: this type is marked as 'beforefieldinit'.
139 {
140 }
141
142 // Token: 0x040000D3 RID: 211
143 private static byte[] magic;
144
145 // Token: 0x040000D4 RID: 212
146 private static byte[] nullEncMagic;
147 }
148}
class f__AnonymousType0<< Count > j__TPar
static new MD4 Create()
Definition MD4.cs:17
static byte[] PrepareDESKey(byte[] key56bits, int position)
static byte[] PasswordToKey(string password, int position)
static byte[] Compute_NTLMv2(Type2Message type2, string username, string password, string domain)
static byte[] Compute_NTLM_Password(string password)
static byte[] Compute_NTLM(string password, byte[] challenge)
static void Compute(Type2Message type2, NtlmAuthLevel level, string username, string password, string domain, [Out] byte[] lm, [Out] byte[] ntlm)
static byte[] Compute_LM(string password, byte[] challenge)
static byte[] GetResponse(byte[] challenge, byte[] pwd)
static void Compute_NTLMv2_Session(string password, byte[] challenge, [Out] byte[] lm, [Out] byte[] ntlm)
void IList. Clear()
Definition Array.cs:99
static CultureInfo CurrentCulture
static byte Min(byte val1, byte val2)
Definition Math.cs:152
static new DES Create()
Definition DES.cs:73
static new MD5 Create()
Definition MD5.cs:18
static Encoding Unicode
Definition Encoding.cs:799
static Encoding ASCII
Definition Encoding.cs:348