MCPcopy Create free account

hub / github.com/chenjj/espoofer / functions

Functions109 in github.com/chenjj/espoofer

↓ 22 callersFunctionget_date
()
common/common.py:18
↓ 22 callersFunctionid_generator
(size=6)
common/common.py:12
↓ 12 callersMethodprint_recv_msg
(self, client_socket)
common/mail_sender.py:124
↓ 11 callersMethodprint_send_msg
(self, msg)
common/mail_sender.py:121
↓ 8 callersMethodupdate
(self, data)
dkim/__init__.py:121
↓ 7 callersFunctionrecursive_fixup
(input, old, new)
common/common.py:39
↓ 6 callersMethodcanonicalize_headers
(headers)
dkim/canonicalization.py:77
↓ 6 callersMethoddigest
(self)
dkim/__init__.py:126
↓ 6 callersFunctioneprint
(*args, **kwargs)
dkim/dknewkey.py:43
↓ 4 callersFunctionasn1_encode
(type, data)
dkim/asn1.py:114
↓ 4 callersMethodcanonicalize_body
(body)
dkim/canonicalization.py:82
↓ 4 callersMethodhashed
(self)
dkim/__init__.py:132
↓ 4 callersFunctionint2str
Convert an integer to a byte string. @param n: positive integer to convert @param length: minimum length @return: converted bytestring, o
dkim/crypto.py:203
↓ 4 callersFunctionparse_tag_value
Parse a DKIM Tag=Value list. Interprets the syntax specified by RFC6376 section 3.2. Assumes that folding whitespace is already unfolded.
dkim/util.py:52
↓ 4 callersMethodverify
(self,dnsfunc=get_txt)
dkim/__init__.py:1098
↓ 3 callersFunctionasn1_parse
Parse a data structure according to an ASN.1 template. @param template: tuples comprising the ASN.1 template @param data: byte string data to
dkim/asn1.py:46
↓ 3 callersMethoddefault_sign_headers
Return the default list of headers to sign: those in should_sign or frozen_sign, with those in frozen_sign signed an extra time to prevent add
dkim/__init__.py:589
↓ 3 callersMethodfrom_c_value
Construct the canonicalization policy described by a c= value. May raise an C{InvalidCanonicalizationPolicyError} if the given value
dkim/canonicalization.py:119
↓ 3 callersMethodgen_header
(self, fields, include_headers, canon_policy, header_name, pk, standardize=False)
dkim/__init__.py:613
↓ 3 callersMethodsend_email
(self)
common/mail_sender.py:144
↓ 3 callersMethodset_param
(self, mail_server, rcpt_to, email_data, helo, mail_from, starttls=False, mode = "server", username = None, pa
common/mail_sender.py:26
↓ 3 callersMethodsign
(self, selector, domain, privkey, signature_algorithm=None, identity=None, canonicalize=(b'relaxed',b'
dkim/__init__.py:769
↓ 3 callersFunctionvalidate_signature_fields
Validate DKIM or ARC Signature fields. Basic checks for presence and correct formatting of mandatory fields. Raises a ValidationError if check
dkim/__init__.py:249
↓ 3 callersMethodverify_sig
(self, sig, include_headers, sig_header, dnsfunc)
dkim/__init__.py:661
↓ 2 callersFunctionEMSA_PKCS1_v1_5_encode
Encode a digest with RFC8017 EMSA-PKCS1-v1_5. @param hash: hash object to encode @param mlen: desired message length @return: encoded dig
dkim/crypto.py:170
↓ 2 callersFunctionbanner
()
espoofer.py:17
↓ 2 callersMethodclose_socket
(self)
common/mail_sender.py:107
↓ 2 callersFunctioncompress_whitespace
(content)
dkim/canonicalization.py:39
↓ 2 callersFunctionfold
Fold a header line into multiple crlf-separated lines of text at column 72. The crlf does not count for line length. >>> text(fold(b'foo'))
dkim/__init__.py:370
↓ 2 callersMethodgenerate_smtp_seqs
(self)
exploits_builder.py:46
↓ 2 callersFunctionhash_headers
Update hash for signed message header fields.
dkim/__init__.py:216
↓ 2 callersFunctionparse_pem_private_key
Parse a PEM RSA private key. @param data: RFC8017 RSAPrivateKey in PEM format. @return: RSA private key
dkim/crypto.py:154
↓ 2 callersFunctionselect_headers
Select message header fields to be signed/verified. >>> h = [('from','biz'),('foo','bar'),('from','baz'),('subject','boring')] >>> i = ['from
dkim/__init__.py:185
↓ 2 callersMethodsend_quit_cmd
(self, client_socket)
common/mail_sender.py:102
↓ 2 callersMethodsend_smtp_cmds
(self, client_socket)
common/mail_sender.py:59
↓ 2 callersMethodsign
(self, selector, domain, privkey, srv_id, include_headers=None, timestamp=None, standardize=False)
dkim/__init__.py:933
↓ 2 callersMethodsorted_arc_headers
(self)
dkim/__init__.py:880
↓ 2 callersFunctionstr2int
Convert a byte string to an integer. @param s: byte string representing a positive integer to convert @return: converted integer
dkim/crypto.py:190
↓ 2 callersFunctionstrip_trailing_lines
(content)
dkim/canonicalization.py:43
↓ 2 callersMethodverify
(self,idx=0,dnsfunc=get_txt)
dkim/__init__.py:848
↓ 1 callersFunctionExtractEd25519PublicKey
Given a ed25519 key, extract the bit we should place in DNS.
dkim/dknewkey.py:88
↓ 1 callersFunctionExtractRSADnsPublicKey
Given a key, extract the bit we should place in DNS.
dkim/dknewkey.py:68
↓ 1 callersFunctionGenEd25519Keys
Generates a base64 encoded private key for ed25519 DKIM signing. Output is unprotected. You should protect your keys.
dkim/dknewkey.py:54
↓ 1 callersFunctionGenRSAKeys
Generates a suitable private key. Output is unprotected. You should encrypt your keys.
dkim/dknewkey.py:46
↓ 1 callersFunctionRSASSA_PKCS1_v1_5_sign
Sign a digest with RFC8017 RSASSA-PKCS1-v1_5. @param hash: hash object to sign @param private_key: private key data @return: signed diges
dkim/crypto.py:256
↓ 1 callersFunctionRSASSA_PKCS1_v1_5_verify
Verify a digest signed with RFC8017 RSASSA-PKCS1-v1_5. @param hash: hash object to check @param signature: signed digest byte string @par
dkim/crypto.py:268
↓ 1 callersMethodadd_should_not
Add headers not in should_not_sign to frozen_sign. @param s: list of headers to add to frozen_sign @since: 0.9 >>> dkim = DKIM() >>>
dkim/__init__.py:551
↓ 1 callersFunctionasn1_build
Build a DER-encoded ASN.1 data structure. @param node: (type, data) tuples comprising the ASN.1 structure @return: DER-encoded ASN.1 byte str
dkim/asn1.py:121
↓ 1 callersFunctionasn1_length
Return a string representing a field length in ASN.1 format. @param n: integer field length @return: ASN.1 field length
dkim/asn1.py:98
↓ 1 callersFunctionbitsize
Return size of long in bits.
dkim/__init__.py:136
↓ 1 callersFunctionbs64encode
(value)
common/common.py:4
↓ 1 callersFunctioncheck_configs
()
espoofer.py:65
↓ 1 callersFunctioncorrect_empty_body
(content)
dkim/canonicalization.py:64
↓ 1 callersMethodestablish_socket
(self)
common/mail_sender.py:39
↓ 1 callersMethodfixup_test_case_data
(self, t)
exploits_builder.py:12
↓ 1 callersFunctiongenerate_dkim_header
(dkim_msg, dkim_para)
common/common.py:53
↓ 1 callersMethodgenerate_msg_data
(self)
exploits_builder.py:33
↓ 1 callersFunctionget_default_logger
Get the default dkimpy logger.
dkim/util.py:78
↓ 1 callersFunctionget_mail_server_from_email_address
(e)
common/common.py:35
↓ 1 callersFunctionlist_test_cases
(case_id)
espoofer.py:78
↓ 1 callersFunctionload_pk_from_dns
(name, dnsfunc=get_txt)
dkim/__init__.py:422
↓ 1 callersFunctionmain
()
espoofer.py:94
↓ 1 callersFunctionmain
()
dkim/dknewkey.py:98
↓ 1 callersFunctionmain
()
dkim/arcverify.py:36
↓ 1 callersFunctionmain
()
dkim/arcsign.py:46
↓ 1 callersFunctionmain
()
dkim/dkimverify.py:31
↓ 1 callersFunctionmain
()
dkim/dkimsign.py:33
↓ 1 callersFunctionparse_args
()
espoofer.py:34
↓ 1 callersFunctionparse_private_key
Parse an RSA private key. @param data: DER-encoded RFC8017 RSAPrivateKey. @return: RSA private key
dkim/crypto.py:130
↓ 1 callersFunctionparse_public_key
Parse an RSA public key. @param data: DER-encoded X.509 subjectPublicKeyInfo containing an RFC8017 RSAPublicKey. @return: RSA public
dkim/crypto.py:110
↓ 1 callersFunctionquery_mx_record
(domain)
common/common.py:23
↓ 1 callersMethodread_line
(self, sock)
common/mail_sender.py:113
↓ 1 callersFunctionrfc822_parse
Parse a message in RFC822 format. @param message: The message in RFC822 format. Either CRLF or LF is an accepted line separator. @return: Ret
dkim/__init__.py:326
↓ 1 callersFunctionrsa_decrypt
Perform RSA decryption/signing @param message: byte string to operate on @param pk: private key data @param mlen: desired output length
dkim/crypto.py:223
↓ 1 callersFunctionrsa_encrypt
Perform RSA encryption/verification @param message: byte string to operate on @param pk: public key data @param mlen: desired output leng
dkim/crypto.py:244
↓ 1 callersMethodset_message
(self,message)
dkim/__init__.py:569
↓ 1 callersFunctionstrip_trailing_whitespace
(content)
dkim/canonicalization.py:35
↓ 1 callersMethodto_c_value
(self)
dkim/canonicalization.py:143
↓ 1 callersFunctionunfold_header_value
(content)
dkim/canonicalization.py:60
↓ 1 callersMethodverify_instance
(self,arc_headers_w_instance,instance,dnsfunc=get_txt)
dkim/__init__.py:1136
Method__del__
(self)
common/mail_sender.py:158
Method__init__
(self, test_cases, config)
exploits_builder.py:5
Method__init__
(self, hasher, debug=False)
dkim/__init__.py:115
Method__init__
(self,message=None,logger=None,signature_algorithm=b'rsa-sha256', minkey=1024, linesep=b'\r\n', debug_
dkim/__init__.py:470
Method__init__
(self, header_algorithm, body_algorithm)
dkim/canonicalization.py:114
Method__init__
(self)
common/mail_sender.py:15
Methodadd_frozen
Add headers not in should_not_sign to frozen_sign. @param s: list of headers to add to frozen_sign @since: 0.5 >>> dkim = DKIM() >>>
dkim/__init__.py:533
Methodall_sign_headers
Return header list of all existing headers not in should_not_sign. @since: 0.5
dkim/__init__.py:600
Methodarc_header_key
(a)
dkim/__init__.py:899
Functionarc_sign
Sign an RFC822 message and return the ARC set header lines for the next instance @param message: an RFC822 formatted message (with either \\n or \
dkim/__init__.py:1283
Functionarc_verify
Verify the ARC chain on an RFC822 formatted message. @param message: an RFC822 formatted message (with either \\n or \\r\\n line endings) @par
dkim/__init__.py:1310
Methodcanonicalize_body
(body)
dkim/canonicalization.py:104
Methodcanonicalize_body
(self, body)
dkim/canonicalization.py:150
Methodcanonicalize_headers
(headers)
dkim/canonicalization.py:93
Methodcanonicalize_headers
(self, headers)
dkim/canonicalization.py:147
Methodemit
(self, record)
dkim/util.py:26
Functionget_linesep
(msg)
dkim/util.py:85
Functionget_txt
Return a TXT record associated with a DNS name. @param name: The bytestring domain name to look up.
dkim/dnsplug.py:75
Functionget_txt
(s)
dkim/__init__.py:73
Functionget_txt_Milter_dns
Return a TXT record associated with a DNS name.
dkim/dnsplug.py:50
next →1–100 of 109, ranked by callers