当前位置:网站首页>About the garbled code problem of superstar script
About the garbled code problem of superstar script
2022-07-06 14:42:00 【Ye, Mu】
In this case, you cannot answer the question after mounting the script , Any script about the answer script cannot be used .
Look at this font , I can't read the original , At first, I thought it was encryption and tried to use encryption algorithm to crack , And then use BP、 Other tools tried to decode without success .
Then try to decode with the code set , The result also ended in failure . Online search has not been solved .
Finally, I tried the transformation of complexity and simplicity with a try mentality , At first, I didn't believe how simple it was , Superstar programmers can't paddle , Then the conversion succeeded , Successfully restored original title . Here is what I use Python Restored output
#coding = utf-8
from zhconv import convert
code_lib = []
scr_lib = []
real_lib = []
code = ' In October, Russia set up a world-class promotion system, such as the time of '
scr = ' The October Revolution in Russia ushered in a new era of proletarian socialist revolution in the world '
for i in code:
decode = ord(i)
code_lib.append(decode)
for j in scr:
decode = ord(j)
scr_lib.append(decode)
for k in range(len(code_lib)):
real = code_lib[k] - scr_lib[k]
real_lib.append(real)
print(code_lib)
print(scr_lib)
print('--------- Difference --------')
print(real_lib)
print(decode)
decode = convert(scr,'zh-hans')
print(decode)
Conversion success
pip install zhconv
I need to use zhconv library
Write the revised... Quickly JS Script : about Python Code conversion to JS Code
pip install jiphy
Need to use jiphy library , As for some JS Some problems after conversion are actually solved
The final summary , The problem of garbled code is complex and simple conversion , So as long as the original JS The script search question plus the complex and simple conversion function should be able to solve . Solutions such as , Let the whole web page source code realize the conversion from traditional Chinese to simplified Chinese before loading JS Script .
#coding = utf-8
from zhconv import convert
import jiphy
def Decode(scr):
decode = convert(scr,'zh-hans')
return decode
def PyToJs(scr):
js = jiphy.to.python(scr)
return js
def JsToPy(scr):
py = jiphy.to.javascript(scr)
return py
if __name__ == '__main__':
#test
word = ' The original complex form of a simplified Chinese character '
decode = Decode(word)
print(decode)
js = 'JS Code '
py = JsToPy(js)
print(py)
边栏推荐
- Quaternion -- basic concepts (Reprint)
- Interview Essentials: what is the mysterious framework asking?
- Statistics 8th Edition Jia Junping Chapter 7 Summary of knowledge points and answers to exercises after class
- Harmonyos application development -- address book management system telmanagesys based on listcontainer [phonebook][api v6]
- Internet Management (Information Collection)
- "If life is just like the first sight" -- risc-v
- 《统计学》第八版贾俊平第十一章一元线性回归知识点总结及课后习题答案
- Es full text index
- 我的第一篇博客
- JDBC看这篇就够了
猜你喜欢
《统计学》第八版贾俊平第五章概率与概率分布
1.支付系统
High concurrency programming series: 6 steps of JVM performance tuning and detailed explanation of key tuning parameters
Captcha killer verification code identification plug-in
数据库多表链接的查询方式
Statistics, 8th Edition, Jia Junping, Chapter 6 Summary of knowledge points of statistics and sampling distribution and answers to exercises after class
四元数---基本概念(转载)
Circular queue (C language)
5分钟掌握机器学习鸢尾花逻辑回归分类
内网渗透之内网信息收集(二)
随机推荐
Solutions to common problems in database development such as MySQL
Fire! One day transferred to go engineer, not fire handstand sing Conquest (in serial)
我的第一篇博客
Data mining - a discussion on sample imbalance in classification problems
AQS details
函数:求方程的根
Statistics 8th Edition Jia Junping Chapter 12 summary of knowledge points of multiple linear regression and answers to exercises after class
1. Payment system
Database monitoring SQL execution
Circular queue (C language)
Attack and defense world misc practice area (GIF lift table ext3)
New version of postman flows [introductory teaching chapter 01 send request]
函数:计算字符串中大写字母的个数
2022华中杯数学建模思路
[pointer] solve the last person left
Overview of LNMP architecture and construction of related services
Apache APIs IX has the risk of rewriting the x-real-ip header (cve-2022-24112)
Load balancing ribbon of microservices
Intranet information collection of Intranet penetration (3)
Interview Essentials: what is the mysterious framework asking?