This repository was archived by the owner on Nov 24, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -83,7 +83,7 @@ public static void Execute()
83
83
}
84
84
}
85
85
86
- Console . WriteLine ( $ "Added { Amount } proxy calls.") ;
86
+ Console . WriteLine ( $ " Added { Amount } proxy calls.") ;
87
87
}
88
88
}
89
89
}
Original file line number Diff line number Diff line change @@ -28,14 +28,14 @@ public static void Execute()
28
28
if ( method . Body . Instructions [ i ] . OpCode == OpCodes . Ldstr )
29
29
{
30
30
string operand = method . Body . Instructions [ i ] . Operand . ToString ( ) ;
31
- method . Body . Instructions [ i ] . Operand = Convert . ToBase64String ( Encoding . UTF8 . GetBytes ( operand ) ) ;
31
+ method . Body . Instructions [ i ] . Operand = Convert . ToBase64String ( Encoding . UTF32 . GetBytes ( operand ) ) ;
32
32
method . Body . Instructions . Insert ( i + 1 , OpCodes . Call . ToInstruction ( strings ) ) ;
33
33
++ Amount ;
34
34
}
35
35
}
36
36
}
37
37
38
- Console . WriteLine ( $ "Encrypted { Amount } strings.") ;
38
+ Console . WriteLine ( $ " Encrypted { Amount } strings.") ;
39
39
}
40
40
41
41
private static MethodDef CreateReturnMethodDef ( )
@@ -49,7 +49,7 @@ private static MethodDef CreateReturnMethodDef()
49
49
50
50
newMethod . Body . Instructions . Add ( OpCodes . Nop . ToInstruction ( ) ) ;
51
51
newMethod . Body . Instructions . Add (
52
- OpCodes . Call . ToInstruction ( Program . Module . Import ( typeof ( Encoding ) . GetMethod ( "get_UTF8 " ) ) ) ) ;
52
+ OpCodes . Call . ToInstruction ( Program . Module . Import ( typeof ( Encoding ) . GetMethod ( "get_UTF32 " ) ) ) ) ;
53
53
newMethod . Body . Instructions . Add ( OpCodes . Ldarg_0 . ToInstruction ( ) ) ;
54
54
newMethod . Body . Instructions . Add (
55
55
OpCodes . Call . ToInstruction ( Program . Module . Import ( typeof ( Convert ) . GetMethod ( "FromBase64String" ,
You can’t perform that action at this time.
0 commit comments