Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- * Decompiled with CFR 0_123.
- *
- * Could not load the following classes:
- *
- * $php_module_m0f8e34485f84488d91ef415b0472a0f0_class0
- * $php_module_m3e6718be6b2b43f28e27b3cd29f9309c_class0
- * org.develnext.jphp.zend.ext.standard.StringFunctions
- * php.runtime.Memory
- * php.runtime.env.Environment
- * php.runtime.env.TraceInfo
- * php.runtime.ext.core.ArrayFunctions
- * php.runtime.ext.core.StringFunctions
- * php.runtime.invoke.cache.ClassCallCache
- * php.runtime.invoke.cache.ConstantCallCache
- * php.runtime.invoke.cache.FunctionCallCache
- * php.runtime.invoke.cache.MethodCallCache
- * php.runtime.invoke.cache.PropertyCallCache
- * php.runtime.lang.ForeachIterator
- * php.runtime.memory.LongMemory
- * php.runtime.memory.ReferenceMemory
- * php.runtime.memory.StringMemory
- * php.runtime.reflection.ClassEntity
- */
- import org.develnext.jphp.zend.ext.standard.StringFunctions;
- import php.runtime.Memory;
- import php.runtime.env.Environment;
- import php.runtime.env.TraceInfo;
- import php.runtime.ext.core.ArrayFunctions;
- import php.runtime.invoke.cache.ClassCallCache;
- import php.runtime.invoke.cache.ConstantCallCache;
- import php.runtime.invoke.cache.FunctionCallCache;
- import php.runtime.invoke.cache.MethodCallCache;
- import php.runtime.invoke.cache.PropertyCallCache;
- import php.runtime.lang.ForeachIterator;
- import php.runtime.memory.LongMemory;
- import php.runtime.memory.ReferenceMemory;
- import php.runtime.memory.StringMemory;
- import php.runtime.reflection.ClassEntity;
- public class $php_module_m3e6718be6b2b43f28e27b3cd29f9309c_class0
- extends .php_module_m0f8e34485f84488d91ef415b0472a0f0_class0 {
- public static final String $FN = "D:\\1\\2\\backkkkkkkkk\\1\\src\\app\\modules\\EncDec.php";
- public static TraceInfo[] $TRC = new TraceInfo[]{TraceInfo.valueOf((String)$FN, (long)11, (long)8), TraceInfo.valueOf((String)$FN, (long)12, (long)17), TraceInfo.valueOf((String)$FN, (long)14, (long)21), TraceInfo.valueOf((String)$FN, (long)17, (long)55), TraceInfo.valueOf((String)$FN, (long)18, (long)38), TraceInfo.valueOf((String)$FN, (long)19, (long)39), TraceInfo.valueOf((String)$FN, (long)20, (long)43), TraceInfo.valueOf((String)$FN, (long)20, (long)63), TraceInfo.valueOf((String)$FN, (long)20, (long)92)};
- public static Memory[] $MEM = new Memory[]{StringMemory.valueOf((String)":"), LongMemory.valueOf((long)0), LongMemory.valueOf((long)0), LongMemory.valueOf((long)0), LongMemory.valueOf((long)0), LongMemory.valueOf((long)0)};
- public static Memory[][] $AMEM = new Memory[0][];
- public static FunctionCallCache $CALL_FUNC_CACHE = new FunctionCallCache();
- public static MethodCallCache $CALL_METH_CACHE = new MethodCallCache();
- public static PropertyCallCache $CALL_PROP_CACHE;
- public static ConstantCallCache $CALL_CONST_CACHE;
- public static ClassCallCache $CALL_CLASS_CACHE;
- public static final String $CL = "app\\modules\\EncDec";
- public $php_module_m3e6718be6b2b43f28e27b3cd29f9309c_class0(Environment environment, ClassEntity classEntity) {
- $php_module_m3e6718be6b2b43f28e27b3cd29f9309c_class0 $php_module_m3e6718be6b2b43f28e27b3cd29f9309c_class0;
- super(environment, classEntity);
- }
- public static Memory decode$34(Environment environment, Memory[] arrmemory) {
- ReferenceMemory privateKey;
- ReferenceMemory data = new ReferenceMemory();
- if (Memory.assignRight((Memory)arrmemory[0], (Memory)data) == null) {
- Memory.assignRight((Memory)Memory.NULL, (Memory)data);
- }
- if (Memory.assignRight((Memory)arrmemory[1], (Memory)(privateKey = new ReferenceMemory())) == null) {
- Memory.assignRight((Memory)Memory.NULL, (Memory)privateKey);
- }
- ReferenceMemory item = new ReferenceMemory();
- Memory signature = Memory.NULL;
- ReferenceMemory keys = new ReferenceMemory();
- Memory i = Memory.NULL;
- ReferenceMemory publicKey = new ReferenceMemory();
- ReferenceMemory chr = new ReferenceMemory();
- Memory publicPos = Memory.NULL;
- Memory rkey = Memory.NULL;
- Memory decoded = Memory.NULL;
- Memory privatePos = Memory.NULL;
- ReferenceMemory encoded = new ReferenceMemory();
- Memory publicEKey = Memory.NULL;
- publicKey.assign(StringFunctions.substr((String)data.toString(), (int)((int)0), (int)((int)32)));
- signature = StringFunctions.substr((String)data.toString(), (int)((int)-32));
- encoded.assign(StringFunctions.explode((String)":", (String)StringFunctions.substr((String)data.toString(), (int)((int)32), (int)((int)-32)).toString()));
- publicEKey = StringFunctions.md5((Environment)environment, (Memory)StringMemory.valueOf((String)privateKey.concat(publicKey.toImmutable())).toValue());
- ForeachIterator foreachIterator = environment.__getIterator($TRC[0], (Memory)encoded, false, false);
- while (foreachIterator.next()) {
- Memory.assignRight((Memory)foreachIterator.getValue().toImmutable(), (Memory)item);
- keys.refOfPush($TRC[1]).assign(StringFunctions.md5((Environment)environment, (Memory)StringMemory.valueOf((String)item.concat(privateKey.toImmutable())).toValue()));
- }
- rkey = StringFunctions.md5((Environment)environment, (Memory)StringFunctions.implode((Environment)environment, (TraceInfo)$TRC[2], (Memory)$MEM[0], (Memory)keys.toValue()).toValue());
- if (rkey.equal(signature.toImmutable())) {
- i = $MEM[1];
- privatePos = $MEM[2];
- publicPos = $MEM[3];
- while (i.smaller(ArrayFunctions.count((Environment)environment, (TraceInfo)$TRC[3], (Memory)encoded.toValue()))) {
- if (StringFunctions.strlen((Environment)environment, (TraceInfo)$TRC[4], (Memory)publicKey.toValue()).minus(1).greaterRight(publicPos)) {
- publicPos = $MEM[4];
- }
- if (StringFunctions.strlen((Environment)environment, (TraceInfo)$TRC[5], (Memory)privateKey.toValue()).minus(1).greaterRight(privatePos)) {
- privatePos = $MEM[5];
- }
- Memory.assignRight((Memory)LongMemory.valueOf((long)(encoded.valueOfIndex($TRC[6], i).toLong() - (long)php.runtime.ext.core.StringFunctions.ord((char)publicKey.valueOfIndex($TRC[7], publicPos).toChar()) - (long)php.runtime.ext.core.StringFunctions.ord((char)privateKey.valueOfIndex($TRC[8], privatePos).toChar()))), (Memory)chr);
- decoded = StringMemory.valueOf((String)decoded.concat(php.runtime.ext.core.StringFunctions.chr((int)((int)chr.toLong()))));
- i = i.inc();
- privatePos = privatePos.inc();
- publicPos = publicPos.inc();
- }
- }
- return decoded.toImmutable();
- }
- static {
- $CALL_CONST_CACHE = new ConstantCallCache();
- $CALL_PROP_CACHE = new PropertyCallCache();
- $CALL_CLASS_CACHE = new ClassCallCache();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment