Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Python encryption protection-protects executable exe

2025-04-01 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Network Security >

Share

Shulou(Shulou.com)06/01 Report--

Python is an object-oriented interpretive computer programming language. Programs written in Python language do not need to be compiled into binary code and can be run directly from the source code. Inside the computer, the Python interpreter converts the source code into an intermediate form called bytes, which then translates and runs the machine language used by the computer. This makes Python easier and makes Python programs easier to port. Python is also one of FLOSS (Free / Open Source Software). Users are free to release a copy of the software, read its source code, make changes to it and use part of it in the new free software, so it is necessary to protect the source code independently developed by software developers.

Programs developed by Python can easily be decompiled into source code.

How to decompile

The python script can be packaged into an executable file through the packaging tool py2exe and cross-platform PyInstaller tools. The packaged executable file does not rely on python and can be run directly on a machine without python. Note: different packaging methods have different principles, and the location of the source code is also different, so the specific modules that need to be protected are also different.

After packaging with Py2exe, simply use unpy2exe-master, put the exe file in the directory of the program to be decompiled, execute the python unpy2XXX.exe component, and decompile it into a pyc file

After packaging with PyInstaller, put pyinstxtractor.py into the directory of the program to be decompiled, execute pyinstxtractorXXX.exe, and generate a folder in which you can find the same pyc file with the same name as the program. Then use Easy Python Decompiler v1.3.2 tool to decompile the pyc file, successfully generate a file with the suffix dis in the same directory, the generated dis file can use notepad++ to view the source code.

Solution

The exe executable file packaged by python can directly use Virbox Protector to shell the exe program. Many kinds of security technologies such as virtual machine and fragment code execution confusion are built into the shell software, which can effectively prevent the exe program from being decompiled and cannot dump memory.

The Virbox Protector shelling tool protects exe files directly by shelling. The encrypted software can be released directly without authorization and can not be added twice, so it is convenient and easy to use.

If you need to authorize the encrypted software, you can use Virbox LM authorization scheme, and use cloud lock / soft lock / encryption lock to cooperate with encryption. Users must get the encrypted software and authorization to use it. At the same time, they can do time-limited / time-limited / limited function / limited module to achieve subscription sales.

Virbox Protector shelling tool: shell.virbox.com

Virbox LM:lm.virbox.com

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report