18 | pyparsing.pyparsing
20 |
21 |
30 |
31 |
32 |
--------------------------------------------------------------------------------
/thirdparty/Pocsuite/pocsuite/thirdparty/pyparsing/pyparsingClassDiagram.JPG:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ibey0nd/NSTScan-cli/faa03e0bad5467878be8ecc80326afc02711e703/thirdparty/Pocsuite/pocsuite/thirdparty/pyparsing/pyparsingClassDiagram.JPG
--------------------------------------------------------------------------------
/thirdparty/Pocsuite/pocsuite/thirdparty/pyparsing/pyparsingClassDiagram.PNG:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ibey0nd/NSTScan-cli/faa03e0bad5467878be8ecc80326afc02711e703/thirdparty/Pocsuite/pocsuite/thirdparty/pyparsing/pyparsingClassDiagram.PNG
--------------------------------------------------------------------------------
/thirdparty/Pocsuite/pocsuite/thirdparty/pyparsing/robots.txt:
--------------------------------------------------------------------------------
1 | User-agent: *
2 | Disallow: /htmldoc
3 |
--------------------------------------------------------------------------------
/thirdparty/Pocsuite/pocsuite/thirdparty/pyparsing/setup.py:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env python
2 |
3 | """Setup script for the pyparsing module distribution."""
4 | from distutils.core import setup
5 |
6 | import sys
7 | import os
8 |
9 | from pyparsing import __version__ as pyparsing_version
10 |
11 | modules = ["pyparsing",]
12 |
13 | setup(# Distribution meta-data
14 | name = "pyparsing",
15 | version = pyparsing_version,
16 | description = "Python parsing module",
17 | author = "Paul McGuire",
18 | author_email = "ptmcg@users.sourceforge.net",
19 | url = "http://pyparsing.wikispaces.com/",
20 | download_url = "http://sourceforge.net/project/showfiles.php?group_id=97203",
21 | license = "MIT License",
22 | py_modules = modules,
23 | classifiers=[
24 | 'Development Status :: 5 - Production/Stable',
25 | 'Intended Audience :: Developers',
26 | 'Intended Audience :: Information Technology',
27 | 'License :: OSI Approved :: MIT License',
28 | 'Operating System :: OS Independent',
29 | 'Programming Language :: Python',
30 | 'Programming Language :: Python :: 2.6',
31 | 'Programming Language :: Python :: 2.7',
32 | 'Programming Language :: Python :: 3',
33 | 'Programming Language :: Python :: 3.0',
34 | 'Programming Language :: Python :: 3.1',
35 | 'Programming Language :: Python :: 3.2',
36 | 'Programming Language :: Python :: 3.3',
37 | ]
38 | )
39 |
--------------------------------------------------------------------------------
/thirdparty/Pocsuite/pocsuite/thirdparty/requests/__init__.py:
--------------------------------------------------------------------------------
1 | # -*- coding: utf-8 -*-
2 |
3 | # __
4 | # /__) _ _ _ _ _/ _
5 | # / ( (- (/ (/ (- _) / _)
6 | # /
7 |
8 | """
9 | requests HTTP library
10 | ~~~~~~~~~~~~~~~~~~~~~
11 |
12 | Requests is an HTTP library, written in Python, for human beings. Basic GET
13 | usage:
14 |
15 | >>> import requests
16 | >>> r = requests.get('https://www.python.org')
17 | >>> r.status_code
18 | 200
19 | >>> 'Python is a programming language' in r.content
20 | True
21 |
22 | ... or POST:
23 |
24 | >>> payload = dict(key1='value1', key2='value2')
25 | >>> r = requests.post('http://httpbin.org/post', data=payload)
26 | >>> print(r.text)
27 | {
28 | ...
29 | "form": {
30 | "key2": "value2",
31 | "key1": "value1"
32 | },
33 | ...
34 | }
35 |
36 | The other HTTP methods are supported - see `requests.api`. Full documentation
37 | is at .
38 |
39 | :copyright: (c) 2015 by Kenneth Reitz.
40 | :license: Apache 2.0, see LICENSE for more details.
41 |
42 | """
43 |
44 | __title__ = 'requests'
45 | __version__ = '2.7.0'
46 | __build__ = 0x020700
47 | __author__ = 'Kenneth Reitz'
48 | __license__ = 'Apache 2.0'
49 | __copyright__ = 'Copyright 2015 Kenneth Reitz'
50 |
51 | # Attempt to enable urllib3's SNI support, if possible
52 | try:
53 | from .packages.urllib3.contrib import pyopenssl
54 | pyopenssl.inject_into_urllib3()
55 | except ImportError:
56 | pass
57 |
58 | from . import utils
59 | from .models import Request, Response, PreparedRequest
60 | from .api import request, get, head, post, patch, put, delete, options
61 | from .sessions import session, Session
62 | from .status_codes import codes
63 | from .exceptions import (
64 | RequestException, Timeout, URLRequired,
65 | TooManyRedirects, HTTPError, ConnectionError
66 | )
67 |
68 | # Set default logging handler to avoid "No handler found" warnings.
69 | import logging
70 | try: # Python 2.7+
71 | from logging import NullHandler
72 | except ImportError:
73 | class NullHandler(logging.Handler):
74 | def emit(self, record):
75 | pass
76 |
77 | logging.getLogger(__name__).addHandler(NullHandler())
78 |
--------------------------------------------------------------------------------
/thirdparty/Pocsuite/pocsuite/thirdparty/requests/__init__.pyc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ibey0nd/NSTScan-cli/faa03e0bad5467878be8ecc80326afc02711e703/thirdparty/Pocsuite/pocsuite/thirdparty/requests/__init__.pyc
--------------------------------------------------------------------------------
/thirdparty/Pocsuite/pocsuite/thirdparty/requests/adapters.pyc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ibey0nd/NSTScan-cli/faa03e0bad5467878be8ecc80326afc02711e703/thirdparty/Pocsuite/pocsuite/thirdparty/requests/adapters.pyc
--------------------------------------------------------------------------------
/thirdparty/Pocsuite/pocsuite/thirdparty/requests/api.pyc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ibey0nd/NSTScan-cli/faa03e0bad5467878be8ecc80326afc02711e703/thirdparty/Pocsuite/pocsuite/thirdparty/requests/api.pyc
--------------------------------------------------------------------------------
/thirdparty/Pocsuite/pocsuite/thirdparty/requests/auth.pyc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ibey0nd/NSTScan-cli/faa03e0bad5467878be8ecc80326afc02711e703/thirdparty/Pocsuite/pocsuite/thirdparty/requests/auth.pyc
--------------------------------------------------------------------------------
/thirdparty/Pocsuite/pocsuite/thirdparty/requests/certs.py:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env python
2 | # -*- coding: utf-8 -*-
3 |
4 | """
5 | certs.py
6 | ~~~~~~~~
7 |
8 | This module returns the preferred default CA certificate bundle.
9 |
10 | If you are packaging Requests, e.g., for a Linux distribution or a managed
11 | environment, you can change the definition of where() to return a separately
12 | packaged CA bundle.
13 | """
14 | import os.path
15 |
16 | try:
17 | from certifi import where
18 | except ImportError:
19 | def where():
20 | """Return the preferred certificate bundle."""
21 | # vendored bundle inside Requests
22 | return os.path.join(os.path.dirname(__file__), 'cacert.pem')
23 |
24 | if __name__ == '__main__':
25 | print(where())
26 |
--------------------------------------------------------------------------------
/thirdparty/Pocsuite/pocsuite/thirdparty/requests/certs.pyc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ibey0nd/NSTScan-cli/faa03e0bad5467878be8ecc80326afc02711e703/thirdparty/Pocsuite/pocsuite/thirdparty/requests/certs.pyc
--------------------------------------------------------------------------------
/thirdparty/Pocsuite/pocsuite/thirdparty/requests/compat.py:
--------------------------------------------------------------------------------
1 | # -*- coding: utf-8 -*-
2 |
3 | """
4 | pythoncompat
5 | """
6 |
7 | from .packages import chardet
8 |
9 | import sys
10 |
11 | # -------
12 | # Pythons
13 | # -------
14 |
15 | # Syntax sugar.
16 | _ver = sys.version_info
17 |
18 | #: Python 2.x?
19 | is_py2 = (_ver[0] == 2)
20 |
21 | #: Python 3.x?
22 | is_py3 = (_ver[0] == 3)
23 |
24 | try:
25 | import simplejson as json
26 | except (ImportError, SyntaxError):
27 | # simplejson does not support Python 3.2, it throws a SyntaxError
28 | # because of u'...' Unicode literals.
29 | import json
30 |
31 | # ---------
32 | # Specifics
33 | # ---------
34 |
35 | if is_py2:
36 | from urllib import quote, unquote, quote_plus, unquote_plus, urlencode, getproxies, proxy_bypass
37 | from urlparse import urlparse, urlunparse, urljoin, urlsplit, urldefrag
38 | from urllib2 import parse_http_list
39 | import cookielib
40 | from Cookie import Morsel
41 | from StringIO import StringIO
42 | from .packages.urllib3.packages.ordered_dict import OrderedDict
43 |
44 | builtin_str = str
45 | bytes = str
46 | str = unicode
47 | basestring = basestring
48 | numeric_types = (int, long, float)
49 |
50 | elif is_py3:
51 | from urllib.parse import urlparse, urlunparse, urljoin, urlsplit, urlencode, quote, unquote, quote_plus, unquote_plus, urldefrag
52 | from urllib.request import parse_http_list, getproxies, proxy_bypass
53 | from http import cookiejar as cookielib
54 | from http.cookies import Morsel
55 | from io import StringIO
56 | from collections import OrderedDict
57 |
58 | builtin_str = str
59 | str = str
60 | bytes = bytes
61 | basestring = (str, bytes)
62 | numeric_types = (int, float)
63 |
--------------------------------------------------------------------------------
/thirdparty/Pocsuite/pocsuite/thirdparty/requests/compat.pyc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ibey0nd/NSTScan-cli/faa03e0bad5467878be8ecc80326afc02711e703/thirdparty/Pocsuite/pocsuite/thirdparty/requests/compat.pyc
--------------------------------------------------------------------------------
/thirdparty/Pocsuite/pocsuite/thirdparty/requests/cookies.pyc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ibey0nd/NSTScan-cli/faa03e0bad5467878be8ecc80326afc02711e703/thirdparty/Pocsuite/pocsuite/thirdparty/requests/cookies.pyc
--------------------------------------------------------------------------------
/thirdparty/Pocsuite/pocsuite/thirdparty/requests/exceptions.pyc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ibey0nd/NSTScan-cli/faa03e0bad5467878be8ecc80326afc02711e703/thirdparty/Pocsuite/pocsuite/thirdparty/requests/exceptions.pyc
--------------------------------------------------------------------------------
/thirdparty/Pocsuite/pocsuite/thirdparty/requests/hooks.py:
--------------------------------------------------------------------------------
1 | # -*- coding: utf-8 -*-
2 |
3 | """
4 | requests.hooks
5 | ~~~~~~~~~~~~~~
6 |
7 | This module provides the capabilities for the Requests hooks system.
8 |
9 | Available hooks:
10 |
11 | ``response``:
12 | The response generated from a Request.
13 |
14 | """
15 |
16 |
17 | HOOKS = ['response']
18 |
19 |
20 | def default_hooks():
21 | hooks = {}
22 | for event in HOOKS:
23 | hooks[event] = []
24 | return hooks
25 |
26 | # TODO: response is the only one
27 |
28 |
29 | def dispatch_hook(key, hooks, hook_data, **kwargs):
30 | """Dispatches a hook dictionary on a given piece of data."""
31 |
32 | hooks = hooks or dict()
33 |
34 | if key in hooks:
35 | hooks = hooks.get(key)
36 |
37 | if hasattr(hooks, '__call__'):
38 | hooks = [hooks]
39 |
40 | for hook in hooks:
41 | _hook_data = hook(hook_data, **kwargs)
42 | if _hook_data is not None:
43 | hook_data = _hook_data
44 |
45 | return hook_data
46 |
--------------------------------------------------------------------------------
/thirdparty/Pocsuite/pocsuite/thirdparty/requests/hooks.pyc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ibey0nd/NSTScan-cli/faa03e0bad5467878be8ecc80326afc02711e703/thirdparty/Pocsuite/pocsuite/thirdparty/requests/hooks.pyc
--------------------------------------------------------------------------------
/thirdparty/Pocsuite/pocsuite/thirdparty/requests/models.pyc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ibey0nd/NSTScan-cli/faa03e0bad5467878be8ecc80326afc02711e703/thirdparty/Pocsuite/pocsuite/thirdparty/requests/models.pyc
--------------------------------------------------------------------------------
/thirdparty/Pocsuite/pocsuite/thirdparty/requests/packages/__init__.py:
--------------------------------------------------------------------------------
1 | from __future__ import absolute_import
2 |
3 | from . import urllib3
4 |
--------------------------------------------------------------------------------
/thirdparty/Pocsuite/pocsuite/thirdparty/requests/packages/__init__.pyc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ibey0nd/NSTScan-cli/faa03e0bad5467878be8ecc80326afc02711e703/thirdparty/Pocsuite/pocsuite/thirdparty/requests/packages/__init__.pyc
--------------------------------------------------------------------------------
/thirdparty/Pocsuite/pocsuite/thirdparty/requests/packages/chardet/__init__.py:
--------------------------------------------------------------------------------
1 | ######################## BEGIN LICENSE BLOCK ########################
2 | # This library is free software; you can redistribute it and/or
3 | # modify it under the terms of the GNU Lesser General Public
4 | # License as published by the Free Software Foundation; either
5 | # version 2.1 of the License, or (at your option) any later version.
6 | #
7 | # This library is distributed in the hope that it will be useful,
8 | # but WITHOUT ANY WARRANTY; without even the implied warranty of
9 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10 | # Lesser General Public License for more details.
11 | #
12 | # You should have received a copy of the GNU Lesser General Public
13 | # License along with this library; if not, write to the Free Software
14 | # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
15 | # 02110-1301 USA
16 | ######################### END LICENSE BLOCK #########################
17 |
18 | __version__ = "2.3.0"
19 | from sys import version_info
20 |
21 |
22 | def detect(aBuf):
23 | if ((version_info < (3, 0) and isinstance(aBuf, unicode)) or
24 | (version_info >= (3, 0) and not isinstance(aBuf, bytes))):
25 | raise ValueError('Expected a bytes object, not a unicode object')
26 |
27 | from . import universaldetector
28 | u = universaldetector.UniversalDetector()
29 | u.reset()
30 | u.feed(aBuf)
31 | u.close()
32 | return u.result
33 |
--------------------------------------------------------------------------------
/thirdparty/Pocsuite/pocsuite/thirdparty/requests/packages/chardet/__init__.pyc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ibey0nd/NSTScan-cli/faa03e0bad5467878be8ecc80326afc02711e703/thirdparty/Pocsuite/pocsuite/thirdparty/requests/packages/chardet/__init__.pyc
--------------------------------------------------------------------------------
/thirdparty/Pocsuite/pocsuite/thirdparty/requests/packages/chardet/big5prober.py:
--------------------------------------------------------------------------------
1 | ######################## BEGIN LICENSE BLOCK ########################
2 | # The Original Code is Mozilla Communicator client code.
3 | #
4 | # The Initial Developer of the Original Code is
5 | # Netscape Communications Corporation.
6 | # Portions created by the Initial Developer are Copyright (C) 1998
7 | # the Initial Developer. All Rights Reserved.
8 | #
9 | # Contributor(s):
10 | # Mark Pilgrim - port to Python
11 | #
12 | # This library is free software; you can redistribute it and/or
13 | # modify it under the terms of the GNU Lesser General Public
14 | # License as published by the Free Software Foundation; either
15 | # version 2.1 of the License, or (at your option) any later version.
16 | #
17 | # This library is distributed in the hope that it will be useful,
18 | # but WITHOUT ANY WARRANTY; without even the implied warranty of
19 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
20 | # Lesser General Public License for more details.
21 | #
22 | # You should have received a copy of the GNU Lesser General Public
23 | # License along with this library; if not, write to the Free Software
24 | # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
25 | # 02110-1301 USA
26 | ######################### END LICENSE BLOCK #########################
27 |
28 | from .mbcharsetprober import MultiByteCharSetProber
29 | from .codingstatemachine import CodingStateMachine
30 | from .chardistribution import Big5DistributionAnalysis
31 | from .mbcssm import Big5SMModel
32 |
33 |
34 | class Big5Prober(MultiByteCharSetProber):
35 | def __init__(self):
36 | MultiByteCharSetProber.__init__(self)
37 | self._mCodingSM = CodingStateMachine(Big5SMModel)
38 | self._mDistributionAnalyzer = Big5DistributionAnalysis()
39 | self.reset()
40 |
41 | def get_charset_name(self):
42 | return "Big5"
43 |
--------------------------------------------------------------------------------
/thirdparty/Pocsuite/pocsuite/thirdparty/requests/packages/chardet/charsetprober.py:
--------------------------------------------------------------------------------
1 | ######################## BEGIN LICENSE BLOCK ########################
2 | # The Original Code is Mozilla Universal charset detector code.
3 | #
4 | # The Initial Developer of the Original Code is
5 | # Netscape Communications Corporation.
6 | # Portions created by the Initial Developer are Copyright (C) 2001
7 | # the Initial Developer. All Rights Reserved.
8 | #
9 | # Contributor(s):
10 | # Mark Pilgrim - port to Python
11 | # Shy Shalom - original C code
12 | #
13 | # This library is free software; you can redistribute it and/or
14 | # modify it under the terms of the GNU Lesser General Public
15 | # License as published by the Free Software Foundation; either
16 | # version 2.1 of the License, or (at your option) any later version.
17 | #
18 | # This library is distributed in the hope that it will be useful,
19 | # but WITHOUT ANY WARRANTY; without even the implied warranty of
20 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
21 | # Lesser General Public License for more details.
22 | #
23 | # You should have received a copy of the GNU Lesser General Public
24 | # License along with this library; if not, write to the Free Software
25 | # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
26 | # 02110-1301 USA
27 | ######################### END LICENSE BLOCK #########################
28 |
29 | from . import constants
30 | import re
31 |
32 |
33 | class CharSetProber:
34 | def __init__(self):
35 | pass
36 |
37 | def reset(self):
38 | self._mState = constants.eDetecting
39 |
40 | def get_charset_name(self):
41 | return None
42 |
43 | def feed(self, aBuf):
44 | pass
45 |
46 | def get_state(self):
47 | return self._mState
48 |
49 | def get_confidence(self):
50 | return 0.0
51 |
52 | def filter_high_bit_only(self, aBuf):
53 | aBuf = re.sub(b'([\x00-\x7F])+', b' ', aBuf)
54 | return aBuf
55 |
56 | def filter_without_english_letters(self, aBuf):
57 | aBuf = re.sub(b'([A-Za-z])+', b' ', aBuf)
58 | return aBuf
59 |
60 | def filter_with_english_letters(self, aBuf):
61 | # TODO
62 | return aBuf
63 |
--------------------------------------------------------------------------------
/thirdparty/Pocsuite/pocsuite/thirdparty/requests/packages/chardet/codingstatemachine.py:
--------------------------------------------------------------------------------
1 | ######################## BEGIN LICENSE BLOCK ########################
2 | # The Original Code is mozilla.org code.
3 | #
4 | # The Initial Developer of the Original Code is
5 | # Netscape Communications Corporation.
6 | # Portions created by the Initial Developer are Copyright (C) 1998
7 | # the Initial Developer. All Rights Reserved.
8 | #
9 | # Contributor(s):
10 | # Mark Pilgrim - port to Python
11 | #
12 | # This library is free software; you can redistribute it and/or
13 | # modify it under the terms of the GNU Lesser General Public
14 | # License as published by the Free Software Foundation; either
15 | # version 2.1 of the License, or (at your option) any later version.
16 | #
17 | # This library is distributed in the hope that it will be useful,
18 | # but WITHOUT ANY WARRANTY; without even the implied warranty of
19 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
20 | # Lesser General Public License for more details.
21 | #
22 | # You should have received a copy of the GNU Lesser General Public
23 | # License along with this library; if not, write to the Free Software
24 | # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
25 | # 02110-1301 USA
26 | ######################### END LICENSE BLOCK #########################
27 |
28 | from .constants import eStart
29 | from .compat import wrap_ord
30 |
31 |
32 | class CodingStateMachine:
33 | def __init__(self, sm):
34 | self._mModel = sm
35 | self._mCurrentBytePos = 0
36 | self._mCurrentCharLen = 0
37 | self.reset()
38 |
39 | def reset(self):
40 | self._mCurrentState = eStart
41 |
42 | def next_state(self, c):
43 | # for each byte we get its class
44 | # if it is first byte, we also get byte length
45 | # PY3K: aBuf is a byte stream, so c is an int, not a byte
46 | byteCls = self._mModel['classTable'][wrap_ord(c)]
47 | if self._mCurrentState == eStart:
48 | self._mCurrentBytePos = 0
49 | self._mCurrentCharLen = self._mModel['charLenTable'][byteCls]
50 | # from byte's class and stateTable, we get its next state
51 | curr_state = (self._mCurrentState * self._mModel['classFactor']
52 | + byteCls)
53 | self._mCurrentState = self._mModel['stateTable'][curr_state]
54 | self._mCurrentBytePos += 1
55 | return self._mCurrentState
56 |
57 | def get_current_charlen(self):
58 | return self._mCurrentCharLen
59 |
60 | def get_coding_state_machine(self):
61 | return self._mModel['name']
62 |
--------------------------------------------------------------------------------
/thirdparty/Pocsuite/pocsuite/thirdparty/requests/packages/chardet/compat.py:
--------------------------------------------------------------------------------
1 | ######################## BEGIN LICENSE BLOCK ########################
2 | # Contributor(s):
3 | # Ian Cordasco - port to Python
4 | #
5 | # This library is free software; you can redistribute it and/or
6 | # modify it under the terms of the GNU Lesser General Public
7 | # License as published by the Free Software Foundation; either
8 | # version 2.1 of the License, or (at your option) any later version.
9 | #
10 | # This library is distributed in the hope that it will be useful,
11 | # but WITHOUT ANY WARRANTY; without even the implied warranty of
12 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 | # Lesser General Public License for more details.
14 | #
15 | # You should have received a copy of the GNU Lesser General Public
16 | # License along with this library; if not, write to the Free Software
17 | # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
18 | # 02110-1301 USA
19 | ######################### END LICENSE BLOCK #########################
20 |
21 | import sys
22 |
23 |
24 | if sys.version_info < (3, 0):
25 | base_str = (str, unicode)
26 | else:
27 | base_str = (bytes, str)
28 |
29 |
30 | def wrap_ord(a):
31 | if sys.version_info < (3, 0) and isinstance(a, base_str):
32 | return ord(a)
33 | else:
34 | return a
35 |
--------------------------------------------------------------------------------
/thirdparty/Pocsuite/pocsuite/thirdparty/requests/packages/chardet/constants.py:
--------------------------------------------------------------------------------
1 | ######################## BEGIN LICENSE BLOCK ########################
2 | # The Original Code is Mozilla Universal charset detector code.
3 | #
4 | # The Initial Developer of the Original Code is
5 | # Netscape Communications Corporation.
6 | # Portions created by the Initial Developer are Copyright (C) 2001
7 | # the Initial Developer. All Rights Reserved.
8 | #
9 | # Contributor(s):
10 | # Mark Pilgrim - port to Python
11 | # Shy Shalom - original C code
12 | #
13 | # This library is free software; you can redistribute it and/or
14 | # modify it under the terms of the GNU Lesser General Public
15 | # License as published by the Free Software Foundation; either
16 | # version 2.1 of the License, or (at your option) any later version.
17 | #
18 | # This library is distributed in the hope that it will be useful,
19 | # but WITHOUT ANY WARRANTY; without even the implied warranty of
20 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
21 | # Lesser General Public License for more details.
22 | #
23 | # You should have received a copy of the GNU Lesser General Public
24 | # License along with this library; if not, write to the Free Software
25 | # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
26 | # 02110-1301 USA
27 | ######################### END LICENSE BLOCK #########################
28 |
29 | _debug = 0
30 |
31 | eDetecting = 0
32 | eFoundIt = 1
33 | eNotMe = 2
34 |
35 | eStart = 0
36 | eError = 1
37 | eItsMe = 2
38 |
39 | SHORTCUT_THRESHOLD = 0.95
40 |
--------------------------------------------------------------------------------
/thirdparty/Pocsuite/pocsuite/thirdparty/requests/packages/chardet/cp949prober.py:
--------------------------------------------------------------------------------
1 | ######################## BEGIN LICENSE BLOCK ########################
2 | # The Original Code is mozilla.org code.
3 | #
4 | # The Initial Developer of the Original Code is
5 | # Netscape Communications Corporation.
6 | # Portions created by the Initial Developer are Copyright (C) 1998
7 | # the Initial Developer. All Rights Reserved.
8 | #
9 | # Contributor(s):
10 | # Mark Pilgrim - port to Python
11 | #
12 | # This library is free software; you can redistribute it and/or
13 | # modify it under the terms of the GNU Lesser General Public
14 | # License as published by the Free Software Foundation; either
15 | # version 2.1 of the License, or (at your option) any later version.
16 | #
17 | # This library is distributed in the hope that it will be useful,
18 | # but WITHOUT ANY WARRANTY; without even the implied warranty of
19 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
20 | # Lesser General Public License for more details.
21 | #
22 | # You should have received a copy of the GNU Lesser General Public
23 | # License along with this library; if not, write to the Free Software
24 | # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
25 | # 02110-1301 USA
26 | ######################### END LICENSE BLOCK #########################
27 |
28 | from .mbcharsetprober import MultiByteCharSetProber
29 | from .codingstatemachine import CodingStateMachine
30 | from .chardistribution import EUCKRDistributionAnalysis
31 | from .mbcssm import CP949SMModel
32 |
33 |
34 | class CP949Prober(MultiByteCharSetProber):
35 | def __init__(self):
36 | MultiByteCharSetProber.__init__(self)
37 | self._mCodingSM = CodingStateMachine(CP949SMModel)
38 | # NOTE: CP949 is a superset of EUC-KR, so the distribution should be
39 | # not different.
40 | self._mDistributionAnalyzer = EUCKRDistributionAnalysis()
41 | self.reset()
42 |
43 | def get_charset_name(self):
44 | return "CP949"
45 |
--------------------------------------------------------------------------------
/thirdparty/Pocsuite/pocsuite/thirdparty/requests/packages/chardet/euckrprober.py:
--------------------------------------------------------------------------------
1 | ######################## BEGIN LICENSE BLOCK ########################
2 | # The Original Code is mozilla.org code.
3 | #
4 | # The Initial Developer of the Original Code is
5 | # Netscape Communications Corporation.
6 | # Portions created by the Initial Developer are Copyright (C) 1998
7 | # the Initial Developer. All Rights Reserved.
8 | #
9 | # Contributor(s):
10 | # Mark Pilgrim - port to Python
11 | #
12 | # This library is free software; you can redistribute it and/or
13 | # modify it under the terms of the GNU Lesser General Public
14 | # License as published by the Free Software Foundation; either
15 | # version 2.1 of the License, or (at your option) any later version.
16 | #
17 | # This library is distributed in the hope that it will be useful,
18 | # but WITHOUT ANY WARRANTY; without even the implied warranty of
19 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
20 | # Lesser General Public License for more details.
21 | #
22 | # You should have received a copy of the GNU Lesser General Public
23 | # License along with this library; if not, write to the Free Software
24 | # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
25 | # 02110-1301 USA
26 | ######################### END LICENSE BLOCK #########################
27 |
28 | from .mbcharsetprober import MultiByteCharSetProber
29 | from .codingstatemachine import CodingStateMachine
30 | from .chardistribution import EUCKRDistributionAnalysis
31 | from .mbcssm import EUCKRSMModel
32 |
33 |
34 | class EUCKRProber(MultiByteCharSetProber):
35 | def __init__(self):
36 | MultiByteCharSetProber.__init__(self)
37 | self._mCodingSM = CodingStateMachine(EUCKRSMModel)
38 | self._mDistributionAnalyzer = EUCKRDistributionAnalysis()
39 | self.reset()
40 |
41 | def get_charset_name(self):
42 | return "EUC-KR"
43 |
--------------------------------------------------------------------------------
/thirdparty/Pocsuite/pocsuite/thirdparty/requests/packages/chardet/euctwprober.py:
--------------------------------------------------------------------------------
1 | ######################## BEGIN LICENSE BLOCK ########################
2 | # The Original Code is mozilla.org code.
3 | #
4 | # The Initial Developer of the Original Code is
5 | # Netscape Communications Corporation.
6 | # Portions created by the Initial Developer are Copyright (C) 1998
7 | # the Initial Developer. All Rights Reserved.
8 | #
9 | # Contributor(s):
10 | # Mark Pilgrim - port to Python
11 | #
12 | # This library is free software; you can redistribute it and/or
13 | # modify it under the terms of the GNU Lesser General Public
14 | # License as published by the Free Software Foundation; either
15 | # version 2.1 of the License, or (at your option) any later version.
16 | #
17 | # This library is distributed in the hope that it will be useful,
18 | # but WITHOUT ANY WARRANTY; without even the implied warranty of
19 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
20 | # Lesser General Public License for more details.
21 | #
22 | # You should have received a copy of the GNU Lesser General Public
23 | # License along with this library; if not, write to the Free Software
24 | # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
25 | # 02110-1301 USA
26 | ######################### END LICENSE BLOCK #########################
27 |
28 | from .mbcharsetprober import MultiByteCharSetProber
29 | from .codingstatemachine import CodingStateMachine
30 | from .chardistribution import EUCTWDistributionAnalysis
31 | from .mbcssm import EUCTWSMModel
32 |
33 | class EUCTWProber(MultiByteCharSetProber):
34 | def __init__(self):
35 | MultiByteCharSetProber.__init__(self)
36 | self._mCodingSM = CodingStateMachine(EUCTWSMModel)
37 | self._mDistributionAnalyzer = EUCTWDistributionAnalysis()
38 | self.reset()
39 |
40 | def get_charset_name(self):
41 | return "EUC-TW"
42 |
--------------------------------------------------------------------------------
/thirdparty/Pocsuite/pocsuite/thirdparty/requests/packages/chardet/gb2312prober.py:
--------------------------------------------------------------------------------
1 | ######################## BEGIN LICENSE BLOCK ########################
2 | # The Original Code is mozilla.org code.
3 | #
4 | # The Initial Developer of the Original Code is
5 | # Netscape Communications Corporation.
6 | # Portions created by the Initial Developer are Copyright (C) 1998
7 | # the Initial Developer. All Rights Reserved.
8 | #
9 | # Contributor(s):
10 | # Mark Pilgrim - port to Python
11 | #
12 | # This library is free software; you can redistribute it and/or
13 | # modify it under the terms of the GNU Lesser General Public
14 | # License as published by the Free Software Foundation; either
15 | # version 2.1 of the License, or (at your option) any later version.
16 | #
17 | # This library is distributed in the hope that it will be useful,
18 | # but WITHOUT ANY WARRANTY; without even the implied warranty of
19 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
20 | # Lesser General Public License for more details.
21 | #
22 | # You should have received a copy of the GNU Lesser General Public
23 | # License along with this library; if not, write to the Free Software
24 | # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
25 | # 02110-1301 USA
26 | ######################### END LICENSE BLOCK #########################
27 |
28 | from .mbcharsetprober import MultiByteCharSetProber
29 | from .codingstatemachine import CodingStateMachine
30 | from .chardistribution import GB2312DistributionAnalysis
31 | from .mbcssm import GB2312SMModel
32 |
33 | class GB2312Prober(MultiByteCharSetProber):
34 | def __init__(self):
35 | MultiByteCharSetProber.__init__(self)
36 | self._mCodingSM = CodingStateMachine(GB2312SMModel)
37 | self._mDistributionAnalyzer = GB2312DistributionAnalysis()
38 | self.reset()
39 |
40 | def get_charset_name(self):
41 | return "GB2312"
42 |
--------------------------------------------------------------------------------
/thirdparty/Pocsuite/pocsuite/thirdparty/requests/packages/chardet/mbcsgroupprober.py:
--------------------------------------------------------------------------------
1 | ######################## BEGIN LICENSE BLOCK ########################
2 | # The Original Code is Mozilla Universal charset detector code.
3 | #
4 | # The Initial Developer of the Original Code is
5 | # Netscape Communications Corporation.
6 | # Portions created by the Initial Developer are Copyright (C) 2001
7 | # the Initial Developer. All Rights Reserved.
8 | #
9 | # Contributor(s):
10 | # Mark Pilgrim - port to Python
11 | # Shy Shalom - original C code
12 | # Proofpoint, Inc.
13 | #
14 | # This library is free software; you can redistribute it and/or
15 | # modify it under the terms of the GNU Lesser General Public
16 | # License as published by the Free Software Foundation; either
17 | # version 2.1 of the License, or (at your option) any later version.
18 | #
19 | # This library is distributed in the hope that it will be useful,
20 | # but WITHOUT ANY WARRANTY; without even the implied warranty of
21 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
22 | # Lesser General Public License for more details.
23 | #
24 | # You should have received a copy of the GNU Lesser General Public
25 | # License along with this library; if not, write to the Free Software
26 | # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
27 | # 02110-1301 USA
28 | ######################### END LICENSE BLOCK #########################
29 |
30 | from .charsetgroupprober import CharSetGroupProber
31 | from .utf8prober import UTF8Prober
32 | from .sjisprober import SJISProber
33 | from .eucjpprober import EUCJPProber
34 | from .gb2312prober import GB2312Prober
35 | from .euckrprober import EUCKRProber
36 | from .cp949prober import CP949Prober
37 | from .big5prober import Big5Prober
38 | from .euctwprober import EUCTWProber
39 |
40 |
41 | class MBCSGroupProber(CharSetGroupProber):
42 | def __init__(self):
43 | CharSetGroupProber.__init__(self)
44 | self._mProbers = [
45 | UTF8Prober(),
46 | SJISProber(),
47 | EUCJPProber(),
48 | GB2312Prober(),
49 | EUCKRProber(),
50 | CP949Prober(),
51 | Big5Prober(),
52 | EUCTWProber()
53 | ]
54 | self.reset()
55 |
--------------------------------------------------------------------------------
/thirdparty/Pocsuite/pocsuite/thirdparty/requests/packages/urllib3/__init__.py:
--------------------------------------------------------------------------------
1 | """
2 | urllib3 - Thread-safe connection pooling and re-using.
3 | """
4 |
5 | __author__ = 'Andrey Petrov (andrey.petrov@shazow.net)'
6 | __license__ = 'MIT'
7 | __version__ = '1.10.4'
8 |
9 |
10 | from .connectionpool import (
11 | HTTPConnectionPool,
12 | HTTPSConnectionPool,
13 | connection_from_url
14 | )
15 |
16 | from . import exceptions
17 | from .filepost import encode_multipart_formdata
18 | from .poolmanager import PoolManager, ProxyManager, proxy_from_url
19 | from .response import HTTPResponse
20 | from .util.request import make_headers
21 | from .util.url import get_host
22 | from .util.timeout import Timeout
23 | from .util.retry import Retry
24 |
25 |
26 | # Set default logging handler to avoid "No handler found" warnings.
27 | import logging
28 | try: # Python 2.7+
29 | from logging import NullHandler
30 | except ImportError:
31 | class NullHandler(logging.Handler):
32 | def emit(self, record):
33 | pass
34 |
35 | logging.getLogger(__name__).addHandler(NullHandler())
36 |
37 | def add_stderr_logger(level=logging.DEBUG):
38 | """
39 | Helper for quickly adding a StreamHandler to the logger. Useful for
40 | debugging.
41 |
42 | Returns the handler after adding it.
43 | """
44 | # This method needs to be in this __init__.py to get the __name__ correct
45 | # even if urllib3 is vendored within another package.
46 | logger = logging.getLogger(__name__)
47 | handler = logging.StreamHandler()
48 | handler.setFormatter(logging.Formatter('%(asctime)s %(levelname)s %(message)s'))
49 | logger.addHandler(handler)
50 | logger.setLevel(level)
51 | logger.debug('Added a stderr logging handler to logger: %s' % __name__)
52 | return handler
53 |
54 | # ... Clean up.
55 | del NullHandler
56 |
57 |
58 | import warnings
59 | # SecurityWarning's always go off by default.
60 | warnings.simplefilter('always', exceptions.SecurityWarning, append=True)
61 | # InsecurePlatformWarning's don't vary between requests, so we keep it default.
62 | warnings.simplefilter('default', exceptions.InsecurePlatformWarning,
63 | append=True)
64 |
65 | def disable_warnings(category=exceptions.HTTPWarning):
66 | """
67 | Helper for quickly disabling all urllib3 warnings.
68 | """
69 | warnings.simplefilter('ignore', category)
70 |
--------------------------------------------------------------------------------
/thirdparty/Pocsuite/pocsuite/thirdparty/requests/packages/urllib3/__init__.pyc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ibey0nd/NSTScan-cli/faa03e0bad5467878be8ecc80326afc02711e703/thirdparty/Pocsuite/pocsuite/thirdparty/requests/packages/urllib3/__init__.pyc
--------------------------------------------------------------------------------
/thirdparty/Pocsuite/pocsuite/thirdparty/requests/packages/urllib3/_collections.pyc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ibey0nd/NSTScan-cli/faa03e0bad5467878be8ecc80326afc02711e703/thirdparty/Pocsuite/pocsuite/thirdparty/requests/packages/urllib3/_collections.pyc
--------------------------------------------------------------------------------
/thirdparty/Pocsuite/pocsuite/thirdparty/requests/packages/urllib3/connection.pyc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ibey0nd/NSTScan-cli/faa03e0bad5467878be8ecc80326afc02711e703/thirdparty/Pocsuite/pocsuite/thirdparty/requests/packages/urllib3/connection.pyc
--------------------------------------------------------------------------------
/thirdparty/Pocsuite/pocsuite/thirdparty/requests/packages/urllib3/connectionpool.pyc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ibey0nd/NSTScan-cli/faa03e0bad5467878be8ecc80326afc02711e703/thirdparty/Pocsuite/pocsuite/thirdparty/requests/packages/urllib3/connectionpool.pyc
--------------------------------------------------------------------------------
/thirdparty/Pocsuite/pocsuite/thirdparty/requests/packages/urllib3/contrib/__init__.py:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ibey0nd/NSTScan-cli/faa03e0bad5467878be8ecc80326afc02711e703/thirdparty/Pocsuite/pocsuite/thirdparty/requests/packages/urllib3/contrib/__init__.py
--------------------------------------------------------------------------------
/thirdparty/Pocsuite/pocsuite/thirdparty/requests/packages/urllib3/contrib/__init__.pyc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ibey0nd/NSTScan-cli/faa03e0bad5467878be8ecc80326afc02711e703/thirdparty/Pocsuite/pocsuite/thirdparty/requests/packages/urllib3/contrib/__init__.pyc
--------------------------------------------------------------------------------
/thirdparty/Pocsuite/pocsuite/thirdparty/requests/packages/urllib3/contrib/pyopenssl.pyc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ibey0nd/NSTScan-cli/faa03e0bad5467878be8ecc80326afc02711e703/thirdparty/Pocsuite/pocsuite/thirdparty/requests/packages/urllib3/contrib/pyopenssl.pyc
--------------------------------------------------------------------------------
/thirdparty/Pocsuite/pocsuite/thirdparty/requests/packages/urllib3/exceptions.pyc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ibey0nd/NSTScan-cli/faa03e0bad5467878be8ecc80326afc02711e703/thirdparty/Pocsuite/pocsuite/thirdparty/requests/packages/urllib3/exceptions.pyc
--------------------------------------------------------------------------------
/thirdparty/Pocsuite/pocsuite/thirdparty/requests/packages/urllib3/fields.pyc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ibey0nd/NSTScan-cli/faa03e0bad5467878be8ecc80326afc02711e703/thirdparty/Pocsuite/pocsuite/thirdparty/requests/packages/urllib3/fields.pyc
--------------------------------------------------------------------------------
/thirdparty/Pocsuite/pocsuite/thirdparty/requests/packages/urllib3/filepost.pyc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ibey0nd/NSTScan-cli/faa03e0bad5467878be8ecc80326afc02711e703/thirdparty/Pocsuite/pocsuite/thirdparty/requests/packages/urllib3/filepost.pyc
--------------------------------------------------------------------------------
/thirdparty/Pocsuite/pocsuite/thirdparty/requests/packages/urllib3/packages/__init__.py:
--------------------------------------------------------------------------------
1 | from __future__ import absolute_import
2 |
3 | from . import ssl_match_hostname
4 |
5 |
--------------------------------------------------------------------------------
/thirdparty/Pocsuite/pocsuite/thirdparty/requests/packages/urllib3/packages/__init__.pyc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ibey0nd/NSTScan-cli/faa03e0bad5467878be8ecc80326afc02711e703/thirdparty/Pocsuite/pocsuite/thirdparty/requests/packages/urllib3/packages/__init__.pyc
--------------------------------------------------------------------------------
/thirdparty/Pocsuite/pocsuite/thirdparty/requests/packages/urllib3/packages/ordered_dict.pyc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ibey0nd/NSTScan-cli/faa03e0bad5467878be8ecc80326afc02711e703/thirdparty/Pocsuite/pocsuite/thirdparty/requests/packages/urllib3/packages/ordered_dict.pyc
--------------------------------------------------------------------------------
/thirdparty/Pocsuite/pocsuite/thirdparty/requests/packages/urllib3/packages/six.pyc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ibey0nd/NSTScan-cli/faa03e0bad5467878be8ecc80326afc02711e703/thirdparty/Pocsuite/pocsuite/thirdparty/requests/packages/urllib3/packages/six.pyc
--------------------------------------------------------------------------------
/thirdparty/Pocsuite/pocsuite/thirdparty/requests/packages/urllib3/packages/ssl_match_hostname/__init__.py:
--------------------------------------------------------------------------------
1 | try:
2 | # Python 3.2+
3 | from ssl import CertificateError, match_hostname
4 | except ImportError:
5 | try:
6 | # Backport of the function from a pypi module
7 | from backports.ssl_match_hostname import CertificateError, match_hostname
8 | except ImportError:
9 | # Our vendored copy
10 | from ._implementation import CertificateError, match_hostname
11 |
12 | # Not needed, but documenting what we provide.
13 | __all__ = ('CertificateError', 'match_hostname')
14 |
--------------------------------------------------------------------------------
/thirdparty/Pocsuite/pocsuite/thirdparty/requests/packages/urllib3/packages/ssl_match_hostname/__init__.pyc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ibey0nd/NSTScan-cli/faa03e0bad5467878be8ecc80326afc02711e703/thirdparty/Pocsuite/pocsuite/thirdparty/requests/packages/urllib3/packages/ssl_match_hostname/__init__.pyc
--------------------------------------------------------------------------------
/thirdparty/Pocsuite/pocsuite/thirdparty/requests/packages/urllib3/poolmanager.pyc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ibey0nd/NSTScan-cli/faa03e0bad5467878be8ecc80326afc02711e703/thirdparty/Pocsuite/pocsuite/thirdparty/requests/packages/urllib3/poolmanager.pyc
--------------------------------------------------------------------------------
/thirdparty/Pocsuite/pocsuite/thirdparty/requests/packages/urllib3/request.pyc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ibey0nd/NSTScan-cli/faa03e0bad5467878be8ecc80326afc02711e703/thirdparty/Pocsuite/pocsuite/thirdparty/requests/packages/urllib3/request.pyc
--------------------------------------------------------------------------------
/thirdparty/Pocsuite/pocsuite/thirdparty/requests/packages/urllib3/response.pyc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ibey0nd/NSTScan-cli/faa03e0bad5467878be8ecc80326afc02711e703/thirdparty/Pocsuite/pocsuite/thirdparty/requests/packages/urllib3/response.pyc
--------------------------------------------------------------------------------
/thirdparty/Pocsuite/pocsuite/thirdparty/requests/packages/urllib3/util/__init__.py:
--------------------------------------------------------------------------------
1 | # For backwards compatibility, provide imports that used to be here.
2 | from .connection import is_connection_dropped
3 | from .request import make_headers
4 | from .response import is_fp_closed
5 | from .ssl_ import (
6 | SSLContext,
7 | HAS_SNI,
8 | assert_fingerprint,
9 | resolve_cert_reqs,
10 | resolve_ssl_version,
11 | ssl_wrap_socket,
12 | )
13 | from .timeout import (
14 | current_time,
15 | Timeout,
16 | )
17 |
18 | from .retry import Retry
19 | from .url import (
20 | get_host,
21 | parse_url,
22 | split_first,
23 | Url,
24 | )
25 |
--------------------------------------------------------------------------------
/thirdparty/Pocsuite/pocsuite/thirdparty/requests/packages/urllib3/util/__init__.pyc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ibey0nd/NSTScan-cli/faa03e0bad5467878be8ecc80326afc02711e703/thirdparty/Pocsuite/pocsuite/thirdparty/requests/packages/urllib3/util/__init__.pyc
--------------------------------------------------------------------------------
/thirdparty/Pocsuite/pocsuite/thirdparty/requests/packages/urllib3/util/connection.pyc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ibey0nd/NSTScan-cli/faa03e0bad5467878be8ecc80326afc02711e703/thirdparty/Pocsuite/pocsuite/thirdparty/requests/packages/urllib3/util/connection.pyc
--------------------------------------------------------------------------------
/thirdparty/Pocsuite/pocsuite/thirdparty/requests/packages/urllib3/util/request.py:
--------------------------------------------------------------------------------
1 | from base64 import b64encode
2 |
3 | from ..packages.six import b
4 |
5 | ACCEPT_ENCODING = 'gzip,deflate'
6 |
7 |
8 | def make_headers(keep_alive=None, accept_encoding=None, user_agent=None,
9 | basic_auth=None, proxy_basic_auth=None, disable_cache=None):
10 | """
11 | Shortcuts for generating request headers.
12 |
13 | :param keep_alive:
14 | If ``True``, adds 'connection: keep-alive' header.
15 |
16 | :param accept_encoding:
17 | Can be a boolean, list, or string.
18 | ``True`` translates to 'gzip,deflate'.
19 | List will get joined by comma.
20 | String will be used as provided.
21 |
22 | :param user_agent:
23 | String representing the user-agent you want, such as
24 | "python-urllib3/0.6"
25 |
26 | :param basic_auth:
27 | Colon-separated username:password string for 'authorization: basic ...'
28 | auth header.
29 |
30 | :param proxy_basic_auth:
31 | Colon-separated username:password string for 'proxy-authorization: basic ...'
32 | auth header.
33 |
34 | :param disable_cache:
35 | If ``True``, adds 'cache-control: no-cache' header.
36 |
37 | Example::
38 |
39 | >>> make_headers(keep_alive=True, user_agent="Batman/1.0")
40 | {'connection': 'keep-alive', 'user-agent': 'Batman/1.0'}
41 | >>> make_headers(accept_encoding=True)
42 | {'accept-encoding': 'gzip,deflate'}
43 | """
44 | headers = {}
45 | if accept_encoding:
46 | if isinstance(accept_encoding, str):
47 | pass
48 | elif isinstance(accept_encoding, list):
49 | accept_encoding = ','.join(accept_encoding)
50 | else:
51 | accept_encoding = ACCEPT_ENCODING
52 | headers['accept-encoding'] = accept_encoding
53 |
54 | if user_agent:
55 | headers['user-agent'] = user_agent
56 |
57 | if keep_alive:
58 | headers['connection'] = 'keep-alive'
59 |
60 | if basic_auth:
61 | headers['authorization'] = 'Basic ' + \
62 | b64encode(b(basic_auth)).decode('utf-8')
63 |
64 | if proxy_basic_auth:
65 | headers['proxy-authorization'] = 'Basic ' + \
66 | b64encode(b(proxy_basic_auth)).decode('utf-8')
67 |
68 | if disable_cache:
69 | headers['cache-control'] = 'no-cache'
70 |
71 | return headers
72 |
--------------------------------------------------------------------------------
/thirdparty/Pocsuite/pocsuite/thirdparty/requests/packages/urllib3/util/request.pyc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ibey0nd/NSTScan-cli/faa03e0bad5467878be8ecc80326afc02711e703/thirdparty/Pocsuite/pocsuite/thirdparty/requests/packages/urllib3/util/request.pyc
--------------------------------------------------------------------------------
/thirdparty/Pocsuite/pocsuite/thirdparty/requests/packages/urllib3/util/response.py:
--------------------------------------------------------------------------------
1 | def is_fp_closed(obj):
2 | """
3 | Checks whether a given file-like object is closed.
4 |
5 | :param obj:
6 | The file-like object to check.
7 | """
8 |
9 | try:
10 | # Check via the official file-like-object way.
11 | return obj.closed
12 | except AttributeError:
13 | pass
14 |
15 | try:
16 | # Check if the object is a container for another file-like object that
17 | # gets released on exhaustion (e.g. HTTPResponse).
18 | return obj.fp is None
19 | except AttributeError:
20 | pass
21 |
22 | raise ValueError("Unable to determine whether fp is closed.")
23 |
--------------------------------------------------------------------------------
/thirdparty/Pocsuite/pocsuite/thirdparty/requests/packages/urllib3/util/response.pyc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ibey0nd/NSTScan-cli/faa03e0bad5467878be8ecc80326afc02711e703/thirdparty/Pocsuite/pocsuite/thirdparty/requests/packages/urllib3/util/response.pyc
--------------------------------------------------------------------------------
/thirdparty/Pocsuite/pocsuite/thirdparty/requests/packages/urllib3/util/retry.pyc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ibey0nd/NSTScan-cli/faa03e0bad5467878be8ecc80326afc02711e703/thirdparty/Pocsuite/pocsuite/thirdparty/requests/packages/urllib3/util/retry.pyc
--------------------------------------------------------------------------------
/thirdparty/Pocsuite/pocsuite/thirdparty/requests/packages/urllib3/util/ssl_.pyc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ibey0nd/NSTScan-cli/faa03e0bad5467878be8ecc80326afc02711e703/thirdparty/Pocsuite/pocsuite/thirdparty/requests/packages/urllib3/util/ssl_.pyc
--------------------------------------------------------------------------------
/thirdparty/Pocsuite/pocsuite/thirdparty/requests/packages/urllib3/util/timeout.pyc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ibey0nd/NSTScan-cli/faa03e0bad5467878be8ecc80326afc02711e703/thirdparty/Pocsuite/pocsuite/thirdparty/requests/packages/urllib3/util/timeout.pyc
--------------------------------------------------------------------------------
/thirdparty/Pocsuite/pocsuite/thirdparty/requests/packages/urllib3/util/url.pyc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ibey0nd/NSTScan-cli/faa03e0bad5467878be8ecc80326afc02711e703/thirdparty/Pocsuite/pocsuite/thirdparty/requests/packages/urllib3/util/url.pyc
--------------------------------------------------------------------------------
/thirdparty/Pocsuite/pocsuite/thirdparty/requests/sessions.pyc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ibey0nd/NSTScan-cli/faa03e0bad5467878be8ecc80326afc02711e703/thirdparty/Pocsuite/pocsuite/thirdparty/requests/sessions.pyc
--------------------------------------------------------------------------------
/thirdparty/Pocsuite/pocsuite/thirdparty/requests/status_codes.pyc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ibey0nd/NSTScan-cli/faa03e0bad5467878be8ecc80326afc02711e703/thirdparty/Pocsuite/pocsuite/thirdparty/requests/status_codes.pyc
--------------------------------------------------------------------------------
/thirdparty/Pocsuite/pocsuite/thirdparty/requests/structures.pyc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ibey0nd/NSTScan-cli/faa03e0bad5467878be8ecc80326afc02711e703/thirdparty/Pocsuite/pocsuite/thirdparty/requests/structures.pyc
--------------------------------------------------------------------------------
/thirdparty/Pocsuite/pocsuite/thirdparty/requests/utils.pyc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ibey0nd/NSTScan-cli/faa03e0bad5467878be8ecc80326afc02711e703/thirdparty/Pocsuite/pocsuite/thirdparty/requests/utils.pyc
--------------------------------------------------------------------------------
/thirdparty/Pocsuite/pocsuite/thirdparty/socks/PKG-INFO:
--------------------------------------------------------------------------------
1 | Metadata-Version: 1.0
2 | Name: PySocks
3 | Version: 1.5.4
4 | Summary: A Python SOCKS client module. See https://github.com/Anorov/PySocks for more information.
5 | Home-page: https://github.com/Anorov/PySocks
6 | Author: Anorov
7 | Author-email: anorov.vorona@gmail.com
8 | License: BSD
9 | Description: UNKNOWN
10 | Keywords: socks,proxy
11 | Platform: UNKNOWN
12 |
--------------------------------------------------------------------------------
/thirdparty/Pocsuite/pocsuite/thirdparty/socks/__init__.py:
--------------------------------------------------------------------------------
1 | pass
2 |
--------------------------------------------------------------------------------
/thirdparty/Pocsuite/pocsuite/thirdparty/socks/setup.py:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env python
2 | from distutils.core import setup
3 |
4 | VERSION = "1.5.4"
5 |
6 | setup(
7 | name = "PySocks",
8 | version = VERSION,
9 | description = "A Python SOCKS client module. See https://github.com/Anorov/PySocks for more information.",
10 | url = "https://github.com/Anorov/PySocks",
11 | license = "BSD",
12 | author = "Anorov",
13 | author_email = "anorov.vorona@gmail.com",
14 | keywords = ["socks", "proxy"],
15 | py_modules=["socks", "sockshandler"]
16 | )
17 |
18 |
--------------------------------------------------------------------------------
/thirdparty/Pocsuite/pocsuite/thirdparty/termcolor/__init__.py:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env python
2 | # -*- coding: utf-8 -*-
3 |
4 | """
5 | Copyright (c) 2014-2015 pocsuite developers (http://seebug.org)
6 | See the file 'docs/COPYING' for copying permission
7 | """
8 |
--------------------------------------------------------------------------------
/thirdparty/Pocsuite/pocsuite/thirdparty/termcolor/__init__.pyc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ibey0nd/NSTScan-cli/faa03e0bad5467878be8ecc80326afc02711e703/thirdparty/Pocsuite/pocsuite/thirdparty/termcolor/__init__.pyc
--------------------------------------------------------------------------------
/thirdparty/Pocsuite/pocsuite/thirdparty/termcolor/termcolor.pyc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ibey0nd/NSTScan-cli/faa03e0bad5467878be8ecc80326afc02711e703/thirdparty/Pocsuite/pocsuite/thirdparty/termcolor/termcolor.pyc
--------------------------------------------------------------------------------
/thirdparty/Pocsuite/setup.py:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env python
2 | # coding: utf-8
3 |
4 | from setuptools import setup, find_packages
5 | from pocsuite import (
6 | __version__ as version, __author__ as author,
7 | __author_email__ as author_email, __license__ as license)
8 |
9 | setup(
10 | name='pocsuite',
11 | version=version,
12 | description="Pocsuite is an open-sourced remote vulnerability testing framework developed by the Knownsec Security Team.",
13 | long_description="""\
14 | Pocsuite is an open-sourced remote vulnerability testing and proof-of-concept development framework developed by the Knownsec Security Team. It comes with a powerful proof-of-concept engine, many niche features for the ultimate penetration testers and security researchers.""",
15 | classifiers=[], # Get strings from http://pypi.python.org/pypi?%3Aaction=list_classifiers
16 | keywords='PoC,Exp,Pocsuite',
17 | author=author,
18 | author_email=author_email,
19 | url='http://pocsuite.org',
20 | license=license,
21 | packages=find_packages(),
22 | include_package_data=True,
23 | zip_safe=False,
24 | install_requires=[
25 | 'lxml',
26 | ],
27 | entry_points={
28 | 'console_scripts': [
29 | 'pocsuite = pocsuite.pocsuite_cli:main',
30 | 'pcs-console = pocsuite.pocsuite_console:main',
31 | 'pcs-verify = pocsuite.pocsuite_verify:main',
32 | 'pcs-attack = pocsuite.pocsuite_attack:main',
33 | ],
34 | },
35 | )
36 |
--------------------------------------------------------------------------------
/thirdparty/__init__.py:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ibey0nd/NSTScan-cli/faa03e0bad5467878be8ecc80326afc02711e703/thirdparty/__init__.py
--------------------------------------------------------------------------------