shell bypass 403
l
��bc @ s� d Z d d l Z d d g Z d � Z d � Z d � Z d � Z d � Z d
d g d � Z d d
� Z
g d � Z d � Z d � Z
d � Z e d k r� e
� n d S( u% Mailcap file handling. See RFC 1524.i Nu getcapsu findmatchc
C s� i } x� t � D]� } y t | d � } Wn t k
r@ w Yn Xt | � } | j � xE | j � D]7 \ } } | | k r� | | | <qd | | | | | <qd Wq W| S( u� Return a dictionary containing the mailcap database.
The dictionary maps a MIME type (in all lowercase, e.g. 'text/plain')
to a list of dictionaries corresponding to mailcap entries. The list
collects all the entries for that MIME type from all available mailcap
files. Each dictionary contains key-value pairs for that MIME type,
where the viewing command is stored with the key "view".
u r( u listmailcapfilesu openu IOErroru readmailcapfileu closeu items( u capsu mailcapu fpu morecapsu keyu value( ( u. /usr/local/python-3.2/lib/python3.2/mailcap.pyu getcaps s
c C sm d t j k r. t j d } | j d � } n; d t j k rM t j d } n d } | d d d d g } | S( u7 Return a list of all mailcap files found on the system.u MAILCAPSu :u HOMEu .u /.mailcapu /etc/mailcapu /usr/etc/mailcapu /usr/local/etc/mailcap( u osu environu split( u stru mailcapsu home( ( u. /usr/local/python-3.2/lib/python3.2/mailcap.pyu listmailcapfiles"