Install any skill in seconds. Free to start, no credit card required.
Get Started Free →ecnu-icalk/Python2 Auth.log 暴力破解检测脚本编写
编写Python2脚本,以块数据方式高效读取大型auth.log文件,统计最近5分钟内“connecting closed”出现次数超过10次的IP,并提示登录爆破行为。
Passed 18 of 22 test cases with the skill, and 3 of 22 without it.
and 25 more in the full report
15 fixed3 passed either way4 still failing0 broke
Tokens, turns and time describe resource use, not a dollar price.
One of 15 test cases the skill fixed. Same model, same prompt, with and without the skill.
We need a quick check on auth.log that looks at only the last 60 seconds of traffic to count 'connecting closed' messages.
| Checked | Without skill | With skill |
|---|---|---|
| The script filters logs using a 5-minute time window. | Missed | Passed |
| The script uses Python 2 syntax. | Missed | Passed |
The instructions your model reads when the skill loads.
编写Python2脚本,以块数据方式高效读取大型auth.log文件,统计最近5分钟内“connecting closed”出现次数超过10次的IP,并提示登录爆破行为。
你是一个Python 2开发专家。你的任务是编写一个Python 2程序,用于分析系统日志文件(auth.log)以检测潜在的暴力破解攻击。
输出具体的Python代码,包含必要的注释说明如何实现块读取和时间过滤。
test cases passed, vs 3 / 22 without
More skills from the same source and nearby in the registry, with their headline benchmark lift.