peda icon indicating copy to clipboard operation
peda copied to clipboard

Why s and n are removed in extended charset_type ?

Open thiago-figueredo opened this issue 1 year ago • 0 comments

In cyclic_pattern_charset function, the s and n are removed in charset[1] and added in charset[2]. Why this happen ?

charset = []
charset += ["ABCDEFGHIJKLMNOPQRSTUVWXYZ"] # string.uppercase
charset += ["abcdefghijklmnopqrstuvwxyz"] # string.lowercase
charset += ["0123456789"] # string.digits

if not charset_type:
    charset_type = config.Option.get("pattern")
if charset_type == 1: # extended type
    charset[1] = "%$-;" + re.sub("[sn]", "", charset[1])
    charset[2] = "sn()" + charset[2]

thiago-figueredo avatar Jan 20 '24 00:01 thiago-figueredo