Exploit databaseDownload repository ZIP
GH-a398512ab3c46db40115255f0791592c
andrea-mattioli/apache-exploit-cve-2021-42013
Sources for CVE-2021-42013
50 sourcesPreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source
Repository files41
andrea-mattioli/apache-exploit-cve-2021-42013Revision a0385d63dffa
- ↑..Parent directory
- __pycache__/
- cli/
- __init__.py
- big5freq.py
- big5prober.py
- chardistribution.py
- charsetgroupprober.py
- charsetprober.py
- codingstatemachine.py
- compat.py
- cp949prober.py
- enums.py
- escprober.py
- escsm.py
- eucjpprober.py
- euckrfreq.py
- euckrprober.py
- euctwfreq.py
- euctwprober.py
- gb2312freq.py
- gb2312prober.py
- hebrewprober.py
- jisfreq.py
- jpcntx.py
- langbulgarianmodel.py
- langcyrillicmodel.py
- langgreekmodel.py
- langhebrewmodel.py
- langhungarianmodel.py
- langthaimodel.py
- langturkishmodel.py
- latin1prober.py
- mbcharsetprober.py
- mbcsgroupprober.py
- mbcssm.py
- sbcharsetprober.py
- sbcsgroupprober.py
- sjisprober.py
- universaldetector.py
- utf8prober.py
- version.py
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
lib/python3.8/site-packages/chardet/euctwprober.py
Python · 1,747 bytes######################## BEGIN LICENSE BLOCK ########################
# The Original Code is mozilla.org code.
#
# The Initial Developer of the Original Code is
# Netscape Communications Corporation.
# Portions created by the Initial Developer are Copyright (C) 1998
# the Initial Developer. All Rights Reserved.
#
# Contributor(s):
# Mark Pilgrim - port to Python
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
# version 2.1 of the License, or (at your option) any later version.
#
# This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public
# License along with this library; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
# 02110-1301 USA
######################### END LICENSE BLOCK #########################
from .mbcharsetprober import MultiByteCharSetProber
from .codingstatemachine import CodingStateMachine
from .chardistribution import EUCTWDistributionAnalysis
from .mbcssm import EUCTW_SM_MODEL
class EUCTWProber(MultiByteCharSetProber):
def __init__(self):
super(EUCTWProber, self).__init__()
self.coding_sm = CodingStateMachine(EUCTW_SM_MODEL)
self.distribution_analyzer = EUCTWDistributionAnalysis()
self.reset()
@property
def charset_name(self):
return "EUC-TW"
@property
def language(self):
return "Taiwan"