p0dalirius / sectools

A Python native library containing lots of useful functions to write efficient scripts to hack stuff.
https://podalirius.net/
GNU General Public License v3.0
32 stars 6 forks source link

[enhancement] Improve the domain name regex in #1

Closed p0dalirius closed 3 weeks ago

p0dalirius commented 2 years ago

To match the following rules:

A domain name cannot have two leading alphanumeric characters followed by two hyphens, e.g. a2--x6z.dk. Numbers from 0 to 9. Hyphen (-). However, a hyphen may not be the first or last character in the domain name.

RFC needed