[SWPUCTF 2021 新生赛]非常简单的逻辑题
[SWPUCTF 2021 新生赛]非常简单的逻辑题这道题拿到附件是一个python的程序,
flag = ‘xxxxxxxxxxxxxxxxxxxxx’
s = ‘wesyvbniazxchjko1973652048@$+-&*<>’
result = ‘’
for i in range(len(flag)):
s1 = ord(flag[i])//17
s2 = ord(flag[i])%17
result += s[(s1+i)%34]+s[-(s2+i+1)%34]
print(result)
# result = ‘v0b9n1nkajz@j0c4jjo3oi1h1i937b395i5y5e0e$i’
扔给ai之后,
核心原理(看懂加密→解密)1. 加密逻辑(原题代码)每次从 flag 取1 个字符,拆成两个值:
s1 = 字符ASCII码 // 17
s2 = 字符ASCII码 % 17
再从字符表 s 中 ...
Hello World
Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in troubleshooting or you can ask me on GitHub.
Quick StartCreate a new post1$ hexo new "My New Post"
More info: Writing
Run server1$ hexo server
More info: Server
Generate static files1$ hexo generate
More info: Generating
Deploy to remote sites1$ hexo deploy
More info: Deployment
![[SWPUCTF 2021 新生赛]非常简单的逻辑题](/img/wuxianjinbu.jpg)
