CTFNote icon indicating copy to clipboard operation
CTFNote copied to clipboard

Feature request: category aliases

Open ZetaTwo opened this issue 3 years ago • 3 comments

When we recently used CTFNote, for some reason we ended up with having the same category spelled in different ways. This was probably some user error but it would be nice if some of the standard categories had aliases that mapped to each other, for example:

  • pwn, pwnable, binary exploitation
  • crypto, cryptography
  • rev, reversing, reverse engineering
  • for, forensics

so, if you accidentally input a challenge as "pwnable" it will automatically be mapped to "pwn". Of course there might be other categories so the category name would still be free text but these few aliases would cover the vast majority of cases.

ZetaTwo avatar Mar 27 '21 22:03 ZetaTwo

A solution could be to add autocompletion and validation to the category field like this. In createValue you can add some mapping from and to common category names.

JJ-8 avatar Oct 25 '21 17:10 JJ-8

I think we should fix this bug and #90 a the same time, and switch from task category to task "tags". Auto completion is nice for task creation. but it doesn't solve the problem when importing tasks

B-i-t-K avatar Oct 26 '21 09:10 B-i-t-K

@B-i-t-K, I did an attempt on solving #90 in my branch https://github.com/JJ-8/CTFNote/tree/0-tags. However, I haven't tackled this problem yet since I am unsure if this static map should be implemented in the database or frontend and how this functionality is communicated to the user (if you type 'pwn' and get 'binary exploitation', that would be a bit confusing). Any toughs?

JJ-8 avatar May 07 '23 18:05 JJ-8