Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- case msg is RawDataMessage:
- rdMsg = msg as RawDataMessage;
- if(Kernel.getWorker().contains(AuthentificationFrame))
- {
- _log.error("Impossible de traiter le paquet RawDataMessage durant cette phase.");
- return false;
- }
- content = new ByteArray();
- signature = new Signature(SIGNATURE_KEY_V1,SIGNATURE_KEY_V2);
- _log.info("Bytecode len: " + rdMsg.content.length + ", hash: " + MD5.hashBytes(rdMsg.content));
- rdMsg.content.position = 0;
- if(signature.verify(rdMsg.content,content))
- {
- l = new Loader();
- lc = new LoaderContext(false,new ApplicationDomain(ApplicationDomain.currentDomain));
- AirScanner.allowByteCodeExecution(lc,true);
- l.loadBytes(content,lc);
- }
- else
- {
- _log.error("Signature incorrecte");
- }
- return true;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement