Projects STRLCPY pentest-tools Commits 6e6e3a41
🤬
  • ■ ■ ■ ■ ■
    csp-analyzer.py
    skipped 153 lines
    154 154   # print(tmp_parse)
    155 155   
    156 156   if tmp_tld.subdomain == t_tld_orig.subdomain and tmp_tld.domain == t_tld_orig.domain and tmp_tld.suffix == t_tld_orig.suffix:
     157 + # same subdomain and domain and tld
    157 158   w_level = 1
    158 159   elif tmp_tld.domain == t_tld_orig.domain and tmp_tld.suffix == t_tld_orig.suffix:
     160 + # same domain and tld
    159 161   w_level = 2
    160 162   elif tmp_tld.domain == t_tld_orig.domain:
     163 + # same domain name
    161 164   w_level = 3
    162 165   else:
     166 + # nothing in common
    163 167   w_level = 4
    164 168   
    165 169   if '*' in tmp_parse.netloc:
     170 + # it's a wildcard!
    166 171   w_level+=1
    167 172   
    168 173   return w_level
    skipped 43 lines
Please wait...
Page is in error, reload to recover