[LitCTF 2023]Virginia(变异凯撒)

题目:

首先利用网站进行维吉尼亚解密(第一段和第二段密钥不同,两段无关,可只解密第二段)

第二段解密结果:

Please send this message to those people who mean something to you,to those who have touched your life in one way or another,to those who make you smile when you really need it,to those that make you see the brighter side of things when you are really down,to those who you want to let them know that you appreciate their friendship.And if you don’t, don’t worry,nothing bad will happen to you,you will just miss out on the opportunity to brighten someone’s day with this message.My password is not a regular Caesar password,and the enc flag=[86, 116, 128, 80, 98, 85, 139, 122, 134, 114, 125, 136, 117, 123, 129, 127, 128, 128, 142, 130, 140, 147, 127, 132, 131, 136, 151, 134, 152, 164] -Caesar

由最后一句话知道不是常规的凯撒加密,联想到变异凯撒。

比赛是litctf故开头应该是litctf{...}

解码的第一个是86而L对应的是76,退了10

第二个是116而i对应的是105,退了11

第三是128而t对应的是116,退了12

由此可以看出每一个以为都递增的移动,所以可以写个小脚本解码出来

EXP :

from Cryptodome.Util.number import *
import gmpy2
a=[86, 116, 128, 80, 98, 85, 139, 122, 134, 114, 125, 136, 117, 123, 129, 127, 128, 128, 142, 130, 140, 147, 127, 132, 131, 136, 151, 134, 152, 164]
b=''
for i in range(30):
    b+=chr(a[i]-10-i)
print(b)

相关推荐

  1. c++ 密码

    2024-06-12 12:50:03       39 阅读
  2. C# 实现 密码

    2024-06-12 12:50:03       44 阅读
  3. P1914 小书童——密码

    2024-06-12 12:50:03       47 阅读

最近更新

  1. docker php8.1+nginx base 镜像 dockerfile 配置

    2024-06-12 12:50:03       94 阅读
  2. Could not load dynamic library ‘cudart64_100.dll‘

    2024-06-12 12:50:03       101 阅读
  3. 在Django里面运行非项目文件

    2024-06-12 12:50:03       82 阅读
  4. Python语言-面向对象

    2024-06-12 12:50:03       91 阅读

热门阅读

  1. git使用http协议时免密pull和push方法

    2024-06-12 12:50:03       27 阅读
  2. nginx的rewrite功能介绍

    2024-06-12 12:50:03       31 阅读
  3. Elasticsearch6.7版本,内网中其他电脑无法连接

    2024-06-12 12:50:03       24 阅读
  4. Elasticsearch分析器与分词器:定制文本处理流程

    2024-06-12 12:50:03       30 阅读
  5. Web前端网页设计笔试:深入剖析与技巧攻略

    2024-06-12 12:50:03       31 阅读
  6. 匿名函数、lambda匿名函数 ( Everything is up to us!)

    2024-06-12 12:50:03       28 阅读
  7. 创建数据库用户

    2024-06-12 12:50:03       31 阅读
  8. mkdir命令和mkdirs命令

    2024-06-12 12:50:03       29 阅读
  9. 新字符设备驱动实验学习

    2024-06-12 12:50:03       28 阅读
  10. ubuntu 永久 磁盘挂载

    2024-06-12 12:50:03       32 阅读
  11. nginx配置

    2024-06-12 12:50:03       29 阅读