当前位置:网站首页>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)
边栏推荐
- JVM memory model concept
- servlet中 servlet context与 session与 request三个对象的常用方法和存放数据的作用域。
- New version of postman flows [introductory teaching chapter 01 send request]
- 数字电路基础(四) 数据分配器、数据选择器和数值比较器
- Circular queue (C language)
- 浙大版《C语言程序设计实验与习题指导(第3版)》题目集
- Always of SystemVerilog usage_ comb 、always_ iff
- 刷视频的功夫,不如看看这些面试题你掌握了没有,慢慢积累月入过万不是梦。
- 函数:用牛顿迭代法求方程的根
- Sentinel overall workflow
猜你喜欢
1. Payment system
Statistics 8th Edition Jia Junping Chapter 12 summary of knowledge points of multiple linear regression and answers to exercises after class
Chain team implementation (C language)
数据库多表链接的查询方式
“人生若只如初见”——RISC-V
Based on authorized access, cross host, and permission allocation under sqlserver
New version of postman flows [introductory teaching chapter 01 send request]
Binary search tree concept
Proceedingjoinpoint API use
Statistics 8th Edition Jia Junping Chapter 3 after class exercises and answer summary
随机推荐
Statistics 8th Edition Jia Junping Chapter 7 Summary of knowledge points and answers to exercises after class
MySQL中什么是索引?常用的索引有哪些种类?索引在什么情况下会失效?
What is an index in MySQL? What kinds of indexes are commonly used? Under what circumstances will the index fail?
图书管理系统
四元数---基本概念(转载)
Uibutton status exploration and customization
My first blog
Captcha killer verification code identification plug-in
How to test whether an object is a proxy- How to test if an object is a Proxy?
“Hello IC World”
"If life is just like the first sight" -- risc-v
Statistics 8th Edition Jia Junping Chapter 3 after class exercises and answer summary
Statistics, 8th Edition, Jia Junping, Chapter VIII, summary of knowledge points of hypothesis test and answers to exercises after class
[pointer] find the length of the string
High concurrency programming series: 6 steps of JVM performance tuning and detailed explanation of key tuning parameters
Fundamentals of digital circuit (IV) data distributor, data selector and numerical comparator
《统计学》第八版贾俊平第十三章时间序列分析和预测知识点总结及课后习题答案
关于超星脚本出现乱码问题
[pointer] octal to decimal
Résumé des points de connaissance et des réponses aux exercices après la classe du chapitre 7 de Jia junping dans la huitième édition des statistiques