punyCommaSplit

This tag creates an email address where the domain portion is split using a malformed Punycode label that some buggy IDN libraries interpret as a comma (xn--0049).

Created by: hackvertor
Installed 1 times

Viewed: 4

Category: Email

Created on: Wednesday, September 10, 2025 at 8:56:40 PM

Updated on: Wednesday, September 10, 2025 at 8:57:01 PM

This is a built in tag
Tag arguments
[
   {
      "type": "string",
      "help": "Left domain",
      "defaultValue": "example.com"
   },
   {
      "type": "string",
      "help": "Right domain",
      "defaultValue": "oastify.com"
   }
]
Code
class punyCommaSplit {
  encode(input, leftDomain, rightDomain) {
    const local = (input || "collab").split("@")[0];
    leftDomain = leftDomain || "example.com";
    rightDomain = rightDomain || "oastify.com";
    return local + "@" + leftDomain + ".xn--0049." + rightDomain;
  }
}