Flash encryption tries simple binary operations

Source: Internet
Author: User

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_^

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.