博客
关于我
【bugku】web19 速度要快!
阅读量:736 次
发布时间:2019-03-22

本文共 439 字,大约阅读时间需要 1 分钟。

进去题目后,只显示“跑得不错,给你flag吧: OTAyMjky”。提示中发现flag字段,看起来像是Base64加密,试着解密。

刷新几遍,发现flag会变化。尝试将flag提交到页面,键为margin,但没有结果。尝试提交英文flag,看起来像是Base64,加密后得到一串数字。

重新解密英文flag:将flag转换为字节对象,再进行Base64解密,最终得到一串数字,提交后得到flag。这时意识到,原来的数字需要用特定的编码方式才能正确解密。

查看脚本发现,默认Base64编码和解码需要处理encode()decode()。将flag转换为字节,解密后删除空格,得到了正确的解密结果。

提交正确的解密结果,验证了答案。

知识点:

  • Base64编码与解码需要将字符串转换为字节类型,使用encode()decode()
  • 缺少正确的编码方式会导致解密失败。
  • Str类型的变量需要使用encode()转换为字节类型,解密后用decode()转回字符串型。

最终答案:

转载地址:http://bpbwk.baihongyu.com/

你可能感兴趣的文章
npm install 卡着不动的解决方法
查看>>
npm install 报错 EEXIST File exists 的解决方法
查看>>
npm install 报错 ERR_SOCKET_TIMEOUT 的解决方法
查看>>
npm install 报错 fatal: unable to connect to github.com 的解决方法
查看>>
npm install 报错 no such file or directory 的解决方法
查看>>
npm install报错,证书验证失败unable to get local issuer certificate
查看>>
npm install无法生成node_modules的解决方法
查看>>
npm install的--save和--save-dev使用说明
查看>>
npm node pm2相关问题
查看>>
npm run build 失败Compiler server unexpectedly exited with code: null and signal: SIGBUS
查看>>
npm run build报Cannot find module错误的解决方法
查看>>
npm run build部署到云服务器中的Nginx(图文配置)
查看>>
npm run dev 报错PS ‘vite‘ 不是内部或外部命令,也不是可运行的程序或批处理文件。
查看>>
npm scripts 使用指南
查看>>
npm should be run outside of the node repl, in your normal shell
查看>>
npm start运行了什么
查看>>
npm WARN deprecated core-js@2.6.12 core-js@<3.3 is no longer maintained and not recommended for usa
查看>>
npm 下载依赖慢的解决方案(亲测有效)
查看>>
npm 安装依赖过程中报错:Error: Can‘t find Python executable “python“, you can set the PYTHON env variable
查看>>
npm.taobao.org 淘宝 npm 镜像证书过期?这样解决!
查看>>