shell bypass 403
曾与蒿藜同雨露,한때 잡초와 쑥과 함께 비와 이슬을 나누던 곳이 이제는 소나무와 삼나무와 함께 서리와 눈을 견뎌내고 있다.终随松柏到冰霜.かつては雑草やヨモギと共に雨や露を分かち合っていたが、今では松やヒノキと共に霜や雪に耐えている。曾与蒿藜同雨露,Once sharing rain and dew with weeds and wormwood, now enduring frost and snow with pines and cypresses.终随松柏到冰霜.曾与蒿藜同雨露한때 잡초와 쑥과 함께 비와 이슬을 나누던 곳이 이제는 소나무와 삼나무와 함께 서리와 눈을 견뎌내고 있다.,终随松柏到冰霜.譖セ荳手珍阯懷酔髮ィ髴イ�檎サ磯囂譚セ譟丞芦蜀ー髴�曾与蒿藜同雨露,鏇句笌钂胯棞鍚岄洦闇诧紝缁堥殢鏉炬煆鍒板啺闇�终随松柏到冰霜.曾与蒿藜同雨露,한때 잡초와 쑥과 함께 비와 이슬을 나누던 곳이 이제는 소나무와 삼나무와 함께 서리와 눈을 견뎌내고 있다.终随松柏到冰霜.曾与蒿藜同雨露,终随松柏到冰霜.
# -*- coding: utf-8 -*-
from .base import BaseMatcher
from betamax.util import from_list
class DigestAuthMatcher(BaseMatcher):
"""This matcher is provided to help those who need to use Digest Auth.
.. note::
The code requests 2.0.1 uses to generate this header is different from
the code that every requests version after it uses. Specifically, in
2.0.1 one of the parameters is ``qop=auth`` and every other version is
``qop="auth"``. Given that there's also an unsupported type of ``qop``
in requests, I've chosen not to ignore ore sanitize this. All
cassettes recorded on 2.0.1 will need to be re-recorded for any
requests version after it.
This matcher also ignores the ``cnonce`` and ``response`` parameters.
These parameters require the system time to be monkey-patched and
that is out of the scope of betamax
"""
name = 'digest-auth'
def match(self, request, recorded_request):
request_digest = self.digest_parts(request.headers)
recorded_digest = self.digest_parts(recorded_request['headers'])
return request_digest == recorded_digest
def digest_parts(self, headers):
auth = headers.get('Authorization') or headers.get('authorization')
if not auth:
return None
auth = from_list(auth).strip('Digest ')
# cnonce and response will be based on the system time, which I will
# not monkey-patch.
excludes = ('cnonce', 'response')
return [p for p in auth.split(', ') if not p.startswith(excludes)]