Django 代码保护

常用的代码保护不外乎下面几种方法:

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
发行 .pyc 文件
代码混淆
使用 py2exe
使用 Cython
发行 .pyc 文件 代码混淆 使用 py2exe 使用 Cython
发行 .pyc 文件
代码混淆
使用 py2exe
使用 Cython

django发布的需要以服务运行,通过其他的几种方法来实现保护,都不太现实。所以发布可以通过cython的方式实现。

1. 安装cython

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
pip3 install cython
pip3 install cython
pip3 install cython

2.在项目目录创建setup.py 编辑内容如下,其中“app/file1.py”是你所要打包的py文件名,这儿需要把app下所有的py文件都添加进来(当然也可以添加部分)

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
from distutils.core import setup
from Cython.Build import cythonize
fileSet = set()
fileSet.add("UserBase/models.py")
fileSet.add("UserBase/views.py")
setup(
ext_modules=cythonize(fileSet)
)
from distutils.core import setup from Cython.Build import cythonize fileSet = set() fileSet.add("UserBase/models.py") fileSet.add("UserBase/views.py") setup( ext_modules=cythonize(fileSet) )
from distutils.core import setup

from Cython.Build import cythonize

fileSet = set()

fileSet.add("UserBase/models.py")
fileSet.add("UserBase/views.py")

setup(

    ext_modules=cythonize(fileSet)

)

Continue Reading

JEB Decompiler 4.18

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
mod by cxv
Press Generate a Key in welcome window
- fix all integrity checks\timebomb
- Time-limited sessions fixed
- Requires an Internet connection fixed
- dexdec: fix string decrypt via emulation
- dexdec: instruction conversion recovered
- gui: Usage of the clipboard is disallowed fixed
- jdb2: Saving or loading projects is disabled fixed
- android debug enabled
- avrdec: decompiler enabled
- Decompiler exporter fixed
mod by cxv Press Generate a Key in welcome window - fix all integrity checks\timebomb - Time-limited sessions fixed - Requires an Internet connection fixed - dexdec: fix string decrypt via emulation - dexdec: instruction conversion recovered - gui: Usage of the clipboard is disallowed fixed - jdb2: Saving or loading projects is disabled fixed - android debug enabled - avrdec: decompiler enabled - Decompiler exporter fixed
mod by cxv

Press Generate a Key in welcome window

- fix all integrity checks\timebomb
- Time-limited sessions fixed
- Requires an Internet connection fixed
- dexdec: fix string decrypt via emulation
- dexdec: instruction conversion recovered
- gui: Usage of the clipboard is disallowed fixed
- jdb2: Saving or loading projects is disabled fixed
- android debug enabled
- avrdec: decompiler enabled
- Decompiler exporter fixed

Continue Reading

由电源计划导致的CPU占用率100%

前几天为了释放C盘空间,干了两件事情:

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
1.关闭了休眠,删除休眠文件powercfg -h off
2.转移了iTunes的备份文件。
1.关闭了休眠,删除休眠文件powercfg -h off 2.转移了iTunes的备份文件。
1.关闭了休眠,删除休眠文件powercfg -h off
2.转移了iTunes的备份文件。

Continue Reading

修改iTunes备份文件路径

虽然iTunes本身提供了修改媒体库文件路径的选项,但是这个选项没有啥用,iPhone的备份文件还是在C盘用户目录下,要修改备份文件路径可以通过下面的方法:

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
1. 讲MobileSync文件夹复制到其他盘下
2. 通过下面的命令创建符号链接:mklink /d "C:\Users\obaby\Appdata\Roming\Apple Computer\MobileSync" "I:\Apple computer\MobileSync"
注意路径包含空格,需要在路径上用引号标注,前面为愿路径,后面为复制之后的路径,请自行替换用户名 obaby
1. 讲MobileSync文件夹复制到其他盘下 2. 通过下面的命令创建符号链接:mklink /d "C:\Users\obaby\Appdata\Roming\Apple Computer\MobileSync" "I:\Apple computer\MobileSync" 注意路径包含空格,需要在路径上用引号标注,前面为愿路径,后面为复制之后的路径,请自行替换用户名 obaby
1. 讲MobileSync文件夹复制到其他盘下
2. 通过下面的命令创建符号链接:mklink /d "C:\Users\obaby\Appdata\Roming\Apple Computer\MobileSync" "I:\Apple computer\MobileSync"
注意路径包含空格,需要在路径上用引号标注,前面为愿路径,后面为复制之后的路径,请自行替换用户名 obaby

Continue Reading

微图坊爬虫 【22.06.16】【Windows】

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
更新记录:
1. 修复某些分类无法获取专辑列表的问题
2. 每天启动请重新登录
更新记录: 1. 修复某些分类无法获取专辑列表的问题 2. 每天启动请重新登录
更新记录:
1. 修复某些分类无法获取专辑列表的问题
2. 每天启动请重新登录

Continue Reading

终于,那条6年前埋的网线上岗了

这条网线装修的时候就扯进了墙里,预埋好了。不过一直也没有派上用场。主要的原因在于卧室里也没什么设备。说路由器信号不好吧,偶尔也还可以,说路由器信号好吧,晚上一关门直接傻眼。但是好在流量够用,于是在卧室就直接用流量上网。
前几天买了一台tplink的路由器,用来扩展无线信号,刚开始用的时候感觉还可以,后来发现貌似也不大行,还是会卡。从电脑上登录后台才发现,扩展的是2.4g信号。5g信号扩展提示主路由器太远,建议缩小距离,这tm神了,如果不远还需要扩展信号?

Continue Reading