encodedWordMeta

This tag creates the meta data required for encoded word in email parsing attacks. You can read more about it here: https://portswigger.net/research/splitting-the-email-atom

Created by: hackvertor
Installed 3 times

Category: Convert

Created on: Tuesday, September 17, 2024 at 12:06:07 PM

Updated on: Monday, September 23, 2024 at 9:31:49 AM

This is a built in tag

Tag arguments
[
   {
      "type": "string",
      "help": "Provides a charset",
      "defaultValue": "iso-8859-1"
   },
   {
      "type": "quotelessString",
      "help": "Provides a encoding type: q or b is supported",
      "defaultValue": "q"
   }
]
Code
class encodedWordMeta {
  encode(input, charset, type) {
     return `=?${charset}?${type}?${input}?=`;
  }
}