#66 Attack recognition improvement

已合并
carlos.garcia 7 年之前 将 3 次代码提交从 stefan.schmidt/attack_recognition合并至 SPIN/master

This improves the recognition as to what attack the user wants to run when specifying the -a parameter. It is now case insensitive and allows to omit the generic endings like 'attack' or exploit'. Thus it is now for example possible to run the EternalBlueExploit by just setting -a eternalblue or running a DDoSAttack using -a ddos. This does not change any behavior regarding parameters or execution of multiple attacks.

Also introduced is better error feedback, meaning that when making a typo, ID2T now recommends the most likely attack that was initially meant and a hint to use the -l parameter for an overview of all attacks. When no sufficiently matching attack name was found it just prompts the user to use the -l parameter.

This should all be future proof as well, since it runs the user input against a dynamically created list of available attacks like the aforementioned attack overview already does.

This improves the recognition as to what attack the user wants to run when specifying the -a parameter. It is now case insensitive and allows to omit the generic endings like 'attack' or exploit'. Thus it is now for example possible to run the EternalBlueExploit by just setting -a eternalblue or running a DDoSAttack using -a ddos. This does not change any behavior regarding parameters or execution of multiple attacks. Also introduced is better error feedback, meaning that when making a typo, ID2T now recommends the most likely attack that was initially meant and a hint to use the -l parameter for an overview of all attacks. When no sufficiently matching attack name was found it just prompts the user to use the -l parameter. This should all be future proof as well, since it runs the user input against a dynamically created list of available attacks like the aforementioned attack overview already does.
Carlos Garcia 评论于 7 年之前
所有者

The changes look great. Good idea implementing keyword recommendations for unrecognized attacks.

The changes look great. Good idea implementing keyword recommendations for unrecognized attacks.
该合并请求已经成功合并!
登录 并参与到对话中。
未选择标签
Bug
未选择里程碑
未指派成员
2 名参与者
正在加载...
取消
保存
这个人很懒,什么都没留下。