4886专题

HDU 4886 TIANKENG’s restaurant(Ⅱ) (暴力+Hash)

HDU TIANKENG’s restaurant(Ⅱ) 题目链接 题意:给定一字符串,要求找出字典序最小,并且不在该字符串连续字串中出现的字符串 思路:暴力hash所有字串,然后暴力枚举即可 代码: #include <cstdio>#include <cstring>const int N = 2100005;int t, mi[10];bool hash[N];

CVE-2022-4886 ingress命令注入复现与分析

安装 安装ingress-nginx wget https://raw.githubusercontent.com/kubernetes/ingress-nginx/controller-v1.8.4/deploy/static/provider/cloud/deploy.yamlk apply -f deploy.yaml 原理 nginx.ingress.kubernetes.io/r