id int64 0 190k | prompt stringlengths 21 13.4M | docstring stringlengths 1 12k ⌀ |
|---|---|---|
35,601 | from __future__ import absolute_import, division, print_function
import warnings
from thirdparty.cryptography import utils
from thirdparty.cryptography.hazmat.primitives import hashes
from thirdparty.cryptography.hazmat.primitives.asymmetric.utils import Prehashed
class Prehashed(object):
def __init__(self, algori... | null |
35,602 | from __future__ import absolute_import, division, print_function
import warnings
from thirdparty.cryptography import utils
from thirdparty.cryptography.hazmat.primitives import hashes
from thirdparty.cryptography.hazmat.primitives.asymmetric.utils import Prehashed
def _warn_sign_verify_deprecated():
warnings.warn(... | null |
35,603 | from __future__ import absolute_import, division, print_function
from thirdparty.cryptography import utils
from thirdparty.cryptography.exceptions import (
InvalidSignature,
UnsupportedAlgorithm,
_Reasons,
)
from thirdparty.cryptography.hazmat.backends.openssl.utils import (
_calculate_digest_and_algori... | null |
35,604 | from __future__ import absolute_import, division, print_function
from thirdparty.cryptography import utils
from thirdparty.cryptography.exceptions import (
InvalidSignature,
UnsupportedAlgorithm,
_Reasons,
)
from thirdparty.cryptography.hazmat.backends.openssl.utils import (
_calculate_digest_and_algori... | null |
35,605 | from __future__ import absolute_import, division, print_function
from thirdparty.cryptography import utils
from thirdparty.cryptography.exceptions import (
InvalidSignature,
UnsupportedAlgorithm,
_Reasons,
)
from thirdparty.cryptography.hazmat.backends.openssl.utils import (
_calculate_digest_and_algori... | null |
35,606 | from __future__ import absolute_import, division, print_function
from thirdparty.cryptography import utils
from thirdparty.cryptography.exceptions import UnsupportedAlgorithm, _Reasons
from thirdparty.cryptography.hazmat.primitives import serialization
from thirdparty.cryptography.hazmat.primitives.asymmetric import dh... | null |
35,607 | from __future__ import absolute_import, division, print_function
from thirdparty.cryptography import utils
from thirdparty.cryptography.exceptions import UnsupportedAlgorithm, _Reasons
from thirdparty.cryptography.hazmat.primitives import serialization
from thirdparty.cryptography.hazmat.primitives.asymmetric import dh... | null |
35,608 | from __future__ import absolute_import, division, print_function
import calendar
import ipaddress
import six
from thirdparty.cryptography import utils, x509
from thirdparty.cryptography.hazmat.backends.openssl.decode_asn1 import (
_CRL_ENTRY_REASON_ENUM_TO_CODE,
_DISTPOINT_TYPE_FULLNAME,
_DISTPOINT_TYPE_REL... | null |
35,609 | from __future__ import absolute_import, division, print_function
import calendar
import ipaddress
import six
from thirdparty.cryptography import utils, x509
from thirdparty.cryptography.hazmat.backends.openssl.decode_asn1 import (
_CRL_ENTRY_REASON_ENUM_TO_CODE,
_DISTPOINT_TYPE_FULLNAME,
_DISTPOINT_TYPE_REL... | null |
35,610 | from __future__ import absolute_import, division, print_function
import calendar
import ipaddress
import six
from thirdparty.cryptography import utils, x509
from thirdparty.cryptography.hazmat.backends.openssl.decode_asn1 import (
_CRL_ENTRY_REASON_ENUM_TO_CODE,
_DISTPOINT_TYPE_FULLNAME,
_DISTPOINT_TYPE_REL... | null |
35,611 | from __future__ import absolute_import, division, print_function
import calendar
import ipaddress
import six
from thirdparty.cryptography import utils, x509
from thirdparty.cryptography.hazmat.backends.openssl.decode_asn1 import (
_CRL_ENTRY_REASON_ENUM_TO_CODE,
_DISTPOINT_TYPE_FULLNAME,
_DISTPOINT_TYPE_REL... | null |
35,612 | from __future__ import absolute_import, division, print_function
import calendar
import ipaddress
import six
from thirdparty.cryptography import utils, x509
from thirdparty.cryptography.hazmat.backends.openssl.decode_asn1 import (
_CRL_ENTRY_REASON_ENUM_TO_CODE,
_DISTPOINT_TYPE_FULLNAME,
_DISTPOINT_TYPE_REL... | null |
35,613 | from __future__ import absolute_import, division, print_function
import calendar
import ipaddress
import six
from thirdparty.cryptography import utils, x509
from thirdparty.cryptography.hazmat.backends.openssl.decode_asn1 import (
_CRL_ENTRY_REASON_ENUM_TO_CODE,
_DISTPOINT_TYPE_FULLNAME,
_DISTPOINT_TYPE_REL... | null |
35,614 | from __future__ import absolute_import, division, print_function
import calendar
import ipaddress
import six
from thirdparty.cryptography import utils, x509
from thirdparty.cryptography.hazmat.backends.openssl.decode_asn1 import (
_CRL_ENTRY_REASON_ENUM_TO_CODE,
_DISTPOINT_TYPE_FULLNAME,
_DISTPOINT_TYPE_REL... | null |
35,615 | from __future__ import absolute_import, division, print_function
import calendar
import ipaddress
import six
from thirdparty.cryptography import utils, x509
from thirdparty.cryptography.hazmat.backends.openssl.decode_asn1 import (
_CRL_ENTRY_REASON_ENUM_TO_CODE,
_DISTPOINT_TYPE_FULLNAME,
_DISTPOINT_TYPE_REL... | null |
35,616 | from __future__ import absolute_import, division, print_function
import calendar
import ipaddress
import six
from thirdparty.cryptography import utils, x509
from thirdparty.cryptography.hazmat.backends.openssl.decode_asn1 import (
_CRL_ENTRY_REASON_ENUM_TO_CODE,
_DISTPOINT_TYPE_FULLNAME,
_DISTPOINT_TYPE_REL... | null |
35,617 | from __future__ import absolute_import, division, print_function
import calendar
import ipaddress
import six
from thirdparty.cryptography import utils, x509
from thirdparty.cryptography.hazmat.backends.openssl.decode_asn1 import (
_CRL_ENTRY_REASON_ENUM_TO_CODE,
_DISTPOINT_TYPE_FULLNAME,
_DISTPOINT_TYPE_REL... | null |
35,618 | from __future__ import absolute_import, division, print_function
import calendar
import ipaddress
import six
from thirdparty.cryptography import utils, x509
from thirdparty.cryptography.hazmat.backends.openssl.decode_asn1 import (
_CRL_ENTRY_REASON_ENUM_TO_CODE,
_DISTPOINT_TYPE_FULLNAME,
_DISTPOINT_TYPE_REL... | null |
35,619 | from __future__ import absolute_import, division, print_function
import calendar
import ipaddress
import six
from thirdparty.cryptography import utils, x509
from thirdparty.cryptography.hazmat.backends.openssl.decode_asn1 import (
_CRL_ENTRY_REASON_ENUM_TO_CODE,
_DISTPOINT_TYPE_FULLNAME,
_DISTPOINT_TYPE_REL... | null |
35,620 | from __future__ import absolute_import, division, print_function
import calendar
import ipaddress
import six
from thirdparty.cryptography import utils, x509
from thirdparty.cryptography.hazmat.backends.openssl.decode_asn1 import (
_CRL_ENTRY_REASON_ENUM_TO_CODE,
_DISTPOINT_TYPE_FULLNAME,
_DISTPOINT_TYPE_REL... | null |
35,621 | from __future__ import absolute_import, division, print_function
import calendar
import ipaddress
import six
from thirdparty.cryptography import utils, x509
from thirdparty.cryptography.hazmat.backends.openssl.decode_asn1 import (
_CRL_ENTRY_REASON_ENUM_TO_CODE,
_DISTPOINT_TYPE_FULLNAME,
_DISTPOINT_TYPE_REL... | null |
35,622 | from __future__ import absolute_import, division, print_function
import calendar
import ipaddress
import six
from thirdparty.cryptography import utils, x509
from thirdparty.cryptography.hazmat.backends.openssl.decode_asn1 import (
_CRL_ENTRY_REASON_ENUM_TO_CODE,
_DISTPOINT_TYPE_FULLNAME,
_DISTPOINT_TYPE_REL... | null |
35,623 | from __future__ import absolute_import, division, print_function
import calendar
import ipaddress
import six
from thirdparty.cryptography import utils, x509
from thirdparty.cryptography.hazmat.backends.openssl.decode_asn1 import (
_CRL_ENTRY_REASON_ENUM_TO_CODE,
_DISTPOINT_TYPE_FULLNAME,
_DISTPOINT_TYPE_REL... | null |
35,624 | from __future__ import absolute_import, division, print_function
import calendar
import ipaddress
import six
from thirdparty.cryptography import utils, x509
from thirdparty.cryptography.hazmat.backends.openssl.decode_asn1 import (
_CRL_ENTRY_REASON_ENUM_TO_CODE,
_DISTPOINT_TYPE_FULLNAME,
_DISTPOINT_TYPE_REL... | null |
35,625 | from __future__ import absolute_import, division, print_function
import calendar
import ipaddress
import six
from thirdparty.cryptography import utils, x509
from thirdparty.cryptography.hazmat.backends.openssl.decode_asn1 import (
_CRL_ENTRY_REASON_ENUM_TO_CODE,
_DISTPOINT_TYPE_FULLNAME,
_DISTPOINT_TYPE_REL... | null |
35,626 | from __future__ import absolute_import, division, print_function
import calendar
import ipaddress
import six
from thirdparty.cryptography import utils, x509
from thirdparty.cryptography.hazmat.backends.openssl.decode_asn1 import (
_CRL_ENTRY_REASON_ENUM_TO_CODE,
_DISTPOINT_TYPE_FULLNAME,
_DISTPOINT_TYPE_REL... | null |
35,627 | from __future__ import absolute_import, division, print_function
import functools
from thirdparty.cryptography import utils, x509
from thirdparty.cryptography.exceptions import UnsupportedAlgorithm
from thirdparty.cryptography.hazmat.backends.openssl.decode_asn1 import (
_CRL_ENTRY_REASON_CODE_TO_ENUM,
_asn1_in... | null |
35,628 | from __future__ import absolute_import, division, print_function
import functools
from thirdparty.cryptography import utils, x509
from thirdparty.cryptography.exceptions import UnsupportedAlgorithm
from thirdparty.cryptography.hazmat.backends.openssl.decode_asn1 import (
_CRL_ENTRY_REASON_CODE_TO_ENUM,
_asn1_in... | null |
35,629 | from __future__ import absolute_import, division, print_function
import functools
from thirdparty.cryptography import utils, x509
from thirdparty.cryptography.exceptions import UnsupportedAlgorithm
from thirdparty.cryptography.hazmat.backends.openssl.decode_asn1 import (
_CRL_ENTRY_REASON_CODE_TO_ENUM,
_asn1_in... | null |
35,630 | from __future__ import absolute_import, division, print_function
import functools
from thirdparty.cryptography import utils, x509
from thirdparty.cryptography.exceptions import UnsupportedAlgorithm
from thirdparty.cryptography.hazmat.backends.openssl.decode_asn1 import (
_CRL_ENTRY_REASON_CODE_TO_ENUM,
_asn1_in... | null |
35,631 | from __future__ import absolute_import, division, print_function
import functools
from thirdparty.cryptography import utils, x509
from thirdparty.cryptography.exceptions import UnsupportedAlgorithm
from thirdparty.cryptography.hazmat.backends.openssl.decode_asn1 import (
_CRL_ENTRY_REASON_CODE_TO_ENUM,
_asn1_in... | null |
35,632 | from __future__ import absolute_import, division, print_function
from thirdparty.cryptography.exceptions import InvalidTag
_ENCRYPT = 1
def _aead_cipher_name(cipher):
def _aead_setup(backend, cipher_name, key, nonce, tag, tag_len, operation):
def _set_length(backend, ctx, data_len):
def _process_aad(backend, ctx, assoc... | null |
35,633 | from __future__ import absolute_import, division, print_function
from thirdparty.cryptography.exceptions import InvalidTag
_DECRYPT = 0
def _aead_cipher_name(cipher):
from thirdparty.cryptography.hazmat.primitives.ciphers.aead import (
AESCCM,
AESGCM,
ChaCha20Poly1305,
)
if isinstanc... | null |
35,634 | from __future__ import absolute_import, division, print_function
import collections
import contextlib
import itertools
import warnings
from contextlib import contextmanager
import six
from six.moves import range
from thirdparty.cryptography import utils, x509
from thirdparty.cryptography.exceptions import UnsupportedAl... | null |
35,635 | from __future__ import absolute_import, division, print_function
import datetime
import ipaddress
import six
from thirdparty.cryptography import x509
from thirdparty.cryptography.hazmat._der import DERReader, INTEGER, NULL, SEQUENCE
from thirdparty.cryptography.x509.extensions import _TLS_FEATURE_TYPE_TO_ENUM
from thir... | null |
35,636 | from __future__ import absolute_import, division, print_function
import datetime
import ipaddress
import six
from thirdparty.cryptography import x509
from thirdparty.cryptography.hazmat._der import DERReader, INTEGER, NULL, SEQUENCE
from thirdparty.cryptography.x509.extensions import _TLS_FEATURE_TYPE_TO_ENUM
from thir... | null |
35,637 | from __future__ import absolute_import, division, print_function
import datetime
import ipaddress
import six
from thirdparty.cryptography import x509
from thirdparty.cryptography.hazmat._der import DERReader, INTEGER, NULL, SEQUENCE
from thirdparty.cryptography.x509.extensions import _TLS_FEATURE_TYPE_TO_ENUM
from thir... | null |
35,638 | from __future__ import absolute_import, division, print_function
import datetime
import ipaddress
import six
from thirdparty.cryptography import x509
from thirdparty.cryptography.hazmat._der import DERReader, INTEGER, NULL, SEQUENCE
from thirdparty.cryptography.x509.extensions import _TLS_FEATURE_TYPE_TO_ENUM
from thir... | null |
35,639 | from __future__ import absolute_import, division, print_function
import datetime
import ipaddress
import six
from thirdparty.cryptography import x509
from thirdparty.cryptography.hazmat._der import DERReader, INTEGER, NULL, SEQUENCE
from thirdparty.cryptography.x509.extensions import _TLS_FEATURE_TYPE_TO_ENUM
from thir... | null |
35,640 | from __future__ import absolute_import, division, print_function
import datetime
import ipaddress
import six
from thirdparty.cryptography import x509
from thirdparty.cryptography.hazmat._der import DERReader, INTEGER, NULL, SEQUENCE
from thirdparty.cryptography.x509.extensions import _TLS_FEATURE_TYPE_TO_ENUM
from thir... | null |
35,641 | from __future__ import absolute_import, division, print_function
import datetime
import ipaddress
import six
from thirdparty.cryptography import x509
from thirdparty.cryptography.hazmat._der import DERReader, INTEGER, NULL, SEQUENCE
from thirdparty.cryptography.x509.extensions import _TLS_FEATURE_TYPE_TO_ENUM
from thir... | null |
35,642 | from __future__ import absolute_import, division, print_function
import datetime
import ipaddress
import six
from thirdparty.cryptography import x509
from thirdparty.cryptography.hazmat._der import DERReader, INTEGER, NULL, SEQUENCE
from thirdparty.cryptography.x509.extensions import _TLS_FEATURE_TYPE_TO_ENUM
from thir... | null |
35,643 | from __future__ import absolute_import, division, print_function
import datetime
import ipaddress
import six
from thirdparty.cryptography import x509
from thirdparty.cryptography.hazmat._der import DERReader, INTEGER, NULL, SEQUENCE
from thirdparty.cryptography.x509.extensions import _TLS_FEATURE_TYPE_TO_ENUM
from thir... | null |
35,644 | from __future__ import absolute_import, division, print_function
import datetime
import ipaddress
import six
from thirdparty.cryptography import x509
from thirdparty.cryptography.hazmat._der import DERReader, INTEGER, NULL, SEQUENCE
from thirdparty.cryptography.x509.extensions import _TLS_FEATURE_TYPE_TO_ENUM
from thir... | null |
35,645 | from __future__ import absolute_import, division, print_function
import datetime
import ipaddress
import six
from thirdparty.cryptography import x509
from thirdparty.cryptography.hazmat._der import DERReader, INTEGER, NULL, SEQUENCE
from thirdparty.cryptography.x509.extensions import _TLS_FEATURE_TYPE_TO_ENUM
from thir... | null |
35,646 | from __future__ import absolute_import, division, print_function
import datetime
import ipaddress
import six
from thirdparty.cryptography import x509
from thirdparty.cryptography.hazmat._der import DERReader, INTEGER, NULL, SEQUENCE
from thirdparty.cryptography.x509.extensions import _TLS_FEATURE_TYPE_TO_ENUM
from thir... | null |
35,647 | from __future__ import absolute_import, division, print_function
import datetime
import ipaddress
import six
from thirdparty.cryptography import x509
from thirdparty.cryptography.hazmat._der import DERReader, INTEGER, NULL, SEQUENCE
from thirdparty.cryptography.x509.extensions import _TLS_FEATURE_TYPE_TO_ENUM
from thir... | null |
35,648 | from __future__ import absolute_import, division, print_function
import datetime
import ipaddress
import six
from thirdparty.cryptography import x509
from thirdparty.cryptography.hazmat._der import DERReader, INTEGER, NULL, SEQUENCE
from thirdparty.cryptography.x509.extensions import _TLS_FEATURE_TYPE_TO_ENUM
from thir... | null |
35,649 | from __future__ import absolute_import, division, print_function
import datetime
import ipaddress
import six
from thirdparty.cryptography import x509
from thirdparty.cryptography.hazmat._der import DERReader, INTEGER, NULL, SEQUENCE
from thirdparty.cryptography.x509.extensions import _TLS_FEATURE_TYPE_TO_ENUM
from thir... | null |
35,650 | from __future__ import absolute_import, division, print_function
import datetime
import ipaddress
import six
from thirdparty.cryptography import x509
from thirdparty.cryptography.hazmat._der import DERReader, INTEGER, NULL, SEQUENCE
from thirdparty.cryptography.x509.extensions import _TLS_FEATURE_TYPE_TO_ENUM
from thir... | null |
35,651 | from __future__ import absolute_import, division, print_function
import datetime
import ipaddress
import six
from thirdparty.cryptography import x509
from thirdparty.cryptography.hazmat._der import DERReader, INTEGER, NULL, SEQUENCE
from thirdparty.cryptography.x509.extensions import _TLS_FEATURE_TYPE_TO_ENUM
from thir... | null |
35,652 | from __future__ import absolute_import, division, print_function
import datetime
import ipaddress
import six
from thirdparty.cryptography import x509
from thirdparty.cryptography.hazmat._der import DERReader, INTEGER, NULL, SEQUENCE
from thirdparty.cryptography.x509.extensions import _TLS_FEATURE_TYPE_TO_ENUM
from thir... | null |
35,653 | from __future__ import absolute_import, division, print_function
import datetime
import ipaddress
import six
from thirdparty.cryptography import x509
from thirdparty.cryptography.hazmat._der import DERReader, INTEGER, NULL, SEQUENCE
from thirdparty.cryptography.x509.extensions import _TLS_FEATURE_TYPE_TO_ENUM
from thir... | null |
35,654 | from __future__ import absolute_import, division, print_function
import datetime
import ipaddress
import six
from thirdparty.cryptography import x509
from thirdparty.cryptography.hazmat._der import DERReader, INTEGER, NULL, SEQUENCE
from thirdparty.cryptography.x509.extensions import _TLS_FEATURE_TYPE_TO_ENUM
from thir... | null |
35,655 | from __future__ import absolute_import, division, print_function
import datetime
import ipaddress
import six
from thirdparty.cryptography import x509
from thirdparty.cryptography.hazmat._der import DERReader, INTEGER, NULL, SEQUENCE
from thirdparty.cryptography.x509.extensions import _TLS_FEATURE_TYPE_TO_ENUM
from thir... | null |
35,656 | from __future__ import absolute_import, division, print_function
import datetime
import ipaddress
import six
from thirdparty.cryptography import x509
from thirdparty.cryptography.hazmat._der import DERReader, INTEGER, NULL, SEQUENCE
from thirdparty.cryptography.x509.extensions import _TLS_FEATURE_TYPE_TO_ENUM
from thir... | null |
35,657 | from __future__ import absolute_import, division, print_function
import datetime
import ipaddress
import six
from thirdparty.cryptography import x509
from thirdparty.cryptography.hazmat._der import DERReader, INTEGER, NULL, SEQUENCE
from thirdparty.cryptography.x509.extensions import _TLS_FEATURE_TYPE_TO_ENUM
from thir... | null |
35,658 | from __future__ import absolute_import, division, print_function
import datetime
import ipaddress
import six
from thirdparty.cryptography import x509
from thirdparty.cryptography.hazmat._der import DERReader, INTEGER, NULL, SEQUENCE
from thirdparty.cryptography.x509.extensions import _TLS_FEATURE_TYPE_TO_ENUM
from thir... | null |
35,659 | from __future__ import absolute_import, division, print_function
import datetime
import ipaddress
import six
from thirdparty.cryptography import x509
from thirdparty.cryptography.hazmat._der import DERReader, INTEGER, NULL, SEQUENCE
from thirdparty.cryptography.x509.extensions import _TLS_FEATURE_TYPE_TO_ENUM
from thir... | null |
35,660 | from __future__ import absolute_import, division, print_function
import datetime
import ipaddress
import six
from thirdparty.cryptography import x509
from thirdparty.cryptography.hazmat._der import DERReader, INTEGER, NULL, SEQUENCE
from thirdparty.cryptography.x509.extensions import _TLS_FEATURE_TYPE_TO_ENUM
from thir... | null |
35,661 | from __future__ import absolute_import, division, print_function
from thirdparty.cryptography import utils
from thirdparty.cryptography.exceptions import (
InvalidSignature,
UnsupportedAlgorithm,
_Reasons,
)
from thirdparty.cryptography.hazmat.backends.openssl.utils import (
_calculate_digest_and_algori... | null |
35,662 | from __future__ import absolute_import, division, print_function
from thirdparty.cryptography import utils
from thirdparty.cryptography.exceptions import (
InvalidSignature,
UnsupportedAlgorithm,
_Reasons,
)
from thirdparty.cryptography.hazmat.backends.openssl.utils import (
_calculate_digest_and_algori... | null |
35,663 | from __future__ import absolute_import, division, print_function
from thirdparty.cryptography import utils
from thirdparty.cryptography.exceptions import (
InvalidSignature,
UnsupportedAlgorithm,
_Reasons,
)
from thirdparty.cryptography.hazmat.backends.openssl.utils import (
_calculate_digest_and_algori... | Set the named curve flag on the EC_KEY. This causes OpenSSL to serialize EC keys along with their curve OID which makes deserialization easier. |
35,664 | from __future__ import absolute_import, division, print_function
from thirdparty.cryptography import utils
from thirdparty.cryptography.exceptions import (
InvalidSignature,
UnsupportedAlgorithm,
_Reasons,
)
from thirdparty.cryptography.hazmat.backends.openssl.utils import (
_calculate_digest_and_algori... | null |
35,665 | from __future__ import absolute_import, division, print_function
from thirdparty.cryptography import utils
from thirdparty.cryptography.exceptions import (
InvalidSignature,
UnsupportedAlgorithm,
_Reasons,
)
from thirdparty.cryptography.hazmat.backends.openssl.utils import (
_calculate_digest_and_algori... | null |
35,666 | from __future__ import absolute_import, division, print_function
from thirdparty.cryptography import utils
from thirdparty.cryptography.exceptions import (
InvalidSignature,
UnsupportedAlgorithm,
_Reasons,
)
from thirdparty.cryptography.hazmat.backends.openssl.utils import (
_calculate_digest_and_algori... | null |
35,667 | from thirdparty import shodan
import json
import base64
from module.color import color
from module.time import now
from module import globals
color = Colored()
now = Timed()
def shodan_api(shodan_keyword):
try:
shodan_key = globals.get_value("shodan_key")
api = shodan.Shodan(shodan_key)
r... | null |
35,668 | from thirdparty import requests
from module import globals
from module.color import color
from module.time import now
from module.md5 import random_md5
import json
import time
color = Colored()
now = Timed()
def random_md5():
st = ''.join(random.choices(string.ascii_letters + string.digits, k=8))
md = hashli... | null |
35,669 | from thirdparty import requests
from module import globals
from module.color import color
from module.time import now
from module.md5 import random_md5
import json
import time
def dns_result(md):
time.sleep(1)
timeout = globals.get_value("TIMEOUT") # 获取全局变量UA
dnslog = globals.get_value("DNSLOG") # 获取全局变量... | null |
35,670 | import json
from thirdparty import requests
import base64
from module.color import color
from module.time import now
from module import globals
color = Colored()
now = Timed()
def fofa(fofa, size):
timeout = globals.get_value("TIMEOUT") # 获取全局变量UA
headers = globals.get_value("HEADERS") # 获取全局变量HEADERS
... | null |
35,671 | from module.color import color
import random
color = Colored()
def vul_list():
vuln_list = color.cyan_fine("""
+-------------------+------------------+-----+-----+-------------------------------------------------------------+
| Target type | Vuln Name | Poc | Exp | Impact Version && Vulnerability d... | null |
35,672 | import argparse
import argparse
def arg():
parser = argparse.ArgumentParser(usage="python3 vulmap [options]", add_help=False)
target = parser.add_argument_group("target", "you must to specify target")
target.add_argument("-u", "--url", dest="url", type=str, help=" target URL (e.g. -u \"http://example.com\... | null |
35,673 | import re
import time
import json
import os.path
from module.time import now
from module.color import color
from module import globals
from urllib.parse import urlparse
def output_text(filename, item):
with open(filename, 'a') as output_file:
output_file.write("%s\n" % item)
def output_json(filename, data):... | null |
35,674 | import re
from module import globals
from module.time import now
from module.color import color
now = Timed()
color = Colored()
def dismap(line):
if "dismap" in line:
print(now.timed(de=0) + color.yel_info() + color.green(" The file is dismap Identification results"))
globals.set_value("DISMAP", ... | null |
35,675 | import re
from module import globals
from module.time import now
from module.color import color
def dismap_getwebapps(line):
if (line.find("[+]") == 0):
try:
search = re.findall("(.*?) [{] ", line)
return search[0]
except:
return
else:
return | null |
35,676 | import os
import sys
import tarfile
import sysconfig
from module.time import now
from module.color import color
from module.banner import banner
now = Timed()
color = Colored()
_o == 0:
return banner_1
elif o_o == 1:
return banner_1
elif o_o == 2:
return banner_1
elif o_o == 3:
... | null |
35,677 | import os
import sys
import time
from module.allcheck import os_check
from module.output import output_text
from module.color import color
from module.time import now
import time
now = Timed()
def os_check():
def output_text(filename, item):
color = Colored()
def vulmap_license():
pwd_vulmap = os.path.spli... | null |
35,678 | import re
import sys
import json
from thirdparty.pysocks import socks
import socket
from thirdparty import requests
from module import globals
from module.time import now
from module.color import color
now = Timed()
color = Colored()
def proxy_set(pr, pr_mode):
headers = globals.get_value("HEADERS") # 获取全局变量HEA... | null |
35,679 | import random
import string
import hashlib
def echo_md5():
st = ''.join(random.choices(string.ascii_letters + string.digits, k=10))
md = hashlib.md5("".join(st).encode('utf-8')).hexdigest()
return str("echo " + md) | null |
35,680 | import re
import socket
import random
import platform
from module import globals
from module.time import now
from module.color import color
from thirdparty import requests
from urllib.parse import urlparse
now = Timed()
color = Colored()
def version_check():
n = random.choice(range(10))
if n <= 1:
ve... | null |
35,681 | import re
import socket
import random
import platform
from module import globals
from module.time import now
from module.color import color
from thirdparty import requests
from urllib.parse import urlparse
def url_check(url):
try:
if r"http://" not in url and r"https://" not in url:
if r"443" in... | null |
35,682 | import re
from module import globals
from module.time import now
from module.color import color
from module.output import output
def misinformation(req, md): # 用来处理echo被错误返回时的误报,代码小巧作用甚大
bad = "echo.{0,10}" + md # 使用正则来应对复杂的编码情况
if(re.search(bad, req) != None):
return "misinformation"
else:
... | null |
35,683 | from module.banner import banner import require
from module.allcheck import version_check
from module import globals
from module.argparse import arg
from module.license import vulmap_license
from core.core import core
from module.time import now
from module.color import color
from thirdparty import urllib3
def config(... | null |
35,684 | import argparse
import sys
from config import PORT, HOST
from utils.entrypoints import optimizeEntrypoints
from utils.logger import createLogger
HOST = os.environ.get('HOST') or '0.0.0.0'
PORT = int(os.environ.get('PORT')) if os.environ.get('PORT') else 3000
def createApp(app_name: str = "web", logger: logging.Logger... | Start web service on linux :return: |
35,685 | import datetime
import random
import requests
import faker
from models import Account
API_URL = "https://api.cloudflareclient.com"
API_VERSION = "v0i2308311933"
SESSION = requests.Session()
SESSION.headers.update(DEFAULT_HEADERS)
The provided code snippet includes necessary dependencies for implementing the `getClient... | Get client config :param proxy: proxy dict :return: |
35,686 | import logging
import sys
import time
from models import Account
from services.cloudflare import register
from services.common import getCurrentAccount
from utils.entrypoints import optimizeEntrypoints
from utils.wireguard import generateWireguardKeys
from services.cloudflare import getAccount
from utils.proxy import g... | Add data task once :param account: :param logger: :return: |
35,687 | import logging
import sys
import time
from models import Account
from services.cloudflare import register
from services.common import getCurrentAccount
from utils.entrypoints import optimizeEntrypoints
from utils.wireguard import generateWireguardKeys
from services.cloudflare import getAccount
from utils.proxy import g... | Save latest account info to file :param account: :param logger: :return: |
35,688 | import logging
import sys
import time
from models import Account
from services.cloudflare import register
from services.common import getCurrentAccount
from utils.entrypoints import optimizeEntrypoints
from utils.wireguard import generateWireguardKeys
from services.cloudflare import getAccount
from utils.proxy import g... | Reoptimize entrypoints :param logger: :return: |
35,689 | import logging
import maxminddb
The provided code snippet includes necessary dependencies for implementing the `countryCodeToEmoji` function. Write a Python function `def countryCodeToEmoji(country_code)` to solve the following problem:
Convert country code to emoji. :param country_code: A two-letter country code :ret... | Convert country code to emoji. :param country_code: A two-letter country code :return: Corresponding country flag emoji if valid, otherwise a globe emoji |
35,690 | import logging
import os
from logging.handlers import TimedRotatingFileHandler
The provided code snippet includes necessary dependencies for implementing the `createLogger` function. Write a Python function `def createLogger(filename, level=logging.INFO)` to solve the following problem:
Create logger with TimedRotatin... | Create logger with TimedRotatingFileHandler :param filename: filename :param level: logging level :return: logger |
35,691 | import os
import sys
import random
from stable_baselines3.common.monitor import Monitor
from stable_baselines3.common.vec_env import SubprocVecEnv
from stable_baselines3.common.callbacks import CheckpointCallback
from sb3_contrib import MaskablePPO
from sb3_contrib.common.wrappers import ActionMasker
from snake_game_cu... | null |
35,692 | import os
import sys
import random
from stable_baselines3.common.monitor import Monitor
from stable_baselines3.common.vec_env import SubprocVecEnv
from stable_baselines3.common.callbacks import CheckpointCallback
from sb3_contrib import MaskablePPO
from sb3_contrib.common.wrappers import ActionMasker
from snake_game_cu... | null |
35,693 | import os
import sys
import random
import torch
from stable_baselines3.common.monitor import Monitor
from stable_baselines3.common.vec_env import SubprocVecEnv
from stable_baselines3.common.callbacks import CheckpointCallback
from sb3_contrib import MaskablePPO
from sb3_contrib.common.wrappers import ActionMasker
from ... | null |
35,694 | import os
import sys
import random
import torch
from stable_baselines3.common.monitor import Monitor
from stable_baselines3.common.vec_env import SubprocVecEnv
from stable_baselines3.common.callbacks import CheckpointCallback
from sb3_contrib import MaskablePPO
from sb3_contrib.common.wrappers import ActionMasker
from ... | null |
35,695 | import time
import random
from snake_game_custom_wrapper_cnn import SnakeEnv
def generate_hamiltonian_cycle(board_size):
path = [(0, c) for c in range(board_size)]
for i in range(1, board_size):
if i % 2 == 0:
for j in range(1, board_size):
path.append((i, j))
else:... | null |
35,696 | import time
import random
from snake_game_custom_wrapper_cnn import SnakeEnv
def find_next_action(snake_head, next_position):
row_diff = next_position[0] - snake_head[0]
col_diff = next_position[1] - snake_head[1]
if row_diff == 1 and col_diff == 0:
return 3 # DOWN
elif row_diff == -1 and col... | null |
35,697 | import re
import sys
def compress_code(code: str) -> str:
def compress_file(filename: str) -> str:
with open(filename, 'r') as file:
code = file.read()
compressed_code = compress_code(code)
return compressed_code | null |
35,698 |
def count_paths(width, height, path_length, start):
# Initialize a 3D list to store the number of paths to each cell
num_paths = [[[0] * (path_length + 1) for _ in range(height)] for _ in range(width)]
# There is exactly one path of length 0 to the starting cell
num_paths[start[0]][start[1]][0] = 1
... | null |
35,699 |
def count_all_paths(width, height, path_length):
# Initialize a 3D list to store the number of paths to each cell
num_paths = [[[0] * (path_length + 1) for _ in range(height)] for _ in range(width)]
# There is exactly one path of length 0 to each cell
for x in range(width):
for y in range(hei... | null |
35,700 | import argparse
import os
import math
import json
from functools import partial
import torch
import torch.distributed as dist
from torch.utils.data import DataLoader
import tqdm
import wandb
import numpy as np
from ochat.config import MODEL_CONFIG_MAP
from ochat.training_deepspeed.openchat_dataset import OpenchatDatase... | null |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.