shell bypass 403
曾与蒿藜同雨露,한때 잡초와 쑥과 함께 비와 이슬을 나누던 곳이 이제는 소나무와 삼나무와 함께 서리와 눈을 견뎌내고 있다.终随松柏到冰霜.かつては雑草やヨモギと共に雨や露を分かち合っていたが、今では松やヒノキと共に霜や雪に耐えている。曾与蒿藜同雨露,Once sharing rain and dew with weeds and wormwood, now enduring frost and snow with pines and cypresses.终随松柏到冰霜.曾与蒿藜同雨露한때 잡초와 쑥과 함께 비와 이슬을 나누던 곳이 이제는 소나무와 삼나무와 함께 서리와 눈을 견뎌내고 있다.,终随松柏到冰霜.譖セ荳手珍阯懷酔髮ィ髴イ�檎サ磯囂譚セ譟丞芦蜀ー髴�曾与蒿藜同雨露,鏇句笌钂胯棞鍚岄洦闇诧紝缁堥殢鏉炬煆鍒板啺闇�终随松柏到冰霜.曾与蒿藜同雨露,한때 잡초와 쑥과 함께 비와 이슬을 나누던 곳이 이제는 소나무와 삼나무와 함께 서리와 눈을 견뎌내고 있다.终随松柏到冰霜.曾与蒿藜同雨露,终随松柏到冰霜.
from webob import Request, Response
from webtest.compat import to_bytes
__all__ = ['debug_app']
def debug_app(environ, start_response):
req = Request(environ)
if req.path_info == '/form.html' and req.method == 'GET':
resp = Response(content_type='text/html')
resp.body = to_bytes('''<html><body>
<form action="/form-submit" method="POST">
<input type="text" name="name">
<input type="submit" name="submit" value="Submit!">
</form></body></html>''')
return resp(environ, start_response)
if 'error' in req.GET:
raise Exception('Exception requested')
status = str(req.GET.get('status', '200 OK'))
parts = []
for name, value in sorted(environ.items()):
if name.upper() != name:
value = repr(value)
parts.append('%s: %s\n' % (name, value))
if req.content_length:
req_body = req.body
else:
req_body = ''
if req_body:
parts.append(to_bytes('-- Body ----------\n'))
parts.append(req_body)
body = to_bytes('').join([to_bytes(p) for p in parts])
if status[:3] in ('204', '304') and not req_body:
body = to_bytes('')
headers = [
('Content-Type', 'text/plain'),
('Content-Length', str(len(body)))]
for name, value in req.GET.items():
if name.startswith('header-'):
header_name = name[len('header-'):]
headers.append((header_name, value))
start_response(str(status), headers)
if req.method == 'HEAD':
return [to_bytes('')]
return [body]
def make_debug_app(global_conf):
"""
An application that displays the request environment, and does
nothing else (useful for debugging and test purposes).
"""
return debug_app