This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/python3 | |
| # | |
| # SMTP Server configuration black-box testing/audit tool, capable of auditing | |
| # SPF/Accepted Domains, DKIM, DMARC, SSL/TLS, SMTP services, banner, Authentication (AUTH, X-EXPS) | |
| # user enumerations (VRFY, EXPN, RCPT TO), and others. | |
| # | |
| # Currently supported tests: | |
| # 01) 'spf' - SPF DNS record test | |
| # - 'spf-version' - Checks whether SPF record version is valid | |
| # - 'all-mechanism-usage' - Checks whether 'all' mechanism is used correctly |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from cryptography import x509 | |
| from cryptography.hazmat.primitives import hashes | |
| from cryptography.hazmat.primitives.asymmetric import padding | |
| from cryptography.hazmat.backends import default_backend | |
| cert_file = open('/etc/letsencrypt/live/www.example.com/cert.pem') | |
| cert_data = cert_file.read() | |
| cert = x509.load_pem_x509_certificate(data=cert_data, backend=default_backend()) | |
| # chain contains the Let's Encrypt certificate |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python | |
| import socket | |
| import time | |
| if __name__ == '__main__': | |
| UDP_IP = "10.255.255.255" | |
| UDP_PORT = 12345 | |
| MESSAGE = "KEEP ALIVE" | |
| sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # Cache sudo password | |
| sudo -v | |
| # Get latest OpenSSL 1.0.2 version from https://openssl.org/source/ | |
| # v1.1.0 seems to have removed SSLv2/3 support | |
| openssl_version=1.0.2k | |
| # Install build dependencies |