Step 1: use flash to read a normal SWF file and convert it to a bytearray object after reading binary data. Modify the bytearray sequence and save the modified binary object to the server. In this way, the Flash file format has been damaged and the cracking tool cannot crack the file. (You can also write a program in another language to modify the binary sequence. The purpose is to disrupt the normal FLASH file format .)
Step 2 decryption: the SWF file is created on the front end, and the user can access the SWF file normally. This SWF shell loads the encrypted file and reads it in binary. Then, the sequence of broken loops is corrected. After the modification, loader. loadbytes can be used for display.
1. First, create a local SWF file and then attach test.swf to it.
2. Create an encrypted file jiami. Fla. Copy the code
VaR uq: URLRequest = new URLRequest;
VaR ul: urlloader = new urlloader;
Ul. dataformat = urlloaderdataformat. Binary;
Ul. addeventlistener;
VaR BT: bytearray = new bytearray;
VaR bt2: bytearray = new bytearray;
Function success
Loader. load;
}
VaR Req: URLRequest = new URLRequest;
Loader. dataformat = urlloaderdataformat. Binary;
Loader. addeventlistener;
Function Handler
3. Create a decryption file jiemi. Fla. Copy the following code:
VaR uq: URLRequest = new URLRequest;
VaR ul: urlloader = new urlloader;
Ul. dataformat = urlloaderdataformat. Binary;
Ul. addeventlistener;
VaR BT: bytearray = new bytearray;
VaR bt2: bytearray = new bytearray;
Function success
VaR ld: loader = new loader;
LD. loadbytes;
Addchild;
}
Download the file here:
Note: This is a disguised format. Right-click the target and save it as. After downloading it to the hard disk, change the extension to RAR, unzip the package ................. pai_^