Projects STRLCPY maigret Commits 2741680d
🤬
  • Fixed bug with ignore403 for engine-based sites

  • Loading...
  • Soxoj committed 4 years ago
    2741680d
    1 parent e5fc221c
Revision indexing in progress... (symbol navigation in revisions will be accurate after indexed)
  • ■ ■ ■ ■
    maigret/checking.py
    skipped 265 lines
    266 266   
    267 267   if status_code and not error_text:
    268 268   error_text, site_error_text = detect_error_page(html_text, status_code, failure_errors,
    269  - site.ignore_403)
     269 + site.ignore403)
    270 270   
    271 271   if site.activation and html_text:
    272 272   is_need_activation = any([s for s in site.activation['marks'] if s in html_text])
    skipped 444 lines
  • ■ ■ ■ ■ ■ ■
    maigret/resources/data.json
    skipped 1566 lines
    1567 1567   },
    1568 1568   "XSS.is": {
    1569 1569   "tags": [
    1570  - "in",
     1570 + "hacking",
    1571 1571   "ru"
    1572 1572   ],
    1573  - "activation": {
    1574  - "method": "xssis",
    1575  - "marks": [
    1576  - "errorHtml"
    1577  - ],
    1578  - "url": "https://xss.is/login/keep-alive",
    1579  - "src": "csrf",
    1580  - "dst": "x-guest-token"
    1581  - },
    1582  - "checkType": "status_code",
    1583  - "getParams": {
    1584  - "_xfToken": "1611179947,a2710362e45dad9aa1da381e21941a38"
    1585  - },
     1573 + "engine": "XenForo",
    1586 1574   "alexaRank": 165220,
    1587  - "url": "https://xss.is/index.php?members/find&q={username}&_xfRequestUri=%2Fmembers%2F%3Fkey%3Dmost_messages&_xfWithData=1&_xfResponseType=json",
     1575 + "ignore403": true,
    1588 1576   "urlMain": "https://xss.is",
    1589 1577   "usernameClaimed": "adam",
    1590 1578   "usernameUnclaimed": "noonewouldeverusethis7"
    skipped 10538 lines
    12129 12117   "us"
    12130 12118   ],
    12131 12119   "headers": {
    12132  - "authorization": "Bearer BQCyNy7oN-nOZ-rNK_jL0R4GHS7f3uWdK8AdxZ9m-pg9dbm7t-mLNaaHCG2BpDeV4AekGfl4AscbXLMqeB4"
     12120 + "authorization": "Bearer BQAhjPM0jv30LtMfeJXLPMYFBmAKG4RGzVUncYmOS9ufDGyNie5scjyVt8ujXA2bayqRX4f690lZUz0Kx9w"
    12133 12121   },
    12134 12122   "errors": {
    12135 12123   "Spotify is currently not available in your country.": "Access denied in your country, use proxy/vpn"
    skipped 1295 lines
    13431 13419   "sec-ch-ua": "Google Chrome\";v=\"87\", \" Not;A Brand\";v=\"99\", \"Chromium\";v=\"87\"",
    13432 13420   "authorization": "Bearer AAAAAAAAAAAAAAAAAAAAANRILgAAAAAAnNwIzUejRCOuH5E6I8xnZz4puTs%3D1Zv7ttfk8LF81IUq16cHjhLTvJu4FA33AGWWjCpTnA",
    13433 13421   "user-agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.88 Safari/537.36",
    13434  - "x-guest-token": "1373570939997335554"
     13422 + "x-guest-token": "1376173136807403521"
    13435 13423   },
    13436 13424   "errors": {
    13437 13425   "Bad guest token": "x-guest-token update required"
    skipped 370 lines
    13808 13796   "video"
    13809 13797   ],
    13810 13798   "headers": {
    13811  - "Authorization": "jwt eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJleHAiOjE2MTYzMjE3MDAsInVzZXJfaWQiOm51bGwsImFwcF9pZCI6NTg0NzksInNjb3BlcyI6InB1YmxpYyIsInRlYW1fdXNlcl9pZCI6bnVsbH0.yS9-vO94E_Ad_e2krnmOoqXWcaLxhZSrRvjUVHkgIPk"
     13799 + "Authorization": "jwt eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJleHAiOjE2MTY5NDExNDAsInVzZXJfaWQiOm51bGwsImFwcF9pZCI6NTg0NzksInNjb3BlcyI6InB1YmxpYyIsInRlYW1fdXNlcl9pZCI6bnVsbH0.ArAL1V2XErUD3C2FnZSmcj96Nc2sfG6WHbUw_AtrSqA"
    13812 13800   },
    13813 13801   "activation": {
    13814 13802   "url": "https://vimeo.com/_rv/viewer",
    skipped 9828 lines
  • ■ ■ ■ ■
    maigret/sites.py
    skipped 45 lines
    46 46   
    47 47   self.disabled = False
    48 48   self.similar_search = False
    49  - self.ignore_403 = False
     49 + self.ignore403 = False
    50 50   self.tags = []
    51 51   
    52 52   self.type = 'username'
    skipped 325 lines
  • ■ ■ ■ ■ ■ ■
    tests/test_utils.py
    skipped 25 lines
    26 26   assert b == 'Camel cased string'
    27 27   
    28 28   
     29 +def test_case_convert_camel_with_digits_to_snake():
     30 + a = 'ignore403'
     31 + b = CaseConverter.camel_to_snake(a)
     32 + 
     33 + assert b == 'ignore403'
     34 + 
     35 + 
    29 36  def test_is_country_tag():
    30 37   assert is_country_tag('ru') == True
    31 38   assert is_country_tag('FR') == True
    skipped 62 lines
Please wait...
Page is in error, reload to recover